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