1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/dataproc/v1/jobs.proto 18 19 package com.google.cloud.dataproc.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A Dataproc job for running 26 * [Apache 27 * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html) 28 * applications on YARN. 29 * </pre> 30 * 31 * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob} 32 */ 33 public final class PySparkJob extends com.google.protobuf.GeneratedMessageV3 34 implements 35 // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkJob) 36 PySparkJobOrBuilder { 37 private static final long serialVersionUID = 0L; 38 // Use PySparkJob.newBuilder() to construct. PySparkJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39 private PySparkJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 40 super(builder); 41 } 42 PySparkJob()43 private PySparkJob() { 44 mainPythonFileUri_ = ""; 45 args_ = com.google.protobuf.LazyStringArrayList.EMPTY; 46 pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 47 jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 48 fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 49 archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 50 } 51 52 @java.lang.Override 53 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)54 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 55 return new PySparkJob(); 56 } 57 58 @java.lang.Override getUnknownFields()59 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 60 return this.unknownFields; 61 } 62 getDescriptor()63 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 64 return com.google.cloud.dataproc.v1.JobsProto 65 .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; 66 } 67 68 @SuppressWarnings({"rawtypes"}) 69 @java.lang.Override internalGetMapField(int number)70 protected com.google.protobuf.MapField internalGetMapField(int number) { 71 switch (number) { 72 case 7: 73 return internalGetProperties(); 74 default: 75 throw new RuntimeException("Invalid map field number: " + number); 76 } 77 } 78 79 @java.lang.Override 80 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()81 internalGetFieldAccessorTable() { 82 return com.google.cloud.dataproc.v1.JobsProto 83 .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable 84 .ensureFieldAccessorsInitialized( 85 com.google.cloud.dataproc.v1.PySparkJob.class, 86 com.google.cloud.dataproc.v1.PySparkJob.Builder.class); 87 } 88 89 public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1; 90 91 @SuppressWarnings("serial") 92 private volatile java.lang.Object mainPythonFileUri_ = ""; 93 /** 94 * 95 * 96 * <pre> 97 * Required. The HCFS URI of the main Python file to use as the driver. Must 98 * be a .py file. 99 * </pre> 100 * 101 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 102 * 103 * @return The mainPythonFileUri. 104 */ 105 @java.lang.Override getMainPythonFileUri()106 public java.lang.String getMainPythonFileUri() { 107 java.lang.Object ref = mainPythonFileUri_; 108 if (ref instanceof java.lang.String) { 109 return (java.lang.String) ref; 110 } else { 111 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 112 java.lang.String s = bs.toStringUtf8(); 113 mainPythonFileUri_ = s; 114 return s; 115 } 116 } 117 /** 118 * 119 * 120 * <pre> 121 * Required. The HCFS URI of the main Python file to use as the driver. Must 122 * be a .py file. 123 * </pre> 124 * 125 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 126 * 127 * @return The bytes for mainPythonFileUri. 128 */ 129 @java.lang.Override getMainPythonFileUriBytes()130 public com.google.protobuf.ByteString getMainPythonFileUriBytes() { 131 java.lang.Object ref = mainPythonFileUri_; 132 if (ref instanceof java.lang.String) { 133 com.google.protobuf.ByteString b = 134 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 135 mainPythonFileUri_ = b; 136 return b; 137 } else { 138 return (com.google.protobuf.ByteString) ref; 139 } 140 } 141 142 public static final int ARGS_FIELD_NUMBER = 2; 143 144 @SuppressWarnings("serial") 145 private com.google.protobuf.LazyStringList args_; 146 /** 147 * 148 * 149 * <pre> 150 * Optional. The arguments to pass to the driver. Do not include arguments, 151 * such as `--conf`, that can be set as job properties, since a collision may 152 * occur that causes an incorrect job submission. 153 * </pre> 154 * 155 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 156 * 157 * @return A list containing the args. 158 */ getArgsList()159 public com.google.protobuf.ProtocolStringList getArgsList() { 160 return args_; 161 } 162 /** 163 * 164 * 165 * <pre> 166 * Optional. The arguments to pass to the driver. Do not include arguments, 167 * such as `--conf`, that can be set as job properties, since a collision may 168 * occur that causes an incorrect job submission. 169 * </pre> 170 * 171 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 172 * 173 * @return The count of args. 174 */ getArgsCount()175 public int getArgsCount() { 176 return args_.size(); 177 } 178 /** 179 * 180 * 181 * <pre> 182 * Optional. The arguments to pass to the driver. Do not include arguments, 183 * such as `--conf`, that can be set as job properties, since a collision may 184 * occur that causes an incorrect job submission. 185 * </pre> 186 * 187 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 188 * 189 * @param index The index of the element to return. 190 * @return The args at the given index. 191 */ getArgs(int index)192 public java.lang.String getArgs(int index) { 193 return args_.get(index); 194 } 195 /** 196 * 197 * 198 * <pre> 199 * Optional. The arguments to pass to the driver. Do not include arguments, 200 * such as `--conf`, that can be set as job properties, since a collision may 201 * occur that causes an incorrect job submission. 202 * </pre> 203 * 204 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 205 * 206 * @param index The index of the value to return. 207 * @return The bytes of the args at the given index. 208 */ getArgsBytes(int index)209 public com.google.protobuf.ByteString getArgsBytes(int index) { 210 return args_.getByteString(index); 211 } 212 213 public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; 214 215 @SuppressWarnings("serial") 216 private com.google.protobuf.LazyStringList pythonFileUris_; 217 /** 218 * 219 * 220 * <pre> 221 * Optional. HCFS file URIs of Python files to pass to the PySpark 222 * framework. Supported file types: .py, .egg, and .zip. 223 * </pre> 224 * 225 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 226 * 227 * @return A list containing the pythonFileUris. 228 */ getPythonFileUrisList()229 public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { 230 return pythonFileUris_; 231 } 232 /** 233 * 234 * 235 * <pre> 236 * Optional. HCFS file URIs of Python files to pass to the PySpark 237 * framework. Supported file types: .py, .egg, and .zip. 238 * </pre> 239 * 240 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 241 * 242 * @return The count of pythonFileUris. 243 */ getPythonFileUrisCount()244 public int getPythonFileUrisCount() { 245 return pythonFileUris_.size(); 246 } 247 /** 248 * 249 * 250 * <pre> 251 * Optional. HCFS file URIs of Python files to pass to the PySpark 252 * framework. Supported file types: .py, .egg, and .zip. 253 * </pre> 254 * 255 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 256 * 257 * @param index The index of the element to return. 258 * @return The pythonFileUris at the given index. 259 */ getPythonFileUris(int index)260 public java.lang.String getPythonFileUris(int index) { 261 return pythonFileUris_.get(index); 262 } 263 /** 264 * 265 * 266 * <pre> 267 * Optional. HCFS file URIs of Python files to pass to the PySpark 268 * framework. Supported file types: .py, .egg, and .zip. 269 * </pre> 270 * 271 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 272 * 273 * @param index The index of the value to return. 274 * @return The bytes of the pythonFileUris at the given index. 275 */ getPythonFileUrisBytes(int index)276 public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { 277 return pythonFileUris_.getByteString(index); 278 } 279 280 public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; 281 282 @SuppressWarnings("serial") 283 private com.google.protobuf.LazyStringList jarFileUris_; 284 /** 285 * 286 * 287 * <pre> 288 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 289 * Python driver and tasks. 290 * </pre> 291 * 292 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 293 * 294 * @return A list containing the jarFileUris. 295 */ getJarFileUrisList()296 public com.google.protobuf.ProtocolStringList getJarFileUrisList() { 297 return jarFileUris_; 298 } 299 /** 300 * 301 * 302 * <pre> 303 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 304 * Python driver and tasks. 305 * </pre> 306 * 307 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 308 * 309 * @return The count of jarFileUris. 310 */ getJarFileUrisCount()311 public int getJarFileUrisCount() { 312 return jarFileUris_.size(); 313 } 314 /** 315 * 316 * 317 * <pre> 318 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 319 * Python driver and tasks. 320 * </pre> 321 * 322 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 323 * 324 * @param index The index of the element to return. 325 * @return The jarFileUris at the given index. 326 */ getJarFileUris(int index)327 public java.lang.String getJarFileUris(int index) { 328 return jarFileUris_.get(index); 329 } 330 /** 331 * 332 * 333 * <pre> 334 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 335 * Python driver and tasks. 336 * </pre> 337 * 338 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 339 * 340 * @param index The index of the value to return. 341 * @return The bytes of the jarFileUris at the given index. 342 */ getJarFileUrisBytes(int index)343 public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { 344 return jarFileUris_.getByteString(index); 345 } 346 347 public static final int FILE_URIS_FIELD_NUMBER = 5; 348 349 @SuppressWarnings("serial") 350 private com.google.protobuf.LazyStringList fileUris_; 351 /** 352 * 353 * 354 * <pre> 355 * Optional. HCFS URIs of files to be placed in the working directory of 356 * each executor. Useful for naively parallel tasks. 357 * </pre> 358 * 359 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 360 * 361 * @return A list containing the fileUris. 362 */ getFileUrisList()363 public com.google.protobuf.ProtocolStringList getFileUrisList() { 364 return fileUris_; 365 } 366 /** 367 * 368 * 369 * <pre> 370 * Optional. HCFS URIs of files to be placed in the working directory of 371 * each executor. Useful for naively parallel tasks. 372 * </pre> 373 * 374 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 375 * 376 * @return The count of fileUris. 377 */ getFileUrisCount()378 public int getFileUrisCount() { 379 return fileUris_.size(); 380 } 381 /** 382 * 383 * 384 * <pre> 385 * Optional. HCFS URIs of files to be placed in the working directory of 386 * each executor. Useful for naively parallel tasks. 387 * </pre> 388 * 389 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 390 * 391 * @param index The index of the element to return. 392 * @return The fileUris at the given index. 393 */ getFileUris(int index)394 public java.lang.String getFileUris(int index) { 395 return fileUris_.get(index); 396 } 397 /** 398 * 399 * 400 * <pre> 401 * Optional. HCFS URIs of files to be placed in the working directory of 402 * each executor. Useful for naively parallel tasks. 403 * </pre> 404 * 405 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 406 * 407 * @param index The index of the value to return. 408 * @return The bytes of the fileUris at the given index. 409 */ getFileUrisBytes(int index)410 public com.google.protobuf.ByteString getFileUrisBytes(int index) { 411 return fileUris_.getByteString(index); 412 } 413 414 public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; 415 416 @SuppressWarnings("serial") 417 private com.google.protobuf.LazyStringList archiveUris_; 418 /** 419 * 420 * 421 * <pre> 422 * Optional. HCFS URIs of archives to be extracted into the working directory 423 * of each executor. Supported file types: 424 * .jar, .tar, .tar.gz, .tgz, and .zip. 425 * </pre> 426 * 427 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 428 * 429 * @return A list containing the archiveUris. 430 */ getArchiveUrisList()431 public com.google.protobuf.ProtocolStringList getArchiveUrisList() { 432 return archiveUris_; 433 } 434 /** 435 * 436 * 437 * <pre> 438 * Optional. HCFS URIs of archives to be extracted into the working directory 439 * of each executor. Supported file types: 440 * .jar, .tar, .tar.gz, .tgz, and .zip. 441 * </pre> 442 * 443 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 444 * 445 * @return The count of archiveUris. 446 */ getArchiveUrisCount()447 public int getArchiveUrisCount() { 448 return archiveUris_.size(); 449 } 450 /** 451 * 452 * 453 * <pre> 454 * Optional. HCFS URIs of archives to be extracted into the working directory 455 * of each executor. Supported file types: 456 * .jar, .tar, .tar.gz, .tgz, and .zip. 457 * </pre> 458 * 459 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 460 * 461 * @param index The index of the element to return. 462 * @return The archiveUris at the given index. 463 */ getArchiveUris(int index)464 public java.lang.String getArchiveUris(int index) { 465 return archiveUris_.get(index); 466 } 467 /** 468 * 469 * 470 * <pre> 471 * Optional. HCFS URIs of archives to be extracted into the working directory 472 * of each executor. Supported file types: 473 * .jar, .tar, .tar.gz, .tgz, and .zip. 474 * </pre> 475 * 476 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 477 * 478 * @param index The index of the value to return. 479 * @return The bytes of the archiveUris at the given index. 480 */ getArchiveUrisBytes(int index)481 public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { 482 return archiveUris_.getByteString(index); 483 } 484 485 public static final int PROPERTIES_FIELD_NUMBER = 7; 486 487 private static final class PropertiesDefaultEntryHolder { 488 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 489 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 490 com.google.cloud.dataproc.v1.JobsProto 491 .internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, 492 com.google.protobuf.WireFormat.FieldType.STRING, 493 "", 494 com.google.protobuf.WireFormat.FieldType.STRING, 495 ""); 496 } 497 498 @SuppressWarnings("serial") 499 private com.google.protobuf.MapField<java.lang.String, java.lang.String> properties_; 500 internalGetProperties()501 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetProperties() { 502 if (properties_ == null) { 503 return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); 504 } 505 return properties_; 506 } 507 getPropertiesCount()508 public int getPropertiesCount() { 509 return internalGetProperties().getMap().size(); 510 } 511 /** 512 * 513 * 514 * <pre> 515 * Optional. A mapping of property names to values, used to configure PySpark. 516 * Properties that conflict with values set by the Dataproc API may be 517 * overwritten. Can include properties set in 518 * /etc/spark/conf/spark-defaults.conf and classes in user code. 519 * </pre> 520 * 521 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 522 * </code> 523 */ 524 @java.lang.Override containsProperties(java.lang.String key)525 public boolean containsProperties(java.lang.String key) { 526 if (key == null) { 527 throw new NullPointerException("map key"); 528 } 529 return internalGetProperties().getMap().containsKey(key); 530 } 531 /** Use {@link #getPropertiesMap()} instead. */ 532 @java.lang.Override 533 @java.lang.Deprecated getProperties()534 public java.util.Map<java.lang.String, java.lang.String> getProperties() { 535 return getPropertiesMap(); 536 } 537 /** 538 * 539 * 540 * <pre> 541 * Optional. A mapping of property names to values, used to configure PySpark. 542 * Properties that conflict with values set by the Dataproc API may be 543 * overwritten. Can include properties set in 544 * /etc/spark/conf/spark-defaults.conf and classes in user code. 545 * </pre> 546 * 547 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 548 * </code> 549 */ 550 @java.lang.Override getPropertiesMap()551 public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() { 552 return internalGetProperties().getMap(); 553 } 554 /** 555 * 556 * 557 * <pre> 558 * Optional. A mapping of property names to values, used to configure PySpark. 559 * Properties that conflict with values set by the Dataproc API may be 560 * overwritten. Can include properties set in 561 * /etc/spark/conf/spark-defaults.conf and classes in user code. 562 * </pre> 563 * 564 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 565 * </code> 566 */ 567 @java.lang.Override getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)568 public /* nullable */ java.lang.String getPropertiesOrDefault( 569 java.lang.String key, 570 /* nullable */ 571 java.lang.String defaultValue) { 572 if (key == null) { 573 throw new NullPointerException("map key"); 574 } 575 java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap(); 576 return map.containsKey(key) ? map.get(key) : defaultValue; 577 } 578 /** 579 * 580 * 581 * <pre> 582 * Optional. A mapping of property names to values, used to configure PySpark. 583 * Properties that conflict with values set by the Dataproc API may be 584 * overwritten. Can include properties set in 585 * /etc/spark/conf/spark-defaults.conf and classes in user code. 586 * </pre> 587 * 588 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 589 * </code> 590 */ 591 @java.lang.Override getPropertiesOrThrow(java.lang.String key)592 public java.lang.String getPropertiesOrThrow(java.lang.String key) { 593 if (key == null) { 594 throw new NullPointerException("map key"); 595 } 596 java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap(); 597 if (!map.containsKey(key)) { 598 throw new java.lang.IllegalArgumentException(); 599 } 600 return map.get(key); 601 } 602 603 public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; 604 private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; 605 /** 606 * 607 * 608 * <pre> 609 * Optional. The runtime log config for job execution. 610 * </pre> 611 * 612 * <code> 613 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 614 * </code> 615 * 616 * @return Whether the loggingConfig field is set. 617 */ 618 @java.lang.Override hasLoggingConfig()619 public boolean hasLoggingConfig() { 620 return loggingConfig_ != null; 621 } 622 /** 623 * 624 * 625 * <pre> 626 * Optional. The runtime log config for job execution. 627 * </pre> 628 * 629 * <code> 630 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 631 * </code> 632 * 633 * @return The loggingConfig. 634 */ 635 @java.lang.Override getLoggingConfig()636 public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { 637 return loggingConfig_ == null 638 ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() 639 : loggingConfig_; 640 } 641 /** 642 * 643 * 644 * <pre> 645 * Optional. The runtime log config for job execution. 646 * </pre> 647 * 648 * <code> 649 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 650 * </code> 651 */ 652 @java.lang.Override getLoggingConfigOrBuilder()653 public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { 654 return loggingConfig_ == null 655 ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() 656 : loggingConfig_; 657 } 658 659 private byte memoizedIsInitialized = -1; 660 661 @java.lang.Override isInitialized()662 public final boolean isInitialized() { 663 byte isInitialized = memoizedIsInitialized; 664 if (isInitialized == 1) return true; 665 if (isInitialized == 0) return false; 666 667 memoizedIsInitialized = 1; 668 return true; 669 } 670 671 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)672 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 673 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { 674 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); 675 } 676 for (int i = 0; i < args_.size(); i++) { 677 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); 678 } 679 for (int i = 0; i < pythonFileUris_.size(); i++) { 680 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonFileUris_.getRaw(i)); 681 } 682 for (int i = 0; i < jarFileUris_.size(); i++) { 683 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); 684 } 685 for (int i = 0; i < fileUris_.size(); i++) { 686 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); 687 } 688 for (int i = 0; i < archiveUris_.size(); i++) { 689 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); 690 } 691 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 692 output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); 693 if (loggingConfig_ != null) { 694 output.writeMessage(8, getLoggingConfig()); 695 } 696 getUnknownFields().writeTo(output); 697 } 698 699 @java.lang.Override getSerializedSize()700 public int getSerializedSize() { 701 int size = memoizedSize; 702 if (size != -1) return size; 703 704 size = 0; 705 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { 706 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPythonFileUri_); 707 } 708 { 709 int dataSize = 0; 710 for (int i = 0; i < args_.size(); i++) { 711 dataSize += computeStringSizeNoTag(args_.getRaw(i)); 712 } 713 size += dataSize; 714 size += 1 * getArgsList().size(); 715 } 716 { 717 int dataSize = 0; 718 for (int i = 0; i < pythonFileUris_.size(); i++) { 719 dataSize += computeStringSizeNoTag(pythonFileUris_.getRaw(i)); 720 } 721 size += dataSize; 722 size += 1 * getPythonFileUrisList().size(); 723 } 724 { 725 int dataSize = 0; 726 for (int i = 0; i < jarFileUris_.size(); i++) { 727 dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); 728 } 729 size += dataSize; 730 size += 1 * getJarFileUrisList().size(); 731 } 732 { 733 int dataSize = 0; 734 for (int i = 0; i < fileUris_.size(); i++) { 735 dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); 736 } 737 size += dataSize; 738 size += 1 * getFileUrisList().size(); 739 } 740 { 741 int dataSize = 0; 742 for (int i = 0; i < archiveUris_.size(); i++) { 743 dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); 744 } 745 size += dataSize; 746 size += 1 * getArchiveUrisList().size(); 747 } 748 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 749 internalGetProperties().getMap().entrySet()) { 750 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> properties__ = 751 PropertiesDefaultEntryHolder.defaultEntry 752 .newBuilderForType() 753 .setKey(entry.getKey()) 754 .setValue(entry.getValue()) 755 .build(); 756 size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); 757 } 758 if (loggingConfig_ != null) { 759 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); 760 } 761 size += getUnknownFields().getSerializedSize(); 762 memoizedSize = size; 763 return size; 764 } 765 766 @java.lang.Override equals(final java.lang.Object obj)767 public boolean equals(final java.lang.Object obj) { 768 if (obj == this) { 769 return true; 770 } 771 if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkJob)) { 772 return super.equals(obj); 773 } 774 com.google.cloud.dataproc.v1.PySparkJob other = (com.google.cloud.dataproc.v1.PySparkJob) obj; 775 776 if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; 777 if (!getArgsList().equals(other.getArgsList())) return false; 778 if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; 779 if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; 780 if (!getFileUrisList().equals(other.getFileUrisList())) return false; 781 if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; 782 if (!internalGetProperties().equals(other.internalGetProperties())) return false; 783 if (hasLoggingConfig() != other.hasLoggingConfig()) return false; 784 if (hasLoggingConfig()) { 785 if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; 786 } 787 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 788 return true; 789 } 790 791 @java.lang.Override hashCode()792 public int hashCode() { 793 if (memoizedHashCode != 0) { 794 return memoizedHashCode; 795 } 796 int hash = 41; 797 hash = (19 * hash) + getDescriptor().hashCode(); 798 hash = (37 * hash) + MAIN_PYTHON_FILE_URI_FIELD_NUMBER; 799 hash = (53 * hash) + getMainPythonFileUri().hashCode(); 800 if (getArgsCount() > 0) { 801 hash = (37 * hash) + ARGS_FIELD_NUMBER; 802 hash = (53 * hash) + getArgsList().hashCode(); 803 } 804 if (getPythonFileUrisCount() > 0) { 805 hash = (37 * hash) + PYTHON_FILE_URIS_FIELD_NUMBER; 806 hash = (53 * hash) + getPythonFileUrisList().hashCode(); 807 } 808 if (getJarFileUrisCount() > 0) { 809 hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; 810 hash = (53 * hash) + getJarFileUrisList().hashCode(); 811 } 812 if (getFileUrisCount() > 0) { 813 hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; 814 hash = (53 * hash) + getFileUrisList().hashCode(); 815 } 816 if (getArchiveUrisCount() > 0) { 817 hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; 818 hash = (53 * hash) + getArchiveUrisList().hashCode(); 819 } 820 if (!internalGetProperties().getMap().isEmpty()) { 821 hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; 822 hash = (53 * hash) + internalGetProperties().hashCode(); 823 } 824 if (hasLoggingConfig()) { 825 hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; 826 hash = (53 * hash) + getLoggingConfig().hashCode(); 827 } 828 hash = (29 * hash) + getUnknownFields().hashCode(); 829 memoizedHashCode = hash; 830 return hash; 831 } 832 parseFrom(java.nio.ByteBuffer data)833 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.nio.ByteBuffer data) 834 throws com.google.protobuf.InvalidProtocolBufferException { 835 return PARSER.parseFrom(data); 836 } 837 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)838 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 839 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 840 throws com.google.protobuf.InvalidProtocolBufferException { 841 return PARSER.parseFrom(data, extensionRegistry); 842 } 843 parseFrom( com.google.protobuf.ByteString data)844 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 845 com.google.protobuf.ByteString data) 846 throws com.google.protobuf.InvalidProtocolBufferException { 847 return PARSER.parseFrom(data); 848 } 849 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)850 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 851 com.google.protobuf.ByteString data, 852 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 853 throws com.google.protobuf.InvalidProtocolBufferException { 854 return PARSER.parseFrom(data, extensionRegistry); 855 } 856 parseFrom(byte[] data)857 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(byte[] data) 858 throws com.google.protobuf.InvalidProtocolBufferException { 859 return PARSER.parseFrom(data); 860 } 861 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)862 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 863 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 864 throws com.google.protobuf.InvalidProtocolBufferException { 865 return PARSER.parseFrom(data, extensionRegistry); 866 } 867 parseFrom(java.io.InputStream input)868 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.io.InputStream input) 869 throws java.io.IOException { 870 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 871 } 872 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)873 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 874 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 875 throws java.io.IOException { 876 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 877 PARSER, input, extensionRegistry); 878 } 879 parseDelimitedFrom( java.io.InputStream input)880 public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom( 881 java.io.InputStream input) throws java.io.IOException { 882 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 883 } 884 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)885 public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom( 886 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 887 throws java.io.IOException { 888 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 889 PARSER, input, extensionRegistry); 890 } 891 parseFrom( com.google.protobuf.CodedInputStream input)892 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 893 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 894 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 895 } 896 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)897 public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( 898 com.google.protobuf.CodedInputStream input, 899 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 900 throws java.io.IOException { 901 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 902 PARSER, input, extensionRegistry); 903 } 904 905 @java.lang.Override newBuilderForType()906 public Builder newBuilderForType() { 907 return newBuilder(); 908 } 909 newBuilder()910 public static Builder newBuilder() { 911 return DEFAULT_INSTANCE.toBuilder(); 912 } 913 newBuilder(com.google.cloud.dataproc.v1.PySparkJob prototype)914 public static Builder newBuilder(com.google.cloud.dataproc.v1.PySparkJob prototype) { 915 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 916 } 917 918 @java.lang.Override toBuilder()919 public Builder toBuilder() { 920 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 921 } 922 923 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)924 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 925 Builder builder = new Builder(parent); 926 return builder; 927 } 928 /** 929 * 930 * 931 * <pre> 932 * A Dataproc job for running 933 * [Apache 934 * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html) 935 * applications on YARN. 936 * </pre> 937 * 938 * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob} 939 */ 940 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 941 implements 942 // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkJob) 943 com.google.cloud.dataproc.v1.PySparkJobOrBuilder { getDescriptor()944 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 945 return com.google.cloud.dataproc.v1.JobsProto 946 .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; 947 } 948 949 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)950 protected com.google.protobuf.MapField internalGetMapField(int number) { 951 switch (number) { 952 case 7: 953 return internalGetProperties(); 954 default: 955 throw new RuntimeException("Invalid map field number: " + number); 956 } 957 } 958 959 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)960 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 961 switch (number) { 962 case 7: 963 return internalGetMutableProperties(); 964 default: 965 throw new RuntimeException("Invalid map field number: " + number); 966 } 967 } 968 969 @java.lang.Override 970 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()971 internalGetFieldAccessorTable() { 972 return com.google.cloud.dataproc.v1.JobsProto 973 .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable 974 .ensureFieldAccessorsInitialized( 975 com.google.cloud.dataproc.v1.PySparkJob.class, 976 com.google.cloud.dataproc.v1.PySparkJob.Builder.class); 977 } 978 979 // Construct using com.google.cloud.dataproc.v1.PySparkJob.newBuilder() Builder()980 private Builder() {} 981 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)982 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 983 super(parent); 984 } 985 986 @java.lang.Override clear()987 public Builder clear() { 988 super.clear(); 989 bitField0_ = 0; 990 mainPythonFileUri_ = ""; 991 args_ = com.google.protobuf.LazyStringArrayList.EMPTY; 992 bitField0_ = (bitField0_ & ~0x00000002); 993 pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 994 bitField0_ = (bitField0_ & ~0x00000004); 995 jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 996 bitField0_ = (bitField0_ & ~0x00000008); 997 fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 998 bitField0_ = (bitField0_ & ~0x00000010); 999 archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1000 bitField0_ = (bitField0_ & ~0x00000020); 1001 internalGetMutableProperties().clear(); 1002 loggingConfig_ = null; 1003 if (loggingConfigBuilder_ != null) { 1004 loggingConfigBuilder_.dispose(); 1005 loggingConfigBuilder_ = null; 1006 } 1007 return this; 1008 } 1009 1010 @java.lang.Override getDescriptorForType()1011 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1012 return com.google.cloud.dataproc.v1.JobsProto 1013 .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; 1014 } 1015 1016 @java.lang.Override getDefaultInstanceForType()1017 public com.google.cloud.dataproc.v1.PySparkJob getDefaultInstanceForType() { 1018 return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); 1019 } 1020 1021 @java.lang.Override build()1022 public com.google.cloud.dataproc.v1.PySparkJob build() { 1023 com.google.cloud.dataproc.v1.PySparkJob result = buildPartial(); 1024 if (!result.isInitialized()) { 1025 throw newUninitializedMessageException(result); 1026 } 1027 return result; 1028 } 1029 1030 @java.lang.Override buildPartial()1031 public com.google.cloud.dataproc.v1.PySparkJob buildPartial() { 1032 com.google.cloud.dataproc.v1.PySparkJob result = 1033 new com.google.cloud.dataproc.v1.PySparkJob(this); 1034 buildPartialRepeatedFields(result); 1035 if (bitField0_ != 0) { 1036 buildPartial0(result); 1037 } 1038 onBuilt(); 1039 return result; 1040 } 1041 buildPartialRepeatedFields(com.google.cloud.dataproc.v1.PySparkJob result)1042 private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.PySparkJob result) { 1043 if (((bitField0_ & 0x00000002) != 0)) { 1044 args_ = args_.getUnmodifiableView(); 1045 bitField0_ = (bitField0_ & ~0x00000002); 1046 } 1047 result.args_ = args_; 1048 if (((bitField0_ & 0x00000004) != 0)) { 1049 pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); 1050 bitField0_ = (bitField0_ & ~0x00000004); 1051 } 1052 result.pythonFileUris_ = pythonFileUris_; 1053 if (((bitField0_ & 0x00000008) != 0)) { 1054 jarFileUris_ = jarFileUris_.getUnmodifiableView(); 1055 bitField0_ = (bitField0_ & ~0x00000008); 1056 } 1057 result.jarFileUris_ = jarFileUris_; 1058 if (((bitField0_ & 0x00000010) != 0)) { 1059 fileUris_ = fileUris_.getUnmodifiableView(); 1060 bitField0_ = (bitField0_ & ~0x00000010); 1061 } 1062 result.fileUris_ = fileUris_; 1063 if (((bitField0_ & 0x00000020) != 0)) { 1064 archiveUris_ = archiveUris_.getUnmodifiableView(); 1065 bitField0_ = (bitField0_ & ~0x00000020); 1066 } 1067 result.archiveUris_ = archiveUris_; 1068 } 1069 buildPartial0(com.google.cloud.dataproc.v1.PySparkJob result)1070 private void buildPartial0(com.google.cloud.dataproc.v1.PySparkJob result) { 1071 int from_bitField0_ = bitField0_; 1072 if (((from_bitField0_ & 0x00000001) != 0)) { 1073 result.mainPythonFileUri_ = mainPythonFileUri_; 1074 } 1075 if (((from_bitField0_ & 0x00000040) != 0)) { 1076 result.properties_ = internalGetProperties(); 1077 result.properties_.makeImmutable(); 1078 } 1079 if (((from_bitField0_ & 0x00000080) != 0)) { 1080 result.loggingConfig_ = 1081 loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); 1082 } 1083 } 1084 1085 @java.lang.Override clone()1086 public Builder clone() { 1087 return super.clone(); 1088 } 1089 1090 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1091 public Builder setField( 1092 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1093 return super.setField(field, value); 1094 } 1095 1096 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1097 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1098 return super.clearField(field); 1099 } 1100 1101 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1102 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1103 return super.clearOneof(oneof); 1104 } 1105 1106 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1107 public Builder setRepeatedField( 1108 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1109 return super.setRepeatedField(field, index, value); 1110 } 1111 1112 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1113 public Builder addRepeatedField( 1114 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1115 return super.addRepeatedField(field, value); 1116 } 1117 1118 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1119 public Builder mergeFrom(com.google.protobuf.Message other) { 1120 if (other instanceof com.google.cloud.dataproc.v1.PySparkJob) { 1121 return mergeFrom((com.google.cloud.dataproc.v1.PySparkJob) other); 1122 } else { 1123 super.mergeFrom(other); 1124 return this; 1125 } 1126 } 1127 mergeFrom(com.google.cloud.dataproc.v1.PySparkJob other)1128 public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkJob other) { 1129 if (other == com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) return this; 1130 if (!other.getMainPythonFileUri().isEmpty()) { 1131 mainPythonFileUri_ = other.mainPythonFileUri_; 1132 bitField0_ |= 0x00000001; 1133 onChanged(); 1134 } 1135 if (!other.args_.isEmpty()) { 1136 if (args_.isEmpty()) { 1137 args_ = other.args_; 1138 bitField0_ = (bitField0_ & ~0x00000002); 1139 } else { 1140 ensureArgsIsMutable(); 1141 args_.addAll(other.args_); 1142 } 1143 onChanged(); 1144 } 1145 if (!other.pythonFileUris_.isEmpty()) { 1146 if (pythonFileUris_.isEmpty()) { 1147 pythonFileUris_ = other.pythonFileUris_; 1148 bitField0_ = (bitField0_ & ~0x00000004); 1149 } else { 1150 ensurePythonFileUrisIsMutable(); 1151 pythonFileUris_.addAll(other.pythonFileUris_); 1152 } 1153 onChanged(); 1154 } 1155 if (!other.jarFileUris_.isEmpty()) { 1156 if (jarFileUris_.isEmpty()) { 1157 jarFileUris_ = other.jarFileUris_; 1158 bitField0_ = (bitField0_ & ~0x00000008); 1159 } else { 1160 ensureJarFileUrisIsMutable(); 1161 jarFileUris_.addAll(other.jarFileUris_); 1162 } 1163 onChanged(); 1164 } 1165 if (!other.fileUris_.isEmpty()) { 1166 if (fileUris_.isEmpty()) { 1167 fileUris_ = other.fileUris_; 1168 bitField0_ = (bitField0_ & ~0x00000010); 1169 } else { 1170 ensureFileUrisIsMutable(); 1171 fileUris_.addAll(other.fileUris_); 1172 } 1173 onChanged(); 1174 } 1175 if (!other.archiveUris_.isEmpty()) { 1176 if (archiveUris_.isEmpty()) { 1177 archiveUris_ = other.archiveUris_; 1178 bitField0_ = (bitField0_ & ~0x00000020); 1179 } else { 1180 ensureArchiveUrisIsMutable(); 1181 archiveUris_.addAll(other.archiveUris_); 1182 } 1183 onChanged(); 1184 } 1185 internalGetMutableProperties().mergeFrom(other.internalGetProperties()); 1186 bitField0_ |= 0x00000040; 1187 if (other.hasLoggingConfig()) { 1188 mergeLoggingConfig(other.getLoggingConfig()); 1189 } 1190 this.mergeUnknownFields(other.getUnknownFields()); 1191 onChanged(); 1192 return this; 1193 } 1194 1195 @java.lang.Override isInitialized()1196 public final boolean isInitialized() { 1197 return true; 1198 } 1199 1200 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1201 public Builder mergeFrom( 1202 com.google.protobuf.CodedInputStream input, 1203 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1204 throws java.io.IOException { 1205 if (extensionRegistry == null) { 1206 throw new java.lang.NullPointerException(); 1207 } 1208 try { 1209 boolean done = false; 1210 while (!done) { 1211 int tag = input.readTag(); 1212 switch (tag) { 1213 case 0: 1214 done = true; 1215 break; 1216 case 10: 1217 { 1218 mainPythonFileUri_ = input.readStringRequireUtf8(); 1219 bitField0_ |= 0x00000001; 1220 break; 1221 } // case 10 1222 case 18: 1223 { 1224 java.lang.String s = input.readStringRequireUtf8(); 1225 ensureArgsIsMutable(); 1226 args_.add(s); 1227 break; 1228 } // case 18 1229 case 26: 1230 { 1231 java.lang.String s = input.readStringRequireUtf8(); 1232 ensurePythonFileUrisIsMutable(); 1233 pythonFileUris_.add(s); 1234 break; 1235 } // case 26 1236 case 34: 1237 { 1238 java.lang.String s = input.readStringRequireUtf8(); 1239 ensureJarFileUrisIsMutable(); 1240 jarFileUris_.add(s); 1241 break; 1242 } // case 34 1243 case 42: 1244 { 1245 java.lang.String s = input.readStringRequireUtf8(); 1246 ensureFileUrisIsMutable(); 1247 fileUris_.add(s); 1248 break; 1249 } // case 42 1250 case 50: 1251 { 1252 java.lang.String s = input.readStringRequireUtf8(); 1253 ensureArchiveUrisIsMutable(); 1254 archiveUris_.add(s); 1255 break; 1256 } // case 50 1257 case 58: 1258 { 1259 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> properties__ = 1260 input.readMessage( 1261 PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), 1262 extensionRegistry); 1263 internalGetMutableProperties() 1264 .getMutableMap() 1265 .put(properties__.getKey(), properties__.getValue()); 1266 bitField0_ |= 0x00000040; 1267 break; 1268 } // case 58 1269 case 66: 1270 { 1271 input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); 1272 bitField0_ |= 0x00000080; 1273 break; 1274 } // case 66 1275 default: 1276 { 1277 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1278 done = true; // was an endgroup tag 1279 } 1280 break; 1281 } // default: 1282 } // switch (tag) 1283 } // while (!done) 1284 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1285 throw e.unwrapIOException(); 1286 } finally { 1287 onChanged(); 1288 } // finally 1289 return this; 1290 } 1291 1292 private int bitField0_; 1293 1294 private java.lang.Object mainPythonFileUri_ = ""; 1295 /** 1296 * 1297 * 1298 * <pre> 1299 * Required. The HCFS URI of the main Python file to use as the driver. Must 1300 * be a .py file. 1301 * </pre> 1302 * 1303 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1304 * 1305 * @return The mainPythonFileUri. 1306 */ getMainPythonFileUri()1307 public java.lang.String getMainPythonFileUri() { 1308 java.lang.Object ref = mainPythonFileUri_; 1309 if (!(ref instanceof java.lang.String)) { 1310 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1311 java.lang.String s = bs.toStringUtf8(); 1312 mainPythonFileUri_ = s; 1313 return s; 1314 } else { 1315 return (java.lang.String) ref; 1316 } 1317 } 1318 /** 1319 * 1320 * 1321 * <pre> 1322 * Required. The HCFS URI of the main Python file to use as the driver. Must 1323 * be a .py file. 1324 * </pre> 1325 * 1326 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1327 * 1328 * @return The bytes for mainPythonFileUri. 1329 */ getMainPythonFileUriBytes()1330 public com.google.protobuf.ByteString getMainPythonFileUriBytes() { 1331 java.lang.Object ref = mainPythonFileUri_; 1332 if (ref instanceof String) { 1333 com.google.protobuf.ByteString b = 1334 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1335 mainPythonFileUri_ = b; 1336 return b; 1337 } else { 1338 return (com.google.protobuf.ByteString) ref; 1339 } 1340 } 1341 /** 1342 * 1343 * 1344 * <pre> 1345 * Required. The HCFS URI of the main Python file to use as the driver. Must 1346 * be a .py file. 1347 * </pre> 1348 * 1349 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1350 * 1351 * @param value The mainPythonFileUri to set. 1352 * @return This builder for chaining. 1353 */ setMainPythonFileUri(java.lang.String value)1354 public Builder setMainPythonFileUri(java.lang.String value) { 1355 if (value == null) { 1356 throw new NullPointerException(); 1357 } 1358 mainPythonFileUri_ = value; 1359 bitField0_ |= 0x00000001; 1360 onChanged(); 1361 return this; 1362 } 1363 /** 1364 * 1365 * 1366 * <pre> 1367 * Required. The HCFS URI of the main Python file to use as the driver. Must 1368 * be a .py file. 1369 * </pre> 1370 * 1371 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1372 * 1373 * @return This builder for chaining. 1374 */ clearMainPythonFileUri()1375 public Builder clearMainPythonFileUri() { 1376 mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); 1377 bitField0_ = (bitField0_ & ~0x00000001); 1378 onChanged(); 1379 return this; 1380 } 1381 /** 1382 * 1383 * 1384 * <pre> 1385 * Required. The HCFS URI of the main Python file to use as the driver. Must 1386 * be a .py file. 1387 * </pre> 1388 * 1389 * <code>string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1390 * 1391 * @param value The bytes for mainPythonFileUri to set. 1392 * @return This builder for chaining. 1393 */ setMainPythonFileUriBytes(com.google.protobuf.ByteString value)1394 public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { 1395 if (value == null) { 1396 throw new NullPointerException(); 1397 } 1398 checkByteStringIsUtf8(value); 1399 mainPythonFileUri_ = value; 1400 bitField0_ |= 0x00000001; 1401 onChanged(); 1402 return this; 1403 } 1404 1405 private com.google.protobuf.LazyStringList args_ = 1406 com.google.protobuf.LazyStringArrayList.EMPTY; 1407 ensureArgsIsMutable()1408 private void ensureArgsIsMutable() { 1409 if (!((bitField0_ & 0x00000002) != 0)) { 1410 args_ = new com.google.protobuf.LazyStringArrayList(args_); 1411 bitField0_ |= 0x00000002; 1412 } 1413 } 1414 /** 1415 * 1416 * 1417 * <pre> 1418 * Optional. The arguments to pass to the driver. Do not include arguments, 1419 * such as `--conf`, that can be set as job properties, since a collision may 1420 * occur that causes an incorrect job submission. 1421 * </pre> 1422 * 1423 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1424 * 1425 * @return A list containing the args. 1426 */ getArgsList()1427 public com.google.protobuf.ProtocolStringList getArgsList() { 1428 return args_.getUnmodifiableView(); 1429 } 1430 /** 1431 * 1432 * 1433 * <pre> 1434 * Optional. The arguments to pass to the driver. Do not include arguments, 1435 * such as `--conf`, that can be set as job properties, since a collision may 1436 * occur that causes an incorrect job submission. 1437 * </pre> 1438 * 1439 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1440 * 1441 * @return The count of args. 1442 */ getArgsCount()1443 public int getArgsCount() { 1444 return args_.size(); 1445 } 1446 /** 1447 * 1448 * 1449 * <pre> 1450 * Optional. The arguments to pass to the driver. Do not include arguments, 1451 * such as `--conf`, that can be set as job properties, since a collision may 1452 * occur that causes an incorrect job submission. 1453 * </pre> 1454 * 1455 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1456 * 1457 * @param index The index of the element to return. 1458 * @return The args at the given index. 1459 */ getArgs(int index)1460 public java.lang.String getArgs(int index) { 1461 return args_.get(index); 1462 } 1463 /** 1464 * 1465 * 1466 * <pre> 1467 * Optional. The arguments to pass to the driver. Do not include arguments, 1468 * such as `--conf`, that can be set as job properties, since a collision may 1469 * occur that causes an incorrect job submission. 1470 * </pre> 1471 * 1472 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1473 * 1474 * @param index The index of the value to return. 1475 * @return The bytes of the args at the given index. 1476 */ getArgsBytes(int index)1477 public com.google.protobuf.ByteString getArgsBytes(int index) { 1478 return args_.getByteString(index); 1479 } 1480 /** 1481 * 1482 * 1483 * <pre> 1484 * Optional. The arguments to pass to the driver. Do not include arguments, 1485 * such as `--conf`, that can be set as job properties, since a collision may 1486 * occur that causes an incorrect job submission. 1487 * </pre> 1488 * 1489 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1490 * 1491 * @param index The index to set the value at. 1492 * @param value The args to set. 1493 * @return This builder for chaining. 1494 */ setArgs(int index, java.lang.String value)1495 public Builder setArgs(int index, java.lang.String value) { 1496 if (value == null) { 1497 throw new NullPointerException(); 1498 } 1499 ensureArgsIsMutable(); 1500 args_.set(index, value); 1501 onChanged(); 1502 return this; 1503 } 1504 /** 1505 * 1506 * 1507 * <pre> 1508 * Optional. The arguments to pass to the driver. Do not include arguments, 1509 * such as `--conf`, that can be set as job properties, since a collision may 1510 * occur that causes an incorrect job submission. 1511 * </pre> 1512 * 1513 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1514 * 1515 * @param value The args to add. 1516 * @return This builder for chaining. 1517 */ addArgs(java.lang.String value)1518 public Builder addArgs(java.lang.String value) { 1519 if (value == null) { 1520 throw new NullPointerException(); 1521 } 1522 ensureArgsIsMutable(); 1523 args_.add(value); 1524 onChanged(); 1525 return this; 1526 } 1527 /** 1528 * 1529 * 1530 * <pre> 1531 * Optional. The arguments to pass to the driver. Do not include arguments, 1532 * such as `--conf`, that can be set as job properties, since a collision may 1533 * occur that causes an incorrect job submission. 1534 * </pre> 1535 * 1536 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1537 * 1538 * @param values The args to add. 1539 * @return This builder for chaining. 1540 */ addAllArgs(java.lang.Iterable<java.lang.String> values)1541 public Builder addAllArgs(java.lang.Iterable<java.lang.String> values) { 1542 ensureArgsIsMutable(); 1543 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); 1544 onChanged(); 1545 return this; 1546 } 1547 /** 1548 * 1549 * 1550 * <pre> 1551 * Optional. The arguments to pass to the driver. Do not include arguments, 1552 * such as `--conf`, that can be set as job properties, since a collision may 1553 * occur that causes an incorrect job submission. 1554 * </pre> 1555 * 1556 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1557 * 1558 * @return This builder for chaining. 1559 */ clearArgs()1560 public Builder clearArgs() { 1561 args_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1562 bitField0_ = (bitField0_ & ~0x00000002); 1563 onChanged(); 1564 return this; 1565 } 1566 /** 1567 * 1568 * 1569 * <pre> 1570 * Optional. The arguments to pass to the driver. Do not include arguments, 1571 * such as `--conf`, that can be set as job properties, since a collision may 1572 * occur that causes an incorrect job submission. 1573 * </pre> 1574 * 1575 * <code>repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];</code> 1576 * 1577 * @param value The bytes of the args to add. 1578 * @return This builder for chaining. 1579 */ addArgsBytes(com.google.protobuf.ByteString value)1580 public Builder addArgsBytes(com.google.protobuf.ByteString value) { 1581 if (value == null) { 1582 throw new NullPointerException(); 1583 } 1584 checkByteStringIsUtf8(value); 1585 ensureArgsIsMutable(); 1586 args_.add(value); 1587 onChanged(); 1588 return this; 1589 } 1590 1591 private com.google.protobuf.LazyStringList pythonFileUris_ = 1592 com.google.protobuf.LazyStringArrayList.EMPTY; 1593 ensurePythonFileUrisIsMutable()1594 private void ensurePythonFileUrisIsMutable() { 1595 if (!((bitField0_ & 0x00000004) != 0)) { 1596 pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); 1597 bitField0_ |= 0x00000004; 1598 } 1599 } 1600 /** 1601 * 1602 * 1603 * <pre> 1604 * Optional. HCFS file URIs of Python files to pass to the PySpark 1605 * framework. Supported file types: .py, .egg, and .zip. 1606 * </pre> 1607 * 1608 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1609 * 1610 * @return A list containing the pythonFileUris. 1611 */ getPythonFileUrisList()1612 public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { 1613 return pythonFileUris_.getUnmodifiableView(); 1614 } 1615 /** 1616 * 1617 * 1618 * <pre> 1619 * Optional. HCFS file URIs of Python files to pass to the PySpark 1620 * framework. Supported file types: .py, .egg, and .zip. 1621 * </pre> 1622 * 1623 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1624 * 1625 * @return The count of pythonFileUris. 1626 */ getPythonFileUrisCount()1627 public int getPythonFileUrisCount() { 1628 return pythonFileUris_.size(); 1629 } 1630 /** 1631 * 1632 * 1633 * <pre> 1634 * Optional. HCFS file URIs of Python files to pass to the PySpark 1635 * framework. Supported file types: .py, .egg, and .zip. 1636 * </pre> 1637 * 1638 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1639 * 1640 * @param index The index of the element to return. 1641 * @return The pythonFileUris at the given index. 1642 */ getPythonFileUris(int index)1643 public java.lang.String getPythonFileUris(int index) { 1644 return pythonFileUris_.get(index); 1645 } 1646 /** 1647 * 1648 * 1649 * <pre> 1650 * Optional. HCFS file URIs of Python files to pass to the PySpark 1651 * framework. Supported file types: .py, .egg, and .zip. 1652 * </pre> 1653 * 1654 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1655 * 1656 * @param index The index of the value to return. 1657 * @return The bytes of the pythonFileUris at the given index. 1658 */ getPythonFileUrisBytes(int index)1659 public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { 1660 return pythonFileUris_.getByteString(index); 1661 } 1662 /** 1663 * 1664 * 1665 * <pre> 1666 * Optional. HCFS file URIs of Python files to pass to the PySpark 1667 * framework. Supported file types: .py, .egg, and .zip. 1668 * </pre> 1669 * 1670 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1671 * 1672 * @param index The index to set the value at. 1673 * @param value The pythonFileUris to set. 1674 * @return This builder for chaining. 1675 */ setPythonFileUris(int index, java.lang.String value)1676 public Builder setPythonFileUris(int index, java.lang.String value) { 1677 if (value == null) { 1678 throw new NullPointerException(); 1679 } 1680 ensurePythonFileUrisIsMutable(); 1681 pythonFileUris_.set(index, value); 1682 onChanged(); 1683 return this; 1684 } 1685 /** 1686 * 1687 * 1688 * <pre> 1689 * Optional. HCFS file URIs of Python files to pass to the PySpark 1690 * framework. Supported file types: .py, .egg, and .zip. 1691 * </pre> 1692 * 1693 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1694 * 1695 * @param value The pythonFileUris to add. 1696 * @return This builder for chaining. 1697 */ addPythonFileUris(java.lang.String value)1698 public Builder addPythonFileUris(java.lang.String value) { 1699 if (value == null) { 1700 throw new NullPointerException(); 1701 } 1702 ensurePythonFileUrisIsMutable(); 1703 pythonFileUris_.add(value); 1704 onChanged(); 1705 return this; 1706 } 1707 /** 1708 * 1709 * 1710 * <pre> 1711 * Optional. HCFS file URIs of Python files to pass to the PySpark 1712 * framework. Supported file types: .py, .egg, and .zip. 1713 * </pre> 1714 * 1715 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1716 * 1717 * @param values The pythonFileUris to add. 1718 * @return This builder for chaining. 1719 */ addAllPythonFileUris(java.lang.Iterable<java.lang.String> values)1720 public Builder addAllPythonFileUris(java.lang.Iterable<java.lang.String> values) { 1721 ensurePythonFileUrisIsMutable(); 1722 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); 1723 onChanged(); 1724 return this; 1725 } 1726 /** 1727 * 1728 * 1729 * <pre> 1730 * Optional. HCFS file URIs of Python files to pass to the PySpark 1731 * framework. Supported file types: .py, .egg, and .zip. 1732 * </pre> 1733 * 1734 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1735 * 1736 * @return This builder for chaining. 1737 */ clearPythonFileUris()1738 public Builder clearPythonFileUris() { 1739 pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1740 bitField0_ = (bitField0_ & ~0x00000004); 1741 onChanged(); 1742 return this; 1743 } 1744 /** 1745 * 1746 * 1747 * <pre> 1748 * Optional. HCFS file URIs of Python files to pass to the PySpark 1749 * framework. Supported file types: .py, .egg, and .zip. 1750 * </pre> 1751 * 1752 * <code>repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1753 * 1754 * @param value The bytes of the pythonFileUris to add. 1755 * @return This builder for chaining. 1756 */ addPythonFileUrisBytes(com.google.protobuf.ByteString value)1757 public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { 1758 if (value == null) { 1759 throw new NullPointerException(); 1760 } 1761 checkByteStringIsUtf8(value); 1762 ensurePythonFileUrisIsMutable(); 1763 pythonFileUris_.add(value); 1764 onChanged(); 1765 return this; 1766 } 1767 1768 private com.google.protobuf.LazyStringList jarFileUris_ = 1769 com.google.protobuf.LazyStringArrayList.EMPTY; 1770 ensureJarFileUrisIsMutable()1771 private void ensureJarFileUrisIsMutable() { 1772 if (!((bitField0_ & 0x00000008) != 0)) { 1773 jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); 1774 bitField0_ |= 0x00000008; 1775 } 1776 } 1777 /** 1778 * 1779 * 1780 * <pre> 1781 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1782 * Python driver and tasks. 1783 * </pre> 1784 * 1785 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1786 * 1787 * @return A list containing the jarFileUris. 1788 */ getJarFileUrisList()1789 public com.google.protobuf.ProtocolStringList getJarFileUrisList() { 1790 return jarFileUris_.getUnmodifiableView(); 1791 } 1792 /** 1793 * 1794 * 1795 * <pre> 1796 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1797 * Python driver and tasks. 1798 * </pre> 1799 * 1800 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1801 * 1802 * @return The count of jarFileUris. 1803 */ getJarFileUrisCount()1804 public int getJarFileUrisCount() { 1805 return jarFileUris_.size(); 1806 } 1807 /** 1808 * 1809 * 1810 * <pre> 1811 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1812 * Python driver and tasks. 1813 * </pre> 1814 * 1815 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1816 * 1817 * @param index The index of the element to return. 1818 * @return The jarFileUris at the given index. 1819 */ getJarFileUris(int index)1820 public java.lang.String getJarFileUris(int index) { 1821 return jarFileUris_.get(index); 1822 } 1823 /** 1824 * 1825 * 1826 * <pre> 1827 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1828 * Python driver and tasks. 1829 * </pre> 1830 * 1831 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1832 * 1833 * @param index The index of the value to return. 1834 * @return The bytes of the jarFileUris at the given index. 1835 */ getJarFileUrisBytes(int index)1836 public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { 1837 return jarFileUris_.getByteString(index); 1838 } 1839 /** 1840 * 1841 * 1842 * <pre> 1843 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1844 * Python driver and tasks. 1845 * </pre> 1846 * 1847 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1848 * 1849 * @param index The index to set the value at. 1850 * @param value The jarFileUris to set. 1851 * @return This builder for chaining. 1852 */ setJarFileUris(int index, java.lang.String value)1853 public Builder setJarFileUris(int index, java.lang.String value) { 1854 if (value == null) { 1855 throw new NullPointerException(); 1856 } 1857 ensureJarFileUrisIsMutable(); 1858 jarFileUris_.set(index, value); 1859 onChanged(); 1860 return this; 1861 } 1862 /** 1863 * 1864 * 1865 * <pre> 1866 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1867 * Python driver and tasks. 1868 * </pre> 1869 * 1870 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1871 * 1872 * @param value The jarFileUris to add. 1873 * @return This builder for chaining. 1874 */ addJarFileUris(java.lang.String value)1875 public Builder addJarFileUris(java.lang.String value) { 1876 if (value == null) { 1877 throw new NullPointerException(); 1878 } 1879 ensureJarFileUrisIsMutable(); 1880 jarFileUris_.add(value); 1881 onChanged(); 1882 return this; 1883 } 1884 /** 1885 * 1886 * 1887 * <pre> 1888 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1889 * Python driver and tasks. 1890 * </pre> 1891 * 1892 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1893 * 1894 * @param values The jarFileUris to add. 1895 * @return This builder for chaining. 1896 */ addAllJarFileUris(java.lang.Iterable<java.lang.String> values)1897 public Builder addAllJarFileUris(java.lang.Iterable<java.lang.String> values) { 1898 ensureJarFileUrisIsMutable(); 1899 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); 1900 onChanged(); 1901 return this; 1902 } 1903 /** 1904 * 1905 * 1906 * <pre> 1907 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1908 * Python driver and tasks. 1909 * </pre> 1910 * 1911 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1912 * 1913 * @return This builder for chaining. 1914 */ clearJarFileUris()1915 public Builder clearJarFileUris() { 1916 jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1917 bitField0_ = (bitField0_ & ~0x00000008); 1918 onChanged(); 1919 return this; 1920 } 1921 /** 1922 * 1923 * 1924 * <pre> 1925 * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the 1926 * Python driver and tasks. 1927 * </pre> 1928 * 1929 * <code>repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];</code> 1930 * 1931 * @param value The bytes of the jarFileUris to add. 1932 * @return This builder for chaining. 1933 */ addJarFileUrisBytes(com.google.protobuf.ByteString value)1934 public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { 1935 if (value == null) { 1936 throw new NullPointerException(); 1937 } 1938 checkByteStringIsUtf8(value); 1939 ensureJarFileUrisIsMutable(); 1940 jarFileUris_.add(value); 1941 onChanged(); 1942 return this; 1943 } 1944 1945 private com.google.protobuf.LazyStringList fileUris_ = 1946 com.google.protobuf.LazyStringArrayList.EMPTY; 1947 ensureFileUrisIsMutable()1948 private void ensureFileUrisIsMutable() { 1949 if (!((bitField0_ & 0x00000010) != 0)) { 1950 fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); 1951 bitField0_ |= 0x00000010; 1952 } 1953 } 1954 /** 1955 * 1956 * 1957 * <pre> 1958 * Optional. HCFS URIs of files to be placed in the working directory of 1959 * each executor. Useful for naively parallel tasks. 1960 * </pre> 1961 * 1962 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 1963 * 1964 * @return A list containing the fileUris. 1965 */ getFileUrisList()1966 public com.google.protobuf.ProtocolStringList getFileUrisList() { 1967 return fileUris_.getUnmodifiableView(); 1968 } 1969 /** 1970 * 1971 * 1972 * <pre> 1973 * Optional. HCFS URIs of files to be placed in the working directory of 1974 * each executor. Useful for naively parallel tasks. 1975 * </pre> 1976 * 1977 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 1978 * 1979 * @return The count of fileUris. 1980 */ getFileUrisCount()1981 public int getFileUrisCount() { 1982 return fileUris_.size(); 1983 } 1984 /** 1985 * 1986 * 1987 * <pre> 1988 * Optional. HCFS URIs of files to be placed in the working directory of 1989 * each executor. Useful for naively parallel tasks. 1990 * </pre> 1991 * 1992 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 1993 * 1994 * @param index The index of the element to return. 1995 * @return The fileUris at the given index. 1996 */ getFileUris(int index)1997 public java.lang.String getFileUris(int index) { 1998 return fileUris_.get(index); 1999 } 2000 /** 2001 * 2002 * 2003 * <pre> 2004 * Optional. HCFS URIs of files to be placed in the working directory of 2005 * each executor. Useful for naively parallel tasks. 2006 * </pre> 2007 * 2008 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 2009 * 2010 * @param index The index of the value to return. 2011 * @return The bytes of the fileUris at the given index. 2012 */ getFileUrisBytes(int index)2013 public com.google.protobuf.ByteString getFileUrisBytes(int index) { 2014 return fileUris_.getByteString(index); 2015 } 2016 /** 2017 * 2018 * 2019 * <pre> 2020 * Optional. HCFS URIs of files to be placed in the working directory of 2021 * each executor. Useful for naively parallel tasks. 2022 * </pre> 2023 * 2024 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 2025 * 2026 * @param index The index to set the value at. 2027 * @param value The fileUris to set. 2028 * @return This builder for chaining. 2029 */ setFileUris(int index, java.lang.String value)2030 public Builder setFileUris(int index, java.lang.String value) { 2031 if (value == null) { 2032 throw new NullPointerException(); 2033 } 2034 ensureFileUrisIsMutable(); 2035 fileUris_.set(index, value); 2036 onChanged(); 2037 return this; 2038 } 2039 /** 2040 * 2041 * 2042 * <pre> 2043 * Optional. HCFS URIs of files to be placed in the working directory of 2044 * each executor. Useful for naively parallel tasks. 2045 * </pre> 2046 * 2047 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 2048 * 2049 * @param value The fileUris to add. 2050 * @return This builder for chaining. 2051 */ addFileUris(java.lang.String value)2052 public Builder addFileUris(java.lang.String value) { 2053 if (value == null) { 2054 throw new NullPointerException(); 2055 } 2056 ensureFileUrisIsMutable(); 2057 fileUris_.add(value); 2058 onChanged(); 2059 return this; 2060 } 2061 /** 2062 * 2063 * 2064 * <pre> 2065 * Optional. HCFS URIs of files to be placed in the working directory of 2066 * each executor. Useful for naively parallel tasks. 2067 * </pre> 2068 * 2069 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 2070 * 2071 * @param values The fileUris to add. 2072 * @return This builder for chaining. 2073 */ addAllFileUris(java.lang.Iterable<java.lang.String> values)2074 public Builder addAllFileUris(java.lang.Iterable<java.lang.String> values) { 2075 ensureFileUrisIsMutable(); 2076 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); 2077 onChanged(); 2078 return this; 2079 } 2080 /** 2081 * 2082 * 2083 * <pre> 2084 * Optional. HCFS URIs of files to be placed in the working directory of 2085 * each executor. Useful for naively parallel tasks. 2086 * </pre> 2087 * 2088 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 2089 * 2090 * @return This builder for chaining. 2091 */ clearFileUris()2092 public Builder clearFileUris() { 2093 fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2094 bitField0_ = (bitField0_ & ~0x00000010); 2095 onChanged(); 2096 return this; 2097 } 2098 /** 2099 * 2100 * 2101 * <pre> 2102 * Optional. HCFS URIs of files to be placed in the working directory of 2103 * each executor. Useful for naively parallel tasks. 2104 * </pre> 2105 * 2106 * <code>repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];</code> 2107 * 2108 * @param value The bytes of the fileUris to add. 2109 * @return This builder for chaining. 2110 */ addFileUrisBytes(com.google.protobuf.ByteString value)2111 public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { 2112 if (value == null) { 2113 throw new NullPointerException(); 2114 } 2115 checkByteStringIsUtf8(value); 2116 ensureFileUrisIsMutable(); 2117 fileUris_.add(value); 2118 onChanged(); 2119 return this; 2120 } 2121 2122 private com.google.protobuf.LazyStringList archiveUris_ = 2123 com.google.protobuf.LazyStringArrayList.EMPTY; 2124 ensureArchiveUrisIsMutable()2125 private void ensureArchiveUrisIsMutable() { 2126 if (!((bitField0_ & 0x00000020) != 0)) { 2127 archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); 2128 bitField0_ |= 0x00000020; 2129 } 2130 } 2131 /** 2132 * 2133 * 2134 * <pre> 2135 * Optional. HCFS URIs of archives to be extracted into the working directory 2136 * of each executor. Supported file types: 2137 * .jar, .tar, .tar.gz, .tgz, and .zip. 2138 * </pre> 2139 * 2140 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2141 * 2142 * @return A list containing the archiveUris. 2143 */ getArchiveUrisList()2144 public com.google.protobuf.ProtocolStringList getArchiveUrisList() { 2145 return archiveUris_.getUnmodifiableView(); 2146 } 2147 /** 2148 * 2149 * 2150 * <pre> 2151 * Optional. HCFS URIs of archives to be extracted into the working directory 2152 * of each executor. Supported file types: 2153 * .jar, .tar, .tar.gz, .tgz, and .zip. 2154 * </pre> 2155 * 2156 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2157 * 2158 * @return The count of archiveUris. 2159 */ getArchiveUrisCount()2160 public int getArchiveUrisCount() { 2161 return archiveUris_.size(); 2162 } 2163 /** 2164 * 2165 * 2166 * <pre> 2167 * Optional. HCFS URIs of archives to be extracted into the working directory 2168 * of each executor. Supported file types: 2169 * .jar, .tar, .tar.gz, .tgz, and .zip. 2170 * </pre> 2171 * 2172 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2173 * 2174 * @param index The index of the element to return. 2175 * @return The archiveUris at the given index. 2176 */ getArchiveUris(int index)2177 public java.lang.String getArchiveUris(int index) { 2178 return archiveUris_.get(index); 2179 } 2180 /** 2181 * 2182 * 2183 * <pre> 2184 * Optional. HCFS URIs of archives to be extracted into the working directory 2185 * of each executor. Supported file types: 2186 * .jar, .tar, .tar.gz, .tgz, and .zip. 2187 * </pre> 2188 * 2189 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2190 * 2191 * @param index The index of the value to return. 2192 * @return The bytes of the archiveUris at the given index. 2193 */ getArchiveUrisBytes(int index)2194 public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { 2195 return archiveUris_.getByteString(index); 2196 } 2197 /** 2198 * 2199 * 2200 * <pre> 2201 * Optional. HCFS URIs of archives to be extracted into the working directory 2202 * of each executor. Supported file types: 2203 * .jar, .tar, .tar.gz, .tgz, and .zip. 2204 * </pre> 2205 * 2206 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2207 * 2208 * @param index The index to set the value at. 2209 * @param value The archiveUris to set. 2210 * @return This builder for chaining. 2211 */ setArchiveUris(int index, java.lang.String value)2212 public Builder setArchiveUris(int index, java.lang.String value) { 2213 if (value == null) { 2214 throw new NullPointerException(); 2215 } 2216 ensureArchiveUrisIsMutable(); 2217 archiveUris_.set(index, value); 2218 onChanged(); 2219 return this; 2220 } 2221 /** 2222 * 2223 * 2224 * <pre> 2225 * Optional. HCFS URIs of archives to be extracted into the working directory 2226 * of each executor. Supported file types: 2227 * .jar, .tar, .tar.gz, .tgz, and .zip. 2228 * </pre> 2229 * 2230 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2231 * 2232 * @param value The archiveUris to add. 2233 * @return This builder for chaining. 2234 */ addArchiveUris(java.lang.String value)2235 public Builder addArchiveUris(java.lang.String value) { 2236 if (value == null) { 2237 throw new NullPointerException(); 2238 } 2239 ensureArchiveUrisIsMutable(); 2240 archiveUris_.add(value); 2241 onChanged(); 2242 return this; 2243 } 2244 /** 2245 * 2246 * 2247 * <pre> 2248 * Optional. HCFS URIs of archives to be extracted into the working directory 2249 * of each executor. Supported file types: 2250 * .jar, .tar, .tar.gz, .tgz, and .zip. 2251 * </pre> 2252 * 2253 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2254 * 2255 * @param values The archiveUris to add. 2256 * @return This builder for chaining. 2257 */ addAllArchiveUris(java.lang.Iterable<java.lang.String> values)2258 public Builder addAllArchiveUris(java.lang.Iterable<java.lang.String> values) { 2259 ensureArchiveUrisIsMutable(); 2260 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); 2261 onChanged(); 2262 return this; 2263 } 2264 /** 2265 * 2266 * 2267 * <pre> 2268 * Optional. HCFS URIs of archives to be extracted into the working directory 2269 * of each executor. Supported file types: 2270 * .jar, .tar, .tar.gz, .tgz, and .zip. 2271 * </pre> 2272 * 2273 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2274 * 2275 * @return This builder for chaining. 2276 */ clearArchiveUris()2277 public Builder clearArchiveUris() { 2278 archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2279 bitField0_ = (bitField0_ & ~0x00000020); 2280 onChanged(); 2281 return this; 2282 } 2283 /** 2284 * 2285 * 2286 * <pre> 2287 * Optional. HCFS URIs of archives to be extracted into the working directory 2288 * of each executor. Supported file types: 2289 * .jar, .tar, .tar.gz, .tgz, and .zip. 2290 * </pre> 2291 * 2292 * <code>repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code> 2293 * 2294 * @param value The bytes of the archiveUris to add. 2295 * @return This builder for chaining. 2296 */ addArchiveUrisBytes(com.google.protobuf.ByteString value)2297 public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { 2298 if (value == null) { 2299 throw new NullPointerException(); 2300 } 2301 checkByteStringIsUtf8(value); 2302 ensureArchiveUrisIsMutable(); 2303 archiveUris_.add(value); 2304 onChanged(); 2305 return this; 2306 } 2307 2308 private com.google.protobuf.MapField<java.lang.String, java.lang.String> properties_; 2309 2310 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetProperties()2311 internalGetProperties() { 2312 if (properties_ == null) { 2313 return com.google.protobuf.MapField.emptyMapField( 2314 PropertiesDefaultEntryHolder.defaultEntry); 2315 } 2316 return properties_; 2317 } 2318 2319 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableProperties()2320 internalGetMutableProperties() { 2321 if (properties_ == null) { 2322 properties_ = 2323 com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); 2324 } 2325 if (!properties_.isMutable()) { 2326 properties_ = properties_.copy(); 2327 } 2328 bitField0_ |= 0x00000040; 2329 onChanged(); 2330 return properties_; 2331 } 2332 getPropertiesCount()2333 public int getPropertiesCount() { 2334 return internalGetProperties().getMap().size(); 2335 } 2336 /** 2337 * 2338 * 2339 * <pre> 2340 * Optional. A mapping of property names to values, used to configure PySpark. 2341 * Properties that conflict with values set by the Dataproc API may be 2342 * overwritten. Can include properties set in 2343 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2344 * </pre> 2345 * 2346 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2347 * </code> 2348 */ 2349 @java.lang.Override containsProperties(java.lang.String key)2350 public boolean containsProperties(java.lang.String key) { 2351 if (key == null) { 2352 throw new NullPointerException("map key"); 2353 } 2354 return internalGetProperties().getMap().containsKey(key); 2355 } 2356 /** Use {@link #getPropertiesMap()} instead. */ 2357 @java.lang.Override 2358 @java.lang.Deprecated getProperties()2359 public java.util.Map<java.lang.String, java.lang.String> getProperties() { 2360 return getPropertiesMap(); 2361 } 2362 /** 2363 * 2364 * 2365 * <pre> 2366 * Optional. A mapping of property names to values, used to configure PySpark. 2367 * Properties that conflict with values set by the Dataproc API may be 2368 * overwritten. Can include properties set in 2369 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2370 * </pre> 2371 * 2372 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2373 * </code> 2374 */ 2375 @java.lang.Override getPropertiesMap()2376 public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() { 2377 return internalGetProperties().getMap(); 2378 } 2379 /** 2380 * 2381 * 2382 * <pre> 2383 * Optional. A mapping of property names to values, used to configure PySpark. 2384 * Properties that conflict with values set by the Dataproc API may be 2385 * overwritten. Can include properties set in 2386 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2387 * </pre> 2388 * 2389 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2390 * </code> 2391 */ 2392 @java.lang.Override getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)2393 public /* nullable */ java.lang.String getPropertiesOrDefault( 2394 java.lang.String key, 2395 /* nullable */ 2396 java.lang.String defaultValue) { 2397 if (key == null) { 2398 throw new NullPointerException("map key"); 2399 } 2400 java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap(); 2401 return map.containsKey(key) ? map.get(key) : defaultValue; 2402 } 2403 /** 2404 * 2405 * 2406 * <pre> 2407 * Optional. A mapping of property names to values, used to configure PySpark. 2408 * Properties that conflict with values set by the Dataproc API may be 2409 * overwritten. Can include properties set in 2410 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2411 * </pre> 2412 * 2413 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2414 * </code> 2415 */ 2416 @java.lang.Override getPropertiesOrThrow(java.lang.String key)2417 public java.lang.String getPropertiesOrThrow(java.lang.String key) { 2418 if (key == null) { 2419 throw new NullPointerException("map key"); 2420 } 2421 java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap(); 2422 if (!map.containsKey(key)) { 2423 throw new java.lang.IllegalArgumentException(); 2424 } 2425 return map.get(key); 2426 } 2427 clearProperties()2428 public Builder clearProperties() { 2429 bitField0_ = (bitField0_ & ~0x00000040); 2430 internalGetMutableProperties().getMutableMap().clear(); 2431 return this; 2432 } 2433 /** 2434 * 2435 * 2436 * <pre> 2437 * Optional. A mapping of property names to values, used to configure PySpark. 2438 * Properties that conflict with values set by the Dataproc API may be 2439 * overwritten. Can include properties set in 2440 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2441 * </pre> 2442 * 2443 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2444 * </code> 2445 */ removeProperties(java.lang.String key)2446 public Builder removeProperties(java.lang.String key) { 2447 if (key == null) { 2448 throw new NullPointerException("map key"); 2449 } 2450 internalGetMutableProperties().getMutableMap().remove(key); 2451 return this; 2452 } 2453 /** Use alternate mutation accessors instead. */ 2454 @java.lang.Deprecated getMutableProperties()2455 public java.util.Map<java.lang.String, java.lang.String> getMutableProperties() { 2456 bitField0_ |= 0x00000040; 2457 return internalGetMutableProperties().getMutableMap(); 2458 } 2459 /** 2460 * 2461 * 2462 * <pre> 2463 * Optional. A mapping of property names to values, used to configure PySpark. 2464 * Properties that conflict with values set by the Dataproc API may be 2465 * overwritten. Can include properties set in 2466 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2467 * </pre> 2468 * 2469 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2470 * </code> 2471 */ putProperties(java.lang.String key, java.lang.String value)2472 public Builder putProperties(java.lang.String key, java.lang.String value) { 2473 if (key == null) { 2474 throw new NullPointerException("map key"); 2475 } 2476 if (value == null) { 2477 throw new NullPointerException("map value"); 2478 } 2479 internalGetMutableProperties().getMutableMap().put(key, value); 2480 bitField0_ |= 0x00000040; 2481 return this; 2482 } 2483 /** 2484 * 2485 * 2486 * <pre> 2487 * Optional. A mapping of property names to values, used to configure PySpark. 2488 * Properties that conflict with values set by the Dataproc API may be 2489 * overwritten. Can include properties set in 2490 * /etc/spark/conf/spark-defaults.conf and classes in user code. 2491 * </pre> 2492 * 2493 * <code>map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; 2494 * </code> 2495 */ putAllProperties(java.util.Map<java.lang.String, java.lang.String> values)2496 public Builder putAllProperties(java.util.Map<java.lang.String, java.lang.String> values) { 2497 internalGetMutableProperties().getMutableMap().putAll(values); 2498 bitField0_ |= 0x00000040; 2499 return this; 2500 } 2501 2502 private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; 2503 private com.google.protobuf.SingleFieldBuilderV3< 2504 com.google.cloud.dataproc.v1.LoggingConfig, 2505 com.google.cloud.dataproc.v1.LoggingConfig.Builder, 2506 com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> 2507 loggingConfigBuilder_; 2508 /** 2509 * 2510 * 2511 * <pre> 2512 * Optional. The runtime log config for job execution. 2513 * </pre> 2514 * 2515 * <code> 2516 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2517 * </code> 2518 * 2519 * @return Whether the loggingConfig field is set. 2520 */ hasLoggingConfig()2521 public boolean hasLoggingConfig() { 2522 return ((bitField0_ & 0x00000080) != 0); 2523 } 2524 /** 2525 * 2526 * 2527 * <pre> 2528 * Optional. The runtime log config for job execution. 2529 * </pre> 2530 * 2531 * <code> 2532 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2533 * </code> 2534 * 2535 * @return The loggingConfig. 2536 */ getLoggingConfig()2537 public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { 2538 if (loggingConfigBuilder_ == null) { 2539 return loggingConfig_ == null 2540 ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() 2541 : loggingConfig_; 2542 } else { 2543 return loggingConfigBuilder_.getMessage(); 2544 } 2545 } 2546 /** 2547 * 2548 * 2549 * <pre> 2550 * Optional. The runtime log config for job execution. 2551 * </pre> 2552 * 2553 * <code> 2554 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2555 * </code> 2556 */ setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value)2557 public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { 2558 if (loggingConfigBuilder_ == null) { 2559 if (value == null) { 2560 throw new NullPointerException(); 2561 } 2562 loggingConfig_ = value; 2563 } else { 2564 loggingConfigBuilder_.setMessage(value); 2565 } 2566 bitField0_ |= 0x00000080; 2567 onChanged(); 2568 return this; 2569 } 2570 /** 2571 * 2572 * 2573 * <pre> 2574 * Optional. The runtime log config for job execution. 2575 * </pre> 2576 * 2577 * <code> 2578 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2579 * </code> 2580 */ setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue)2581 public Builder setLoggingConfig( 2582 com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { 2583 if (loggingConfigBuilder_ == null) { 2584 loggingConfig_ = builderForValue.build(); 2585 } else { 2586 loggingConfigBuilder_.setMessage(builderForValue.build()); 2587 } 2588 bitField0_ |= 0x00000080; 2589 onChanged(); 2590 return this; 2591 } 2592 /** 2593 * 2594 * 2595 * <pre> 2596 * Optional. The runtime log config for job execution. 2597 * </pre> 2598 * 2599 * <code> 2600 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2601 * </code> 2602 */ mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value)2603 public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { 2604 if (loggingConfigBuilder_ == null) { 2605 if (((bitField0_ & 0x00000080) != 0) 2606 && loggingConfig_ != null 2607 && loggingConfig_ != com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance()) { 2608 getLoggingConfigBuilder().mergeFrom(value); 2609 } else { 2610 loggingConfig_ = value; 2611 } 2612 } else { 2613 loggingConfigBuilder_.mergeFrom(value); 2614 } 2615 bitField0_ |= 0x00000080; 2616 onChanged(); 2617 return this; 2618 } 2619 /** 2620 * 2621 * 2622 * <pre> 2623 * Optional. The runtime log config for job execution. 2624 * </pre> 2625 * 2626 * <code> 2627 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2628 * </code> 2629 */ clearLoggingConfig()2630 public Builder clearLoggingConfig() { 2631 bitField0_ = (bitField0_ & ~0x00000080); 2632 loggingConfig_ = null; 2633 if (loggingConfigBuilder_ != null) { 2634 loggingConfigBuilder_.dispose(); 2635 loggingConfigBuilder_ = null; 2636 } 2637 onChanged(); 2638 return this; 2639 } 2640 /** 2641 * 2642 * 2643 * <pre> 2644 * Optional. The runtime log config for job execution. 2645 * </pre> 2646 * 2647 * <code> 2648 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2649 * </code> 2650 */ getLoggingConfigBuilder()2651 public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { 2652 bitField0_ |= 0x00000080; 2653 onChanged(); 2654 return getLoggingConfigFieldBuilder().getBuilder(); 2655 } 2656 /** 2657 * 2658 * 2659 * <pre> 2660 * Optional. The runtime log config for job execution. 2661 * </pre> 2662 * 2663 * <code> 2664 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2665 * </code> 2666 */ getLoggingConfigOrBuilder()2667 public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { 2668 if (loggingConfigBuilder_ != null) { 2669 return loggingConfigBuilder_.getMessageOrBuilder(); 2670 } else { 2671 return loggingConfig_ == null 2672 ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() 2673 : loggingConfig_; 2674 } 2675 } 2676 /** 2677 * 2678 * 2679 * <pre> 2680 * Optional. The runtime log config for job execution. 2681 * </pre> 2682 * 2683 * <code> 2684 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; 2685 * </code> 2686 */ 2687 private com.google.protobuf.SingleFieldBuilderV3< 2688 com.google.cloud.dataproc.v1.LoggingConfig, 2689 com.google.cloud.dataproc.v1.LoggingConfig.Builder, 2690 com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder()2691 getLoggingConfigFieldBuilder() { 2692 if (loggingConfigBuilder_ == null) { 2693 loggingConfigBuilder_ = 2694 new com.google.protobuf.SingleFieldBuilderV3< 2695 com.google.cloud.dataproc.v1.LoggingConfig, 2696 com.google.cloud.dataproc.v1.LoggingConfig.Builder, 2697 com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( 2698 getLoggingConfig(), getParentForChildren(), isClean()); 2699 loggingConfig_ = null; 2700 } 2701 return loggingConfigBuilder_; 2702 } 2703 2704 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2705 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2706 return super.setUnknownFields(unknownFields); 2707 } 2708 2709 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2710 public final Builder mergeUnknownFields( 2711 final com.google.protobuf.UnknownFieldSet unknownFields) { 2712 return super.mergeUnknownFields(unknownFields); 2713 } 2714 2715 // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PySparkJob) 2716 } 2717 2718 // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob) 2719 private static final com.google.cloud.dataproc.v1.PySparkJob DEFAULT_INSTANCE; 2720 2721 static { 2722 DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkJob(); 2723 } 2724 getDefaultInstance()2725 public static com.google.cloud.dataproc.v1.PySparkJob getDefaultInstance() { 2726 return DEFAULT_INSTANCE; 2727 } 2728 2729 private static final com.google.protobuf.Parser<PySparkJob> PARSER = 2730 new com.google.protobuf.AbstractParser<PySparkJob>() { 2731 @java.lang.Override 2732 public PySparkJob parsePartialFrom( 2733 com.google.protobuf.CodedInputStream input, 2734 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2735 throws com.google.protobuf.InvalidProtocolBufferException { 2736 Builder builder = newBuilder(); 2737 try { 2738 builder.mergeFrom(input, extensionRegistry); 2739 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2740 throw e.setUnfinishedMessage(builder.buildPartial()); 2741 } catch (com.google.protobuf.UninitializedMessageException e) { 2742 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2743 } catch (java.io.IOException e) { 2744 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2745 .setUnfinishedMessage(builder.buildPartial()); 2746 } 2747 return builder.buildPartial(); 2748 } 2749 }; 2750 parser()2751 public static com.google.protobuf.Parser<PySparkJob> parser() { 2752 return PARSER; 2753 } 2754 2755 @java.lang.Override getParserForType()2756 public com.google.protobuf.Parser<PySparkJob> getParserForType() { 2757 return PARSER; 2758 } 2759 2760 @java.lang.Override getDefaultInstanceForType()2761 public com.google.cloud.dataproc.v1.PySparkJob getDefaultInstanceForType() { 2762 return DEFAULT_INSTANCE; 2763 } 2764 } 2765