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