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 a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.Project} 29 */ 30 public final class Project extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Project) 33 ProjectOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use Project.newBuilder() to construct. Project(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private Project(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 Project()40 private Project() { 41 creationTimestamp_ = ""; 42 defaultNetworkTier_ = ""; 43 defaultServiceAccount_ = ""; 44 description_ = ""; 45 enabledFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 46 kind_ = ""; 47 name_ = ""; 48 quotas_ = java.util.Collections.emptyList(); 49 selfLink_ = ""; 50 vmDnsSetting_ = ""; 51 xpnProjectStatus_ = ""; 52 } 53 54 @java.lang.Override 55 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)56 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 57 return new Project(); 58 } 59 60 @java.lang.Override getUnknownFields()61 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 62 return this.unknownFields; 63 } 64 getDescriptor()65 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 66 return com.google.cloud.compute.v1.Compute 67 .internal_static_google_cloud_compute_v1_Project_descriptor; 68 } 69 70 @java.lang.Override 71 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()72 internalGetFieldAccessorTable() { 73 return com.google.cloud.compute.v1.Compute 74 .internal_static_google_cloud_compute_v1_Project_fieldAccessorTable 75 .ensureFieldAccessorsInitialized( 76 com.google.cloud.compute.v1.Project.class, 77 com.google.cloud.compute.v1.Project.Builder.class); 78 } 79 80 /** 81 * 82 * 83 * <pre> 84 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 85 * </pre> 86 * 87 * Protobuf enum {@code google.cloud.compute.v1.Project.DefaultNetworkTier} 88 */ 89 public enum DefaultNetworkTier implements com.google.protobuf.ProtocolMessageEnum { 90 /** 91 * 92 * 93 * <pre> 94 * A value indicating that the enum field is not set. 95 * </pre> 96 * 97 * <code>UNDEFINED_DEFAULT_NETWORK_TIER = 0;</code> 98 */ 99 UNDEFINED_DEFAULT_NETWORK_TIER(0), 100 /** 101 * 102 * 103 * <pre> 104 * Public internet quality with fixed bandwidth. 105 * </pre> 106 * 107 * <code>FIXED_STANDARD = 310464328;</code> 108 */ 109 FIXED_STANDARD(310464328), 110 /** 111 * 112 * 113 * <pre> 114 * High quality, Google-grade network tier, support for all networking products. 115 * </pre> 116 * 117 * <code>PREMIUM = 399530551;</code> 118 */ 119 PREMIUM(399530551), 120 /** 121 * 122 * 123 * <pre> 124 * Public internet quality, only limited support for other networking products. 125 * </pre> 126 * 127 * <code>STANDARD = 484642493;</code> 128 */ 129 STANDARD(484642493), 130 /** 131 * 132 * 133 * <pre> 134 * (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. 135 * </pre> 136 * 137 * <code>STANDARD_OVERRIDES_FIXED_STANDARD = 465847234;</code> 138 */ 139 STANDARD_OVERRIDES_FIXED_STANDARD(465847234), 140 UNRECOGNIZED(-1), 141 ; 142 143 /** 144 * 145 * 146 * <pre> 147 * A value indicating that the enum field is not set. 148 * </pre> 149 * 150 * <code>UNDEFINED_DEFAULT_NETWORK_TIER = 0;</code> 151 */ 152 public static final int UNDEFINED_DEFAULT_NETWORK_TIER_VALUE = 0; 153 /** 154 * 155 * 156 * <pre> 157 * Public internet quality with fixed bandwidth. 158 * </pre> 159 * 160 * <code>FIXED_STANDARD = 310464328;</code> 161 */ 162 public static final int FIXED_STANDARD_VALUE = 310464328; 163 /** 164 * 165 * 166 * <pre> 167 * High quality, Google-grade network tier, support for all networking products. 168 * </pre> 169 * 170 * <code>PREMIUM = 399530551;</code> 171 */ 172 public static final int PREMIUM_VALUE = 399530551; 173 /** 174 * 175 * 176 * <pre> 177 * Public internet quality, only limited support for other networking products. 178 * </pre> 179 * 180 * <code>STANDARD = 484642493;</code> 181 */ 182 public static final int STANDARD_VALUE = 484642493; 183 /** 184 * 185 * 186 * <pre> 187 * (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. 188 * </pre> 189 * 190 * <code>STANDARD_OVERRIDES_FIXED_STANDARD = 465847234;</code> 191 */ 192 public static final int STANDARD_OVERRIDES_FIXED_STANDARD_VALUE = 465847234; 193 getNumber()194 public final int getNumber() { 195 if (this == UNRECOGNIZED) { 196 throw new java.lang.IllegalArgumentException( 197 "Can't get the number of an unknown enum value."); 198 } 199 return value; 200 } 201 202 /** 203 * @param value The numeric wire value of the corresponding enum entry. 204 * @return The enum associated with the given numeric wire value. 205 * @deprecated Use {@link #forNumber(int)} instead. 206 */ 207 @java.lang.Deprecated valueOf(int value)208 public static DefaultNetworkTier valueOf(int value) { 209 return forNumber(value); 210 } 211 212 /** 213 * @param value The numeric wire value of the corresponding enum entry. 214 * @return The enum associated with the given numeric wire value. 215 */ forNumber(int value)216 public static DefaultNetworkTier forNumber(int value) { 217 switch (value) { 218 case 0: 219 return UNDEFINED_DEFAULT_NETWORK_TIER; 220 case 310464328: 221 return FIXED_STANDARD; 222 case 399530551: 223 return PREMIUM; 224 case 484642493: 225 return STANDARD; 226 case 465847234: 227 return STANDARD_OVERRIDES_FIXED_STANDARD; 228 default: 229 return null; 230 } 231 } 232 233 public static com.google.protobuf.Internal.EnumLiteMap<DefaultNetworkTier> internalGetValueMap()234 internalGetValueMap() { 235 return internalValueMap; 236 } 237 238 private static final com.google.protobuf.Internal.EnumLiteMap<DefaultNetworkTier> 239 internalValueMap = 240 new com.google.protobuf.Internal.EnumLiteMap<DefaultNetworkTier>() { 241 public DefaultNetworkTier findValueByNumber(int number) { 242 return DefaultNetworkTier.forNumber(number); 243 } 244 }; 245 getValueDescriptor()246 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 247 if (this == UNRECOGNIZED) { 248 throw new java.lang.IllegalStateException( 249 "Can't get the descriptor of an unrecognized enum value."); 250 } 251 return getDescriptor().getValues().get(ordinal()); 252 } 253 getDescriptorForType()254 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 255 return getDescriptor(); 256 } 257 getDescriptor()258 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 259 return com.google.cloud.compute.v1.Project.getDescriptor().getEnumTypes().get(0); 260 } 261 262 private static final DefaultNetworkTier[] VALUES = values(); 263 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)264 public static DefaultNetworkTier valueOf( 265 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 266 if (desc.getType() != getDescriptor()) { 267 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 268 } 269 if (desc.getIndex() == -1) { 270 return UNRECOGNIZED; 271 } 272 return VALUES[desc.getIndex()]; 273 } 274 275 private final int value; 276 DefaultNetworkTier(int value)277 private DefaultNetworkTier(int value) { 278 this.value = value; 279 } 280 281 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Project.DefaultNetworkTier) 282 } 283 284 /** 285 * 286 * 287 * <pre> 288 * [Output Only] Default internal DNS setting used by VMs running in this project. 289 * </pre> 290 * 291 * Protobuf enum {@code google.cloud.compute.v1.Project.VmDnsSetting} 292 */ 293 public enum VmDnsSetting implements com.google.protobuf.ProtocolMessageEnum { 294 /** 295 * 296 * 297 * <pre> 298 * A value indicating that the enum field is not set. 299 * </pre> 300 * 301 * <code>UNDEFINED_VM_DNS_SETTING = 0;</code> 302 */ 303 UNDEFINED_VM_DNS_SETTING(0), 304 /** <code>GLOBAL_DEFAULT = 345419141;</code> */ 305 GLOBAL_DEFAULT(345419141), 306 /** <code>UNSPECIFIED_VM_DNS_SETTING = 35691930;</code> */ 307 UNSPECIFIED_VM_DNS_SETTING(35691930), 308 /** <code>ZONAL_DEFAULT = 368475782;</code> */ 309 ZONAL_DEFAULT(368475782), 310 /** <code>ZONAL_ONLY = 521198951;</code> */ 311 ZONAL_ONLY(521198951), 312 UNRECOGNIZED(-1), 313 ; 314 315 /** 316 * 317 * 318 * <pre> 319 * A value indicating that the enum field is not set. 320 * </pre> 321 * 322 * <code>UNDEFINED_VM_DNS_SETTING = 0;</code> 323 */ 324 public static final int UNDEFINED_VM_DNS_SETTING_VALUE = 0; 325 /** <code>GLOBAL_DEFAULT = 345419141;</code> */ 326 public static final int GLOBAL_DEFAULT_VALUE = 345419141; 327 /** <code>UNSPECIFIED_VM_DNS_SETTING = 35691930;</code> */ 328 public static final int UNSPECIFIED_VM_DNS_SETTING_VALUE = 35691930; 329 /** <code>ZONAL_DEFAULT = 368475782;</code> */ 330 public static final int ZONAL_DEFAULT_VALUE = 368475782; 331 /** <code>ZONAL_ONLY = 521198951;</code> */ 332 public static final int ZONAL_ONLY_VALUE = 521198951; 333 getNumber()334 public final int getNumber() { 335 if (this == UNRECOGNIZED) { 336 throw new java.lang.IllegalArgumentException( 337 "Can't get the number of an unknown enum value."); 338 } 339 return value; 340 } 341 342 /** 343 * @param value The numeric wire value of the corresponding enum entry. 344 * @return The enum associated with the given numeric wire value. 345 * @deprecated Use {@link #forNumber(int)} instead. 346 */ 347 @java.lang.Deprecated valueOf(int value)348 public static VmDnsSetting valueOf(int value) { 349 return forNumber(value); 350 } 351 352 /** 353 * @param value The numeric wire value of the corresponding enum entry. 354 * @return The enum associated with the given numeric wire value. 355 */ forNumber(int value)356 public static VmDnsSetting forNumber(int value) { 357 switch (value) { 358 case 0: 359 return UNDEFINED_VM_DNS_SETTING; 360 case 345419141: 361 return GLOBAL_DEFAULT; 362 case 35691930: 363 return UNSPECIFIED_VM_DNS_SETTING; 364 case 368475782: 365 return ZONAL_DEFAULT; 366 case 521198951: 367 return ZONAL_ONLY; 368 default: 369 return null; 370 } 371 } 372 internalGetValueMap()373 public static com.google.protobuf.Internal.EnumLiteMap<VmDnsSetting> internalGetValueMap() { 374 return internalValueMap; 375 } 376 377 private static final com.google.protobuf.Internal.EnumLiteMap<VmDnsSetting> internalValueMap = 378 new com.google.protobuf.Internal.EnumLiteMap<VmDnsSetting>() { 379 public VmDnsSetting findValueByNumber(int number) { 380 return VmDnsSetting.forNumber(number); 381 } 382 }; 383 getValueDescriptor()384 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 385 if (this == UNRECOGNIZED) { 386 throw new java.lang.IllegalStateException( 387 "Can't get the descriptor of an unrecognized enum value."); 388 } 389 return getDescriptor().getValues().get(ordinal()); 390 } 391 getDescriptorForType()392 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 393 return getDescriptor(); 394 } 395 getDescriptor()396 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 397 return com.google.cloud.compute.v1.Project.getDescriptor().getEnumTypes().get(1); 398 } 399 400 private static final VmDnsSetting[] VALUES = values(); 401 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)402 public static VmDnsSetting valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 403 if (desc.getType() != getDescriptor()) { 404 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 405 } 406 if (desc.getIndex() == -1) { 407 return UNRECOGNIZED; 408 } 409 return VALUES[desc.getIndex()]; 410 } 411 412 private final int value; 413 VmDnsSetting(int value)414 private VmDnsSetting(int value) { 415 this.value = value; 416 } 417 418 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Project.VmDnsSetting) 419 } 420 421 /** 422 * 423 * 424 * <pre> 425 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 426 * </pre> 427 * 428 * Protobuf enum {@code google.cloud.compute.v1.Project.XpnProjectStatus} 429 */ 430 public enum XpnProjectStatus implements com.google.protobuf.ProtocolMessageEnum { 431 /** 432 * 433 * 434 * <pre> 435 * A value indicating that the enum field is not set. 436 * </pre> 437 * 438 * <code>UNDEFINED_XPN_PROJECT_STATUS = 0;</code> 439 */ 440 UNDEFINED_XPN_PROJECT_STATUS(0), 441 /** <code>HOST = 2223528;</code> */ 442 HOST(2223528), 443 /** <code>UNSPECIFIED_XPN_PROJECT_STATUS = 340393257;</code> */ 444 UNSPECIFIED_XPN_PROJECT_STATUS(340393257), 445 UNRECOGNIZED(-1), 446 ; 447 448 /** 449 * 450 * 451 * <pre> 452 * A value indicating that the enum field is not set. 453 * </pre> 454 * 455 * <code>UNDEFINED_XPN_PROJECT_STATUS = 0;</code> 456 */ 457 public static final int UNDEFINED_XPN_PROJECT_STATUS_VALUE = 0; 458 /** <code>HOST = 2223528;</code> */ 459 public static final int HOST_VALUE = 2223528; 460 /** <code>UNSPECIFIED_XPN_PROJECT_STATUS = 340393257;</code> */ 461 public static final int UNSPECIFIED_XPN_PROJECT_STATUS_VALUE = 340393257; 462 getNumber()463 public final int getNumber() { 464 if (this == UNRECOGNIZED) { 465 throw new java.lang.IllegalArgumentException( 466 "Can't get the number of an unknown enum value."); 467 } 468 return value; 469 } 470 471 /** 472 * @param value The numeric wire value of the corresponding enum entry. 473 * @return The enum associated with the given numeric wire value. 474 * @deprecated Use {@link #forNumber(int)} instead. 475 */ 476 @java.lang.Deprecated valueOf(int value)477 public static XpnProjectStatus valueOf(int value) { 478 return forNumber(value); 479 } 480 481 /** 482 * @param value The numeric wire value of the corresponding enum entry. 483 * @return The enum associated with the given numeric wire value. 484 */ forNumber(int value)485 public static XpnProjectStatus forNumber(int value) { 486 switch (value) { 487 case 0: 488 return UNDEFINED_XPN_PROJECT_STATUS; 489 case 2223528: 490 return HOST; 491 case 340393257: 492 return UNSPECIFIED_XPN_PROJECT_STATUS; 493 default: 494 return null; 495 } 496 } 497 internalGetValueMap()498 public static com.google.protobuf.Internal.EnumLiteMap<XpnProjectStatus> internalGetValueMap() { 499 return internalValueMap; 500 } 501 502 private static final com.google.protobuf.Internal.EnumLiteMap<XpnProjectStatus> 503 internalValueMap = 504 new com.google.protobuf.Internal.EnumLiteMap<XpnProjectStatus>() { 505 public XpnProjectStatus findValueByNumber(int number) { 506 return XpnProjectStatus.forNumber(number); 507 } 508 }; 509 getValueDescriptor()510 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 511 if (this == UNRECOGNIZED) { 512 throw new java.lang.IllegalStateException( 513 "Can't get the descriptor of an unrecognized enum value."); 514 } 515 return getDescriptor().getValues().get(ordinal()); 516 } 517 getDescriptorForType()518 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 519 return getDescriptor(); 520 } 521 getDescriptor()522 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 523 return com.google.cloud.compute.v1.Project.getDescriptor().getEnumTypes().get(2); 524 } 525 526 private static final XpnProjectStatus[] VALUES = values(); 527 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)528 public static XpnProjectStatus valueOf( 529 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 530 if (desc.getType() != getDescriptor()) { 531 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 532 } 533 if (desc.getIndex() == -1) { 534 return UNRECOGNIZED; 535 } 536 return VALUES[desc.getIndex()]; 537 } 538 539 private final int value; 540 XpnProjectStatus(int value)541 private XpnProjectStatus(int value) { 542 this.value = value; 543 } 544 545 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Project.XpnProjectStatus) 546 } 547 548 private int bitField0_; 549 public static final int COMMON_INSTANCE_METADATA_FIELD_NUMBER = 185794117; 550 private com.google.cloud.compute.v1.Metadata commonInstanceMetadata_; 551 /** 552 * 553 * 554 * <pre> 555 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 556 * </pre> 557 * 558 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 559 * 560 * @return Whether the commonInstanceMetadata field is set. 561 */ 562 @java.lang.Override hasCommonInstanceMetadata()563 public boolean hasCommonInstanceMetadata() { 564 return ((bitField0_ & 0x00000001) != 0); 565 } 566 /** 567 * 568 * 569 * <pre> 570 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 571 * </pre> 572 * 573 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 574 * 575 * @return The commonInstanceMetadata. 576 */ 577 @java.lang.Override getCommonInstanceMetadata()578 public com.google.cloud.compute.v1.Metadata getCommonInstanceMetadata() { 579 return commonInstanceMetadata_ == null 580 ? com.google.cloud.compute.v1.Metadata.getDefaultInstance() 581 : commonInstanceMetadata_; 582 } 583 /** 584 * 585 * 586 * <pre> 587 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 588 * </pre> 589 * 590 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 591 */ 592 @java.lang.Override getCommonInstanceMetadataOrBuilder()593 public com.google.cloud.compute.v1.MetadataOrBuilder getCommonInstanceMetadataOrBuilder() { 594 return commonInstanceMetadata_ == null 595 ? com.google.cloud.compute.v1.Metadata.getDefaultInstance() 596 : commonInstanceMetadata_; 597 } 598 599 public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; 600 601 @SuppressWarnings("serial") 602 private volatile java.lang.Object creationTimestamp_ = ""; 603 /** 604 * 605 * 606 * <pre> 607 * [Output Only] Creation timestamp in RFC3339 text format. 608 * </pre> 609 * 610 * <code>optional string creation_timestamp = 30525366;</code> 611 * 612 * @return Whether the creationTimestamp field is set. 613 */ 614 @java.lang.Override hasCreationTimestamp()615 public boolean hasCreationTimestamp() { 616 return ((bitField0_ & 0x00000002) != 0); 617 } 618 /** 619 * 620 * 621 * <pre> 622 * [Output Only] Creation timestamp in RFC3339 text format. 623 * </pre> 624 * 625 * <code>optional string creation_timestamp = 30525366;</code> 626 * 627 * @return The creationTimestamp. 628 */ 629 @java.lang.Override getCreationTimestamp()630 public java.lang.String getCreationTimestamp() { 631 java.lang.Object ref = creationTimestamp_; 632 if (ref instanceof java.lang.String) { 633 return (java.lang.String) ref; 634 } else { 635 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 636 java.lang.String s = bs.toStringUtf8(); 637 creationTimestamp_ = s; 638 return s; 639 } 640 } 641 /** 642 * 643 * 644 * <pre> 645 * [Output Only] Creation timestamp in RFC3339 text format. 646 * </pre> 647 * 648 * <code>optional string creation_timestamp = 30525366;</code> 649 * 650 * @return The bytes for creationTimestamp. 651 */ 652 @java.lang.Override getCreationTimestampBytes()653 public com.google.protobuf.ByteString getCreationTimestampBytes() { 654 java.lang.Object ref = creationTimestamp_; 655 if (ref instanceof java.lang.String) { 656 com.google.protobuf.ByteString b = 657 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 658 creationTimestamp_ = b; 659 return b; 660 } else { 661 return (com.google.protobuf.ByteString) ref; 662 } 663 } 664 665 public static final int DEFAULT_NETWORK_TIER_FIELD_NUMBER = 471753361; 666 667 @SuppressWarnings("serial") 668 private volatile java.lang.Object defaultNetworkTier_ = ""; 669 /** 670 * 671 * 672 * <pre> 673 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 674 * Check the DefaultNetworkTier enum for the list of possible values. 675 * </pre> 676 * 677 * <code>optional string default_network_tier = 471753361;</code> 678 * 679 * @return Whether the defaultNetworkTier field is set. 680 */ 681 @java.lang.Override hasDefaultNetworkTier()682 public boolean hasDefaultNetworkTier() { 683 return ((bitField0_ & 0x00000004) != 0); 684 } 685 /** 686 * 687 * 688 * <pre> 689 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 690 * Check the DefaultNetworkTier enum for the list of possible values. 691 * </pre> 692 * 693 * <code>optional string default_network_tier = 471753361;</code> 694 * 695 * @return The defaultNetworkTier. 696 */ 697 @java.lang.Override getDefaultNetworkTier()698 public java.lang.String getDefaultNetworkTier() { 699 java.lang.Object ref = defaultNetworkTier_; 700 if (ref instanceof java.lang.String) { 701 return (java.lang.String) ref; 702 } else { 703 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 704 java.lang.String s = bs.toStringUtf8(); 705 defaultNetworkTier_ = s; 706 return s; 707 } 708 } 709 /** 710 * 711 * 712 * <pre> 713 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 714 * Check the DefaultNetworkTier enum for the list of possible values. 715 * </pre> 716 * 717 * <code>optional string default_network_tier = 471753361;</code> 718 * 719 * @return The bytes for defaultNetworkTier. 720 */ 721 @java.lang.Override getDefaultNetworkTierBytes()722 public com.google.protobuf.ByteString getDefaultNetworkTierBytes() { 723 java.lang.Object ref = defaultNetworkTier_; 724 if (ref instanceof java.lang.String) { 725 com.google.protobuf.ByteString b = 726 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 727 defaultNetworkTier_ = b; 728 return b; 729 } else { 730 return (com.google.protobuf.ByteString) ref; 731 } 732 } 733 734 public static final int DEFAULT_SERVICE_ACCOUNT_FIELD_NUMBER = 298712229; 735 736 @SuppressWarnings("serial") 737 private volatile java.lang.Object defaultServiceAccount_ = ""; 738 /** 739 * 740 * 741 * <pre> 742 * [Output Only] Default service account used by VMs running in this project. 743 * </pre> 744 * 745 * <code>optional string default_service_account = 298712229;</code> 746 * 747 * @return Whether the defaultServiceAccount field is set. 748 */ 749 @java.lang.Override hasDefaultServiceAccount()750 public boolean hasDefaultServiceAccount() { 751 return ((bitField0_ & 0x00000008) != 0); 752 } 753 /** 754 * 755 * 756 * <pre> 757 * [Output Only] Default service account used by VMs running in this project. 758 * </pre> 759 * 760 * <code>optional string default_service_account = 298712229;</code> 761 * 762 * @return The defaultServiceAccount. 763 */ 764 @java.lang.Override getDefaultServiceAccount()765 public java.lang.String getDefaultServiceAccount() { 766 java.lang.Object ref = defaultServiceAccount_; 767 if (ref instanceof java.lang.String) { 768 return (java.lang.String) ref; 769 } else { 770 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 771 java.lang.String s = bs.toStringUtf8(); 772 defaultServiceAccount_ = s; 773 return s; 774 } 775 } 776 /** 777 * 778 * 779 * <pre> 780 * [Output Only] Default service account used by VMs running in this project. 781 * </pre> 782 * 783 * <code>optional string default_service_account = 298712229;</code> 784 * 785 * @return The bytes for defaultServiceAccount. 786 */ 787 @java.lang.Override getDefaultServiceAccountBytes()788 public com.google.protobuf.ByteString getDefaultServiceAccountBytes() { 789 java.lang.Object ref = defaultServiceAccount_; 790 if (ref instanceof java.lang.String) { 791 com.google.protobuf.ByteString b = 792 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 793 defaultServiceAccount_ = b; 794 return b; 795 } else { 796 return (com.google.protobuf.ByteString) ref; 797 } 798 } 799 800 public static final int DESCRIPTION_FIELD_NUMBER = 422937596; 801 802 @SuppressWarnings("serial") 803 private volatile java.lang.Object description_ = ""; 804 /** 805 * 806 * 807 * <pre> 808 * An optional textual description of the resource. 809 * </pre> 810 * 811 * <code>optional string description = 422937596;</code> 812 * 813 * @return Whether the description field is set. 814 */ 815 @java.lang.Override hasDescription()816 public boolean hasDescription() { 817 return ((bitField0_ & 0x00000010) != 0); 818 } 819 /** 820 * 821 * 822 * <pre> 823 * An optional textual description of the resource. 824 * </pre> 825 * 826 * <code>optional string description = 422937596;</code> 827 * 828 * @return The description. 829 */ 830 @java.lang.Override getDescription()831 public java.lang.String getDescription() { 832 java.lang.Object ref = description_; 833 if (ref instanceof java.lang.String) { 834 return (java.lang.String) ref; 835 } else { 836 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 837 java.lang.String s = bs.toStringUtf8(); 838 description_ = s; 839 return s; 840 } 841 } 842 /** 843 * 844 * 845 * <pre> 846 * An optional textual description of the resource. 847 * </pre> 848 * 849 * <code>optional string description = 422937596;</code> 850 * 851 * @return The bytes for description. 852 */ 853 @java.lang.Override getDescriptionBytes()854 public com.google.protobuf.ByteString getDescriptionBytes() { 855 java.lang.Object ref = description_; 856 if (ref instanceof java.lang.String) { 857 com.google.protobuf.ByteString b = 858 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 859 description_ = b; 860 return b; 861 } else { 862 return (com.google.protobuf.ByteString) ref; 863 } 864 } 865 866 public static final int ENABLED_FEATURES_FIELD_NUMBER = 469017467; 867 868 @SuppressWarnings("serial") 869 private com.google.protobuf.LazyStringList enabledFeatures_; 870 /** 871 * 872 * 873 * <pre> 874 * Restricted features enabled for use on this project. 875 * </pre> 876 * 877 * <code>repeated string enabled_features = 469017467;</code> 878 * 879 * @return A list containing the enabledFeatures. 880 */ getEnabledFeaturesList()881 public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { 882 return enabledFeatures_; 883 } 884 /** 885 * 886 * 887 * <pre> 888 * Restricted features enabled for use on this project. 889 * </pre> 890 * 891 * <code>repeated string enabled_features = 469017467;</code> 892 * 893 * @return The count of enabledFeatures. 894 */ getEnabledFeaturesCount()895 public int getEnabledFeaturesCount() { 896 return enabledFeatures_.size(); 897 } 898 /** 899 * 900 * 901 * <pre> 902 * Restricted features enabled for use on this project. 903 * </pre> 904 * 905 * <code>repeated string enabled_features = 469017467;</code> 906 * 907 * @param index The index of the element to return. 908 * @return The enabledFeatures at the given index. 909 */ getEnabledFeatures(int index)910 public java.lang.String getEnabledFeatures(int index) { 911 return enabledFeatures_.get(index); 912 } 913 /** 914 * 915 * 916 * <pre> 917 * Restricted features enabled for use on this project. 918 * </pre> 919 * 920 * <code>repeated string enabled_features = 469017467;</code> 921 * 922 * @param index The index of the value to return. 923 * @return The bytes of the enabledFeatures at the given index. 924 */ getEnabledFeaturesBytes(int index)925 public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { 926 return enabledFeatures_.getByteString(index); 927 } 928 929 public static final int ID_FIELD_NUMBER = 3355; 930 private long id_ = 0L; 931 /** 932 * 933 * 934 * <pre> 935 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. 936 * </pre> 937 * 938 * <code>optional uint64 id = 3355;</code> 939 * 940 * @return Whether the id field is set. 941 */ 942 @java.lang.Override hasId()943 public boolean hasId() { 944 return ((bitField0_ & 0x00000020) != 0); 945 } 946 /** 947 * 948 * 949 * <pre> 950 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. 951 * </pre> 952 * 953 * <code>optional uint64 id = 3355;</code> 954 * 955 * @return The id. 956 */ 957 @java.lang.Override getId()958 public long getId() { 959 return id_; 960 } 961 962 public static final int KIND_FIELD_NUMBER = 3292052; 963 964 @SuppressWarnings("serial") 965 private volatile java.lang.Object kind_ = ""; 966 /** 967 * 968 * 969 * <pre> 970 * [Output Only] Type of the resource. Always compute#project for projects. 971 * </pre> 972 * 973 * <code>optional string kind = 3292052;</code> 974 * 975 * @return Whether the kind field is set. 976 */ 977 @java.lang.Override hasKind()978 public boolean hasKind() { 979 return ((bitField0_ & 0x00000040) != 0); 980 } 981 /** 982 * 983 * 984 * <pre> 985 * [Output Only] Type of the resource. Always compute#project for projects. 986 * </pre> 987 * 988 * <code>optional string kind = 3292052;</code> 989 * 990 * @return The kind. 991 */ 992 @java.lang.Override getKind()993 public java.lang.String getKind() { 994 java.lang.Object ref = kind_; 995 if (ref instanceof java.lang.String) { 996 return (java.lang.String) ref; 997 } else { 998 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 999 java.lang.String s = bs.toStringUtf8(); 1000 kind_ = s; 1001 return s; 1002 } 1003 } 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * [Output Only] Type of the resource. Always compute#project for projects. 1009 * </pre> 1010 * 1011 * <code>optional string kind = 3292052;</code> 1012 * 1013 * @return The bytes for kind. 1014 */ 1015 @java.lang.Override getKindBytes()1016 public com.google.protobuf.ByteString getKindBytes() { 1017 java.lang.Object ref = kind_; 1018 if (ref instanceof java.lang.String) { 1019 com.google.protobuf.ByteString b = 1020 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1021 kind_ = b; 1022 return b; 1023 } else { 1024 return (com.google.protobuf.ByteString) ref; 1025 } 1026 } 1027 1028 public static final int NAME_FIELD_NUMBER = 3373707; 1029 1030 @SuppressWarnings("serial") 1031 private volatile java.lang.Object name_ = ""; 1032 /** 1033 * 1034 * 1035 * <pre> 1036 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 1037 * </pre> 1038 * 1039 * <code>optional string name = 3373707;</code> 1040 * 1041 * @return Whether the name field is set. 1042 */ 1043 @java.lang.Override hasName()1044 public boolean hasName() { 1045 return ((bitField0_ & 0x00000080) != 0); 1046 } 1047 /** 1048 * 1049 * 1050 * <pre> 1051 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 1052 * </pre> 1053 * 1054 * <code>optional string name = 3373707;</code> 1055 * 1056 * @return The name. 1057 */ 1058 @java.lang.Override getName()1059 public java.lang.String getName() { 1060 java.lang.Object ref = name_; 1061 if (ref instanceof java.lang.String) { 1062 return (java.lang.String) ref; 1063 } else { 1064 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1065 java.lang.String s = bs.toStringUtf8(); 1066 name_ = s; 1067 return s; 1068 } 1069 } 1070 /** 1071 * 1072 * 1073 * <pre> 1074 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 1075 * </pre> 1076 * 1077 * <code>optional string name = 3373707;</code> 1078 * 1079 * @return The bytes for name. 1080 */ 1081 @java.lang.Override getNameBytes()1082 public com.google.protobuf.ByteString getNameBytes() { 1083 java.lang.Object ref = name_; 1084 if (ref instanceof java.lang.String) { 1085 com.google.protobuf.ByteString b = 1086 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1087 name_ = b; 1088 return b; 1089 } else { 1090 return (com.google.protobuf.ByteString) ref; 1091 } 1092 } 1093 1094 public static final int QUOTAS_FIELD_NUMBER = 125341947; 1095 1096 @SuppressWarnings("serial") 1097 private java.util.List<com.google.cloud.compute.v1.Quota> quotas_; 1098 /** 1099 * 1100 * 1101 * <pre> 1102 * [Output Only] Quotas assigned to this project. 1103 * </pre> 1104 * 1105 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 1106 */ 1107 @java.lang.Override getQuotasList()1108 public java.util.List<com.google.cloud.compute.v1.Quota> getQuotasList() { 1109 return quotas_; 1110 } 1111 /** 1112 * 1113 * 1114 * <pre> 1115 * [Output Only] Quotas assigned to this project. 1116 * </pre> 1117 * 1118 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 1119 */ 1120 @java.lang.Override 1121 public java.util.List<? extends com.google.cloud.compute.v1.QuotaOrBuilder> getQuotasOrBuilderList()1122 getQuotasOrBuilderList() { 1123 return quotas_; 1124 } 1125 /** 1126 * 1127 * 1128 * <pre> 1129 * [Output Only] Quotas assigned to this project. 1130 * </pre> 1131 * 1132 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 1133 */ 1134 @java.lang.Override getQuotasCount()1135 public int getQuotasCount() { 1136 return quotas_.size(); 1137 } 1138 /** 1139 * 1140 * 1141 * <pre> 1142 * [Output Only] Quotas assigned to this project. 1143 * </pre> 1144 * 1145 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 1146 */ 1147 @java.lang.Override getQuotas(int index)1148 public com.google.cloud.compute.v1.Quota getQuotas(int index) { 1149 return quotas_.get(index); 1150 } 1151 /** 1152 * 1153 * 1154 * <pre> 1155 * [Output Only] Quotas assigned to this project. 1156 * </pre> 1157 * 1158 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 1159 */ 1160 @java.lang.Override getQuotasOrBuilder(int index)1161 public com.google.cloud.compute.v1.QuotaOrBuilder getQuotasOrBuilder(int index) { 1162 return quotas_.get(index); 1163 } 1164 1165 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 1166 1167 @SuppressWarnings("serial") 1168 private volatile java.lang.Object selfLink_ = ""; 1169 /** 1170 * 1171 * 1172 * <pre> 1173 * [Output Only] Server-defined URL for the resource. 1174 * </pre> 1175 * 1176 * <code>optional string self_link = 456214797;</code> 1177 * 1178 * @return Whether the selfLink field is set. 1179 */ 1180 @java.lang.Override hasSelfLink()1181 public boolean hasSelfLink() { 1182 return ((bitField0_ & 0x00000100) != 0); 1183 } 1184 /** 1185 * 1186 * 1187 * <pre> 1188 * [Output Only] Server-defined URL for the resource. 1189 * </pre> 1190 * 1191 * <code>optional string self_link = 456214797;</code> 1192 * 1193 * @return The selfLink. 1194 */ 1195 @java.lang.Override getSelfLink()1196 public java.lang.String getSelfLink() { 1197 java.lang.Object ref = selfLink_; 1198 if (ref instanceof java.lang.String) { 1199 return (java.lang.String) ref; 1200 } else { 1201 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1202 java.lang.String s = bs.toStringUtf8(); 1203 selfLink_ = s; 1204 return s; 1205 } 1206 } 1207 /** 1208 * 1209 * 1210 * <pre> 1211 * [Output Only] Server-defined URL for the resource. 1212 * </pre> 1213 * 1214 * <code>optional string self_link = 456214797;</code> 1215 * 1216 * @return The bytes for selfLink. 1217 */ 1218 @java.lang.Override getSelfLinkBytes()1219 public com.google.protobuf.ByteString getSelfLinkBytes() { 1220 java.lang.Object ref = selfLink_; 1221 if (ref instanceof java.lang.String) { 1222 com.google.protobuf.ByteString b = 1223 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1224 selfLink_ = b; 1225 return b; 1226 } else { 1227 return (com.google.protobuf.ByteString) ref; 1228 } 1229 } 1230 1231 public static final int USAGE_EXPORT_LOCATION_FIELD_NUMBER = 347543874; 1232 private com.google.cloud.compute.v1.UsageExportLocation usageExportLocation_; 1233 /** 1234 * 1235 * 1236 * <pre> 1237 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 1238 * </pre> 1239 * 1240 * <code>optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 1241 * </code> 1242 * 1243 * @return Whether the usageExportLocation field is set. 1244 */ 1245 @java.lang.Override hasUsageExportLocation()1246 public boolean hasUsageExportLocation() { 1247 return ((bitField0_ & 0x00000200) != 0); 1248 } 1249 /** 1250 * 1251 * 1252 * <pre> 1253 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 1254 * </pre> 1255 * 1256 * <code>optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 1257 * </code> 1258 * 1259 * @return The usageExportLocation. 1260 */ 1261 @java.lang.Override getUsageExportLocation()1262 public com.google.cloud.compute.v1.UsageExportLocation getUsageExportLocation() { 1263 return usageExportLocation_ == null 1264 ? com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance() 1265 : usageExportLocation_; 1266 } 1267 /** 1268 * 1269 * 1270 * <pre> 1271 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 1272 * </pre> 1273 * 1274 * <code>optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 1275 * </code> 1276 */ 1277 @java.lang.Override 1278 public com.google.cloud.compute.v1.UsageExportLocationOrBuilder getUsageExportLocationOrBuilder()1279 getUsageExportLocationOrBuilder() { 1280 return usageExportLocation_ == null 1281 ? com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance() 1282 : usageExportLocation_; 1283 } 1284 1285 public static final int VM_DNS_SETTING_FIELD_NUMBER = 58856370; 1286 1287 @SuppressWarnings("serial") 1288 private volatile java.lang.Object vmDnsSetting_ = ""; 1289 /** 1290 * 1291 * 1292 * <pre> 1293 * [Output Only] Default internal DNS setting used by VMs running in this project. 1294 * Check the VmDnsSetting enum for the list of possible values. 1295 * </pre> 1296 * 1297 * <code>optional string vm_dns_setting = 58856370;</code> 1298 * 1299 * @return Whether the vmDnsSetting field is set. 1300 */ 1301 @java.lang.Override hasVmDnsSetting()1302 public boolean hasVmDnsSetting() { 1303 return ((bitField0_ & 0x00000400) != 0); 1304 } 1305 /** 1306 * 1307 * 1308 * <pre> 1309 * [Output Only] Default internal DNS setting used by VMs running in this project. 1310 * Check the VmDnsSetting enum for the list of possible values. 1311 * </pre> 1312 * 1313 * <code>optional string vm_dns_setting = 58856370;</code> 1314 * 1315 * @return The vmDnsSetting. 1316 */ 1317 @java.lang.Override getVmDnsSetting()1318 public java.lang.String getVmDnsSetting() { 1319 java.lang.Object ref = vmDnsSetting_; 1320 if (ref instanceof java.lang.String) { 1321 return (java.lang.String) ref; 1322 } else { 1323 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1324 java.lang.String s = bs.toStringUtf8(); 1325 vmDnsSetting_ = s; 1326 return s; 1327 } 1328 } 1329 /** 1330 * 1331 * 1332 * <pre> 1333 * [Output Only] Default internal DNS setting used by VMs running in this project. 1334 * Check the VmDnsSetting enum for the list of possible values. 1335 * </pre> 1336 * 1337 * <code>optional string vm_dns_setting = 58856370;</code> 1338 * 1339 * @return The bytes for vmDnsSetting. 1340 */ 1341 @java.lang.Override getVmDnsSettingBytes()1342 public com.google.protobuf.ByteString getVmDnsSettingBytes() { 1343 java.lang.Object ref = vmDnsSetting_; 1344 if (ref instanceof java.lang.String) { 1345 com.google.protobuf.ByteString b = 1346 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1347 vmDnsSetting_ = b; 1348 return b; 1349 } else { 1350 return (com.google.protobuf.ByteString) ref; 1351 } 1352 } 1353 1354 public static final int XPN_PROJECT_STATUS_FIELD_NUMBER = 228419265; 1355 1356 @SuppressWarnings("serial") 1357 private volatile java.lang.Object xpnProjectStatus_ = ""; 1358 /** 1359 * 1360 * 1361 * <pre> 1362 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 1363 * Check the XpnProjectStatus enum for the list of possible values. 1364 * </pre> 1365 * 1366 * <code>optional string xpn_project_status = 228419265;</code> 1367 * 1368 * @return Whether the xpnProjectStatus field is set. 1369 */ 1370 @java.lang.Override hasXpnProjectStatus()1371 public boolean hasXpnProjectStatus() { 1372 return ((bitField0_ & 0x00000800) != 0); 1373 } 1374 /** 1375 * 1376 * 1377 * <pre> 1378 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 1379 * Check the XpnProjectStatus enum for the list of possible values. 1380 * </pre> 1381 * 1382 * <code>optional string xpn_project_status = 228419265;</code> 1383 * 1384 * @return The xpnProjectStatus. 1385 */ 1386 @java.lang.Override getXpnProjectStatus()1387 public java.lang.String getXpnProjectStatus() { 1388 java.lang.Object ref = xpnProjectStatus_; 1389 if (ref instanceof java.lang.String) { 1390 return (java.lang.String) ref; 1391 } else { 1392 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1393 java.lang.String s = bs.toStringUtf8(); 1394 xpnProjectStatus_ = s; 1395 return s; 1396 } 1397 } 1398 /** 1399 * 1400 * 1401 * <pre> 1402 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 1403 * Check the XpnProjectStatus enum for the list of possible values. 1404 * </pre> 1405 * 1406 * <code>optional string xpn_project_status = 228419265;</code> 1407 * 1408 * @return The bytes for xpnProjectStatus. 1409 */ 1410 @java.lang.Override getXpnProjectStatusBytes()1411 public com.google.protobuf.ByteString getXpnProjectStatusBytes() { 1412 java.lang.Object ref = xpnProjectStatus_; 1413 if (ref instanceof java.lang.String) { 1414 com.google.protobuf.ByteString b = 1415 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1416 xpnProjectStatus_ = b; 1417 return b; 1418 } else { 1419 return (com.google.protobuf.ByteString) ref; 1420 } 1421 } 1422 1423 private byte memoizedIsInitialized = -1; 1424 1425 @java.lang.Override isInitialized()1426 public final boolean isInitialized() { 1427 byte isInitialized = memoizedIsInitialized; 1428 if (isInitialized == 1) return true; 1429 if (isInitialized == 0) return false; 1430 1431 memoizedIsInitialized = 1; 1432 return true; 1433 } 1434 1435 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1436 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1437 if (((bitField0_ & 0x00000020) != 0)) { 1438 output.writeUInt64(3355, id_); 1439 } 1440 if (((bitField0_ & 0x00000040) != 0)) { 1441 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 1442 } 1443 if (((bitField0_ & 0x00000080) != 0)) { 1444 com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); 1445 } 1446 if (((bitField0_ & 0x00000002) != 0)) { 1447 com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); 1448 } 1449 if (((bitField0_ & 0x00000400) != 0)) { 1450 com.google.protobuf.GeneratedMessageV3.writeString(output, 58856370, vmDnsSetting_); 1451 } 1452 for (int i = 0; i < quotas_.size(); i++) { 1453 output.writeMessage(125341947, quotas_.get(i)); 1454 } 1455 if (((bitField0_ & 0x00000001) != 0)) { 1456 output.writeMessage(185794117, getCommonInstanceMetadata()); 1457 } 1458 if (((bitField0_ & 0x00000800) != 0)) { 1459 com.google.protobuf.GeneratedMessageV3.writeString(output, 228419265, xpnProjectStatus_); 1460 } 1461 if (((bitField0_ & 0x00000008) != 0)) { 1462 com.google.protobuf.GeneratedMessageV3.writeString(output, 298712229, defaultServiceAccount_); 1463 } 1464 if (((bitField0_ & 0x00000200) != 0)) { 1465 output.writeMessage(347543874, getUsageExportLocation()); 1466 } 1467 if (((bitField0_ & 0x00000010) != 0)) { 1468 com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); 1469 } 1470 if (((bitField0_ & 0x00000100) != 0)) { 1471 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 1472 } 1473 for (int i = 0; i < enabledFeatures_.size(); i++) { 1474 com.google.protobuf.GeneratedMessageV3.writeString( 1475 output, 469017467, enabledFeatures_.getRaw(i)); 1476 } 1477 if (((bitField0_ & 0x00000004) != 0)) { 1478 com.google.protobuf.GeneratedMessageV3.writeString(output, 471753361, defaultNetworkTier_); 1479 } 1480 getUnknownFields().writeTo(output); 1481 } 1482 1483 @java.lang.Override getSerializedSize()1484 public int getSerializedSize() { 1485 int size = memoizedSize; 1486 if (size != -1) return size; 1487 1488 size = 0; 1489 if (((bitField0_ & 0x00000020) != 0)) { 1490 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); 1491 } 1492 if (((bitField0_ & 0x00000040) != 0)) { 1493 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 1494 } 1495 if (((bitField0_ & 0x00000080) != 0)) { 1496 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); 1497 } 1498 if (((bitField0_ & 0x00000002) != 0)) { 1499 size += 1500 com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); 1501 } 1502 if (((bitField0_ & 0x00000400) != 0)) { 1503 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(58856370, vmDnsSetting_); 1504 } 1505 for (int i = 0; i < quotas_.size(); i++) { 1506 size += com.google.protobuf.CodedOutputStream.computeMessageSize(125341947, quotas_.get(i)); 1507 } 1508 if (((bitField0_ & 0x00000001) != 0)) { 1509 size += 1510 com.google.protobuf.CodedOutputStream.computeMessageSize( 1511 185794117, getCommonInstanceMetadata()); 1512 } 1513 if (((bitField0_ & 0x00000800) != 0)) { 1514 size += 1515 com.google.protobuf.GeneratedMessageV3.computeStringSize(228419265, xpnProjectStatus_); 1516 } 1517 if (((bitField0_ & 0x00000008) != 0)) { 1518 size += 1519 com.google.protobuf.GeneratedMessageV3.computeStringSize( 1520 298712229, defaultServiceAccount_); 1521 } 1522 if (((bitField0_ & 0x00000200) != 0)) { 1523 size += 1524 com.google.protobuf.CodedOutputStream.computeMessageSize( 1525 347543874, getUsageExportLocation()); 1526 } 1527 if (((bitField0_ & 0x00000010) != 0)) { 1528 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 1529 } 1530 if (((bitField0_ & 0x00000100) != 0)) { 1531 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 1532 } 1533 { 1534 int dataSize = 0; 1535 for (int i = 0; i < enabledFeatures_.size(); i++) { 1536 dataSize += computeStringSizeNoTag(enabledFeatures_.getRaw(i)); 1537 } 1538 size += dataSize; 1539 size += 5 * getEnabledFeaturesList().size(); 1540 } 1541 if (((bitField0_ & 0x00000004) != 0)) { 1542 size += 1543 com.google.protobuf.GeneratedMessageV3.computeStringSize(471753361, defaultNetworkTier_); 1544 } 1545 size += getUnknownFields().getSerializedSize(); 1546 memoizedSize = size; 1547 return size; 1548 } 1549 1550 @java.lang.Override equals(final java.lang.Object obj)1551 public boolean equals(final java.lang.Object obj) { 1552 if (obj == this) { 1553 return true; 1554 } 1555 if (!(obj instanceof com.google.cloud.compute.v1.Project)) { 1556 return super.equals(obj); 1557 } 1558 com.google.cloud.compute.v1.Project other = (com.google.cloud.compute.v1.Project) obj; 1559 1560 if (hasCommonInstanceMetadata() != other.hasCommonInstanceMetadata()) return false; 1561 if (hasCommonInstanceMetadata()) { 1562 if (!getCommonInstanceMetadata().equals(other.getCommonInstanceMetadata())) return false; 1563 } 1564 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 1565 if (hasCreationTimestamp()) { 1566 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 1567 } 1568 if (hasDefaultNetworkTier() != other.hasDefaultNetworkTier()) return false; 1569 if (hasDefaultNetworkTier()) { 1570 if (!getDefaultNetworkTier().equals(other.getDefaultNetworkTier())) return false; 1571 } 1572 if (hasDefaultServiceAccount() != other.hasDefaultServiceAccount()) return false; 1573 if (hasDefaultServiceAccount()) { 1574 if (!getDefaultServiceAccount().equals(other.getDefaultServiceAccount())) return false; 1575 } 1576 if (hasDescription() != other.hasDescription()) return false; 1577 if (hasDescription()) { 1578 if (!getDescription().equals(other.getDescription())) return false; 1579 } 1580 if (!getEnabledFeaturesList().equals(other.getEnabledFeaturesList())) return false; 1581 if (hasId() != other.hasId()) return false; 1582 if (hasId()) { 1583 if (getId() != other.getId()) return false; 1584 } 1585 if (hasKind() != other.hasKind()) return false; 1586 if (hasKind()) { 1587 if (!getKind().equals(other.getKind())) return false; 1588 } 1589 if (hasName() != other.hasName()) return false; 1590 if (hasName()) { 1591 if (!getName().equals(other.getName())) return false; 1592 } 1593 if (!getQuotasList().equals(other.getQuotasList())) return false; 1594 if (hasSelfLink() != other.hasSelfLink()) return false; 1595 if (hasSelfLink()) { 1596 if (!getSelfLink().equals(other.getSelfLink())) return false; 1597 } 1598 if (hasUsageExportLocation() != other.hasUsageExportLocation()) return false; 1599 if (hasUsageExportLocation()) { 1600 if (!getUsageExportLocation().equals(other.getUsageExportLocation())) return false; 1601 } 1602 if (hasVmDnsSetting() != other.hasVmDnsSetting()) return false; 1603 if (hasVmDnsSetting()) { 1604 if (!getVmDnsSetting().equals(other.getVmDnsSetting())) return false; 1605 } 1606 if (hasXpnProjectStatus() != other.hasXpnProjectStatus()) return false; 1607 if (hasXpnProjectStatus()) { 1608 if (!getXpnProjectStatus().equals(other.getXpnProjectStatus())) return false; 1609 } 1610 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1611 return true; 1612 } 1613 1614 @java.lang.Override hashCode()1615 public int hashCode() { 1616 if (memoizedHashCode != 0) { 1617 return memoizedHashCode; 1618 } 1619 int hash = 41; 1620 hash = (19 * hash) + getDescriptor().hashCode(); 1621 if (hasCommonInstanceMetadata()) { 1622 hash = (37 * hash) + COMMON_INSTANCE_METADATA_FIELD_NUMBER; 1623 hash = (53 * hash) + getCommonInstanceMetadata().hashCode(); 1624 } 1625 if (hasCreationTimestamp()) { 1626 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 1627 hash = (53 * hash) + getCreationTimestamp().hashCode(); 1628 } 1629 if (hasDefaultNetworkTier()) { 1630 hash = (37 * hash) + DEFAULT_NETWORK_TIER_FIELD_NUMBER; 1631 hash = (53 * hash) + getDefaultNetworkTier().hashCode(); 1632 } 1633 if (hasDefaultServiceAccount()) { 1634 hash = (37 * hash) + DEFAULT_SERVICE_ACCOUNT_FIELD_NUMBER; 1635 hash = (53 * hash) + getDefaultServiceAccount().hashCode(); 1636 } 1637 if (hasDescription()) { 1638 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 1639 hash = (53 * hash) + getDescription().hashCode(); 1640 } 1641 if (getEnabledFeaturesCount() > 0) { 1642 hash = (37 * hash) + ENABLED_FEATURES_FIELD_NUMBER; 1643 hash = (53 * hash) + getEnabledFeaturesList().hashCode(); 1644 } 1645 if (hasId()) { 1646 hash = (37 * hash) + ID_FIELD_NUMBER; 1647 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 1648 } 1649 if (hasKind()) { 1650 hash = (37 * hash) + KIND_FIELD_NUMBER; 1651 hash = (53 * hash) + getKind().hashCode(); 1652 } 1653 if (hasName()) { 1654 hash = (37 * hash) + NAME_FIELD_NUMBER; 1655 hash = (53 * hash) + getName().hashCode(); 1656 } 1657 if (getQuotasCount() > 0) { 1658 hash = (37 * hash) + QUOTAS_FIELD_NUMBER; 1659 hash = (53 * hash) + getQuotasList().hashCode(); 1660 } 1661 if (hasSelfLink()) { 1662 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 1663 hash = (53 * hash) + getSelfLink().hashCode(); 1664 } 1665 if (hasUsageExportLocation()) { 1666 hash = (37 * hash) + USAGE_EXPORT_LOCATION_FIELD_NUMBER; 1667 hash = (53 * hash) + getUsageExportLocation().hashCode(); 1668 } 1669 if (hasVmDnsSetting()) { 1670 hash = (37 * hash) + VM_DNS_SETTING_FIELD_NUMBER; 1671 hash = (53 * hash) + getVmDnsSetting().hashCode(); 1672 } 1673 if (hasXpnProjectStatus()) { 1674 hash = (37 * hash) + XPN_PROJECT_STATUS_FIELD_NUMBER; 1675 hash = (53 * hash) + getXpnProjectStatus().hashCode(); 1676 } 1677 hash = (29 * hash) + getUnknownFields().hashCode(); 1678 memoizedHashCode = hash; 1679 return hash; 1680 } 1681 parseFrom(java.nio.ByteBuffer data)1682 public static com.google.cloud.compute.v1.Project parseFrom(java.nio.ByteBuffer data) 1683 throws com.google.protobuf.InvalidProtocolBufferException { 1684 return PARSER.parseFrom(data); 1685 } 1686 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1687 public static com.google.cloud.compute.v1.Project parseFrom( 1688 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1689 throws com.google.protobuf.InvalidProtocolBufferException { 1690 return PARSER.parseFrom(data, extensionRegistry); 1691 } 1692 parseFrom(com.google.protobuf.ByteString data)1693 public static com.google.cloud.compute.v1.Project parseFrom(com.google.protobuf.ByteString data) 1694 throws com.google.protobuf.InvalidProtocolBufferException { 1695 return PARSER.parseFrom(data); 1696 } 1697 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1698 public static com.google.cloud.compute.v1.Project parseFrom( 1699 com.google.protobuf.ByteString data, 1700 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1701 throws com.google.protobuf.InvalidProtocolBufferException { 1702 return PARSER.parseFrom(data, extensionRegistry); 1703 } 1704 parseFrom(byte[] data)1705 public static com.google.cloud.compute.v1.Project parseFrom(byte[] data) 1706 throws com.google.protobuf.InvalidProtocolBufferException { 1707 return PARSER.parseFrom(data); 1708 } 1709 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1710 public static com.google.cloud.compute.v1.Project parseFrom( 1711 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1712 throws com.google.protobuf.InvalidProtocolBufferException { 1713 return PARSER.parseFrom(data, extensionRegistry); 1714 } 1715 parseFrom(java.io.InputStream input)1716 public static com.google.cloud.compute.v1.Project parseFrom(java.io.InputStream input) 1717 throws java.io.IOException { 1718 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1719 } 1720 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1721 public static com.google.cloud.compute.v1.Project parseFrom( 1722 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1723 throws java.io.IOException { 1724 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1725 PARSER, input, extensionRegistry); 1726 } 1727 parseDelimitedFrom(java.io.InputStream input)1728 public static com.google.cloud.compute.v1.Project parseDelimitedFrom(java.io.InputStream input) 1729 throws java.io.IOException { 1730 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1731 } 1732 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1733 public static com.google.cloud.compute.v1.Project parseDelimitedFrom( 1734 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1735 throws java.io.IOException { 1736 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1737 PARSER, input, extensionRegistry); 1738 } 1739 parseFrom( com.google.protobuf.CodedInputStream input)1740 public static com.google.cloud.compute.v1.Project parseFrom( 1741 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1742 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1743 } 1744 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1745 public static com.google.cloud.compute.v1.Project parseFrom( 1746 com.google.protobuf.CodedInputStream input, 1747 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1748 throws java.io.IOException { 1749 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1750 PARSER, input, extensionRegistry); 1751 } 1752 1753 @java.lang.Override newBuilderForType()1754 public Builder newBuilderForType() { 1755 return newBuilder(); 1756 } 1757 newBuilder()1758 public static Builder newBuilder() { 1759 return DEFAULT_INSTANCE.toBuilder(); 1760 } 1761 newBuilder(com.google.cloud.compute.v1.Project prototype)1762 public static Builder newBuilder(com.google.cloud.compute.v1.Project prototype) { 1763 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1764 } 1765 1766 @java.lang.Override toBuilder()1767 public Builder toBuilder() { 1768 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1769 } 1770 1771 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1772 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1773 Builder builder = new Builder(parent); 1774 return builder; 1775 } 1776 /** 1777 * 1778 * 1779 * <pre> 1780 * Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy. 1781 * </pre> 1782 * 1783 * Protobuf type {@code google.cloud.compute.v1.Project} 1784 */ 1785 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1786 implements 1787 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.Project) 1788 com.google.cloud.compute.v1.ProjectOrBuilder { getDescriptor()1789 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1790 return com.google.cloud.compute.v1.Compute 1791 .internal_static_google_cloud_compute_v1_Project_descriptor; 1792 } 1793 1794 @java.lang.Override 1795 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1796 internalGetFieldAccessorTable() { 1797 return com.google.cloud.compute.v1.Compute 1798 .internal_static_google_cloud_compute_v1_Project_fieldAccessorTable 1799 .ensureFieldAccessorsInitialized( 1800 com.google.cloud.compute.v1.Project.class, 1801 com.google.cloud.compute.v1.Project.Builder.class); 1802 } 1803 1804 // Construct using com.google.cloud.compute.v1.Project.newBuilder() Builder()1805 private Builder() { 1806 maybeForceBuilderInitialization(); 1807 } 1808 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1809 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1810 super(parent); 1811 maybeForceBuilderInitialization(); 1812 } 1813 maybeForceBuilderInitialization()1814 private void maybeForceBuilderInitialization() { 1815 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { 1816 getCommonInstanceMetadataFieldBuilder(); 1817 getQuotasFieldBuilder(); 1818 getUsageExportLocationFieldBuilder(); 1819 } 1820 } 1821 1822 @java.lang.Override clear()1823 public Builder clear() { 1824 super.clear(); 1825 bitField0_ = 0; 1826 commonInstanceMetadata_ = null; 1827 if (commonInstanceMetadataBuilder_ != null) { 1828 commonInstanceMetadataBuilder_.dispose(); 1829 commonInstanceMetadataBuilder_ = null; 1830 } 1831 creationTimestamp_ = ""; 1832 defaultNetworkTier_ = ""; 1833 defaultServiceAccount_ = ""; 1834 description_ = ""; 1835 enabledFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1836 bitField0_ = (bitField0_ & ~0x00000020); 1837 id_ = 0L; 1838 kind_ = ""; 1839 name_ = ""; 1840 if (quotasBuilder_ == null) { 1841 quotas_ = java.util.Collections.emptyList(); 1842 } else { 1843 quotas_ = null; 1844 quotasBuilder_.clear(); 1845 } 1846 bitField0_ = (bitField0_ & ~0x00000200); 1847 selfLink_ = ""; 1848 usageExportLocation_ = null; 1849 if (usageExportLocationBuilder_ != null) { 1850 usageExportLocationBuilder_.dispose(); 1851 usageExportLocationBuilder_ = null; 1852 } 1853 vmDnsSetting_ = ""; 1854 xpnProjectStatus_ = ""; 1855 return this; 1856 } 1857 1858 @java.lang.Override getDescriptorForType()1859 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1860 return com.google.cloud.compute.v1.Compute 1861 .internal_static_google_cloud_compute_v1_Project_descriptor; 1862 } 1863 1864 @java.lang.Override getDefaultInstanceForType()1865 public com.google.cloud.compute.v1.Project getDefaultInstanceForType() { 1866 return com.google.cloud.compute.v1.Project.getDefaultInstance(); 1867 } 1868 1869 @java.lang.Override build()1870 public com.google.cloud.compute.v1.Project build() { 1871 com.google.cloud.compute.v1.Project result = buildPartial(); 1872 if (!result.isInitialized()) { 1873 throw newUninitializedMessageException(result); 1874 } 1875 return result; 1876 } 1877 1878 @java.lang.Override buildPartial()1879 public com.google.cloud.compute.v1.Project buildPartial() { 1880 com.google.cloud.compute.v1.Project result = new com.google.cloud.compute.v1.Project(this); 1881 buildPartialRepeatedFields(result); 1882 if (bitField0_ != 0) { 1883 buildPartial0(result); 1884 } 1885 onBuilt(); 1886 return result; 1887 } 1888 buildPartialRepeatedFields(com.google.cloud.compute.v1.Project result)1889 private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Project result) { 1890 if (((bitField0_ & 0x00000020) != 0)) { 1891 enabledFeatures_ = enabledFeatures_.getUnmodifiableView(); 1892 bitField0_ = (bitField0_ & ~0x00000020); 1893 } 1894 result.enabledFeatures_ = enabledFeatures_; 1895 if (quotasBuilder_ == null) { 1896 if (((bitField0_ & 0x00000200) != 0)) { 1897 quotas_ = java.util.Collections.unmodifiableList(quotas_); 1898 bitField0_ = (bitField0_ & ~0x00000200); 1899 } 1900 result.quotas_ = quotas_; 1901 } else { 1902 result.quotas_ = quotasBuilder_.build(); 1903 } 1904 } 1905 buildPartial0(com.google.cloud.compute.v1.Project result)1906 private void buildPartial0(com.google.cloud.compute.v1.Project result) { 1907 int from_bitField0_ = bitField0_; 1908 int to_bitField0_ = 0; 1909 if (((from_bitField0_ & 0x00000001) != 0)) { 1910 result.commonInstanceMetadata_ = 1911 commonInstanceMetadataBuilder_ == null 1912 ? commonInstanceMetadata_ 1913 : commonInstanceMetadataBuilder_.build(); 1914 to_bitField0_ |= 0x00000001; 1915 } 1916 if (((from_bitField0_ & 0x00000002) != 0)) { 1917 result.creationTimestamp_ = creationTimestamp_; 1918 to_bitField0_ |= 0x00000002; 1919 } 1920 if (((from_bitField0_ & 0x00000004) != 0)) { 1921 result.defaultNetworkTier_ = defaultNetworkTier_; 1922 to_bitField0_ |= 0x00000004; 1923 } 1924 if (((from_bitField0_ & 0x00000008) != 0)) { 1925 result.defaultServiceAccount_ = defaultServiceAccount_; 1926 to_bitField0_ |= 0x00000008; 1927 } 1928 if (((from_bitField0_ & 0x00000010) != 0)) { 1929 result.description_ = description_; 1930 to_bitField0_ |= 0x00000010; 1931 } 1932 if (((from_bitField0_ & 0x00000040) != 0)) { 1933 result.id_ = id_; 1934 to_bitField0_ |= 0x00000020; 1935 } 1936 if (((from_bitField0_ & 0x00000080) != 0)) { 1937 result.kind_ = kind_; 1938 to_bitField0_ |= 0x00000040; 1939 } 1940 if (((from_bitField0_ & 0x00000100) != 0)) { 1941 result.name_ = name_; 1942 to_bitField0_ |= 0x00000080; 1943 } 1944 if (((from_bitField0_ & 0x00000400) != 0)) { 1945 result.selfLink_ = selfLink_; 1946 to_bitField0_ |= 0x00000100; 1947 } 1948 if (((from_bitField0_ & 0x00000800) != 0)) { 1949 result.usageExportLocation_ = 1950 usageExportLocationBuilder_ == null 1951 ? usageExportLocation_ 1952 : usageExportLocationBuilder_.build(); 1953 to_bitField0_ |= 0x00000200; 1954 } 1955 if (((from_bitField0_ & 0x00001000) != 0)) { 1956 result.vmDnsSetting_ = vmDnsSetting_; 1957 to_bitField0_ |= 0x00000400; 1958 } 1959 if (((from_bitField0_ & 0x00002000) != 0)) { 1960 result.xpnProjectStatus_ = xpnProjectStatus_; 1961 to_bitField0_ |= 0x00000800; 1962 } 1963 result.bitField0_ |= to_bitField0_; 1964 } 1965 1966 @java.lang.Override clone()1967 public Builder clone() { 1968 return super.clone(); 1969 } 1970 1971 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1972 public Builder setField( 1973 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1974 return super.setField(field, value); 1975 } 1976 1977 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1978 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1979 return super.clearField(field); 1980 } 1981 1982 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1983 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1984 return super.clearOneof(oneof); 1985 } 1986 1987 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1988 public Builder setRepeatedField( 1989 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1990 return super.setRepeatedField(field, index, value); 1991 } 1992 1993 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1994 public Builder addRepeatedField( 1995 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1996 return super.addRepeatedField(field, value); 1997 } 1998 1999 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2000 public Builder mergeFrom(com.google.protobuf.Message other) { 2001 if (other instanceof com.google.cloud.compute.v1.Project) { 2002 return mergeFrom((com.google.cloud.compute.v1.Project) other); 2003 } else { 2004 super.mergeFrom(other); 2005 return this; 2006 } 2007 } 2008 mergeFrom(com.google.cloud.compute.v1.Project other)2009 public Builder mergeFrom(com.google.cloud.compute.v1.Project other) { 2010 if (other == com.google.cloud.compute.v1.Project.getDefaultInstance()) return this; 2011 if (other.hasCommonInstanceMetadata()) { 2012 mergeCommonInstanceMetadata(other.getCommonInstanceMetadata()); 2013 } 2014 if (other.hasCreationTimestamp()) { 2015 creationTimestamp_ = other.creationTimestamp_; 2016 bitField0_ |= 0x00000002; 2017 onChanged(); 2018 } 2019 if (other.hasDefaultNetworkTier()) { 2020 defaultNetworkTier_ = other.defaultNetworkTier_; 2021 bitField0_ |= 0x00000004; 2022 onChanged(); 2023 } 2024 if (other.hasDefaultServiceAccount()) { 2025 defaultServiceAccount_ = other.defaultServiceAccount_; 2026 bitField0_ |= 0x00000008; 2027 onChanged(); 2028 } 2029 if (other.hasDescription()) { 2030 description_ = other.description_; 2031 bitField0_ |= 0x00000010; 2032 onChanged(); 2033 } 2034 if (!other.enabledFeatures_.isEmpty()) { 2035 if (enabledFeatures_.isEmpty()) { 2036 enabledFeatures_ = other.enabledFeatures_; 2037 bitField0_ = (bitField0_ & ~0x00000020); 2038 } else { 2039 ensureEnabledFeaturesIsMutable(); 2040 enabledFeatures_.addAll(other.enabledFeatures_); 2041 } 2042 onChanged(); 2043 } 2044 if (other.hasId()) { 2045 setId(other.getId()); 2046 } 2047 if (other.hasKind()) { 2048 kind_ = other.kind_; 2049 bitField0_ |= 0x00000080; 2050 onChanged(); 2051 } 2052 if (other.hasName()) { 2053 name_ = other.name_; 2054 bitField0_ |= 0x00000100; 2055 onChanged(); 2056 } 2057 if (quotasBuilder_ == null) { 2058 if (!other.quotas_.isEmpty()) { 2059 if (quotas_.isEmpty()) { 2060 quotas_ = other.quotas_; 2061 bitField0_ = (bitField0_ & ~0x00000200); 2062 } else { 2063 ensureQuotasIsMutable(); 2064 quotas_.addAll(other.quotas_); 2065 } 2066 onChanged(); 2067 } 2068 } else { 2069 if (!other.quotas_.isEmpty()) { 2070 if (quotasBuilder_.isEmpty()) { 2071 quotasBuilder_.dispose(); 2072 quotasBuilder_ = null; 2073 quotas_ = other.quotas_; 2074 bitField0_ = (bitField0_ & ~0x00000200); 2075 quotasBuilder_ = 2076 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2077 ? getQuotasFieldBuilder() 2078 : null; 2079 } else { 2080 quotasBuilder_.addAllMessages(other.quotas_); 2081 } 2082 } 2083 } 2084 if (other.hasSelfLink()) { 2085 selfLink_ = other.selfLink_; 2086 bitField0_ |= 0x00000400; 2087 onChanged(); 2088 } 2089 if (other.hasUsageExportLocation()) { 2090 mergeUsageExportLocation(other.getUsageExportLocation()); 2091 } 2092 if (other.hasVmDnsSetting()) { 2093 vmDnsSetting_ = other.vmDnsSetting_; 2094 bitField0_ |= 0x00001000; 2095 onChanged(); 2096 } 2097 if (other.hasXpnProjectStatus()) { 2098 xpnProjectStatus_ = other.xpnProjectStatus_; 2099 bitField0_ |= 0x00002000; 2100 onChanged(); 2101 } 2102 this.mergeUnknownFields(other.getUnknownFields()); 2103 onChanged(); 2104 return this; 2105 } 2106 2107 @java.lang.Override isInitialized()2108 public final boolean isInitialized() { 2109 return true; 2110 } 2111 2112 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2113 public Builder mergeFrom( 2114 com.google.protobuf.CodedInputStream input, 2115 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2116 throws java.io.IOException { 2117 if (extensionRegistry == null) { 2118 throw new java.lang.NullPointerException(); 2119 } 2120 try { 2121 boolean done = false; 2122 while (!done) { 2123 int tag = input.readTag(); 2124 switch (tag) { 2125 case 0: 2126 done = true; 2127 break; 2128 case 26840: 2129 { 2130 id_ = input.readUInt64(); 2131 bitField0_ |= 0x00000040; 2132 break; 2133 } // case 26840 2134 case 26336418: 2135 { 2136 kind_ = input.readStringRequireUtf8(); 2137 bitField0_ |= 0x00000080; 2138 break; 2139 } // case 26336418 2140 case 26989658: 2141 { 2142 name_ = input.readStringRequireUtf8(); 2143 bitField0_ |= 0x00000100; 2144 break; 2145 } // case 26989658 2146 case 244202930: 2147 { 2148 creationTimestamp_ = input.readStringRequireUtf8(); 2149 bitField0_ |= 0x00000002; 2150 break; 2151 } // case 244202930 2152 case 470850962: 2153 { 2154 vmDnsSetting_ = input.readStringRequireUtf8(); 2155 bitField0_ |= 0x00001000; 2156 break; 2157 } // case 470850962 2158 case 1002735578: 2159 { 2160 com.google.cloud.compute.v1.Quota m = 2161 input.readMessage( 2162 com.google.cloud.compute.v1.Quota.parser(), extensionRegistry); 2163 if (quotasBuilder_ == null) { 2164 ensureQuotasIsMutable(); 2165 quotas_.add(m); 2166 } else { 2167 quotasBuilder_.addMessage(m); 2168 } 2169 break; 2170 } // case 1002735578 2171 case 1486352938: 2172 { 2173 input.readMessage( 2174 getCommonInstanceMetadataFieldBuilder().getBuilder(), extensionRegistry); 2175 bitField0_ |= 0x00000001; 2176 break; 2177 } // case 1486352938 2178 case 1827354122: 2179 { 2180 xpnProjectStatus_ = input.readStringRequireUtf8(); 2181 bitField0_ |= 0x00002000; 2182 break; 2183 } // case 1827354122 2184 case -1905269462: 2185 { 2186 defaultServiceAccount_ = input.readStringRequireUtf8(); 2187 bitField0_ |= 0x00000008; 2188 break; 2189 } // case -1905269462 2190 case -1514616302: 2191 { 2192 input.readMessage( 2193 getUsageExportLocationFieldBuilder().getBuilder(), extensionRegistry); 2194 bitField0_ |= 0x00000800; 2195 break; 2196 } // case -1514616302 2197 case -911466526: 2198 { 2199 description_ = input.readStringRequireUtf8(); 2200 bitField0_ |= 0x00000010; 2201 break; 2202 } // case -911466526 2203 case -645248918: 2204 { 2205 selfLink_ = input.readStringRequireUtf8(); 2206 bitField0_ |= 0x00000400; 2207 break; 2208 } // case -645248918 2209 case -542827558: 2210 { 2211 java.lang.String s = input.readStringRequireUtf8(); 2212 ensureEnabledFeaturesIsMutable(); 2213 enabledFeatures_.add(s); 2214 break; 2215 } // case -542827558 2216 case -520940406: 2217 { 2218 defaultNetworkTier_ = input.readStringRequireUtf8(); 2219 bitField0_ |= 0x00000004; 2220 break; 2221 } // case -520940406 2222 default: 2223 { 2224 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2225 done = true; // was an endgroup tag 2226 } 2227 break; 2228 } // default: 2229 } // switch (tag) 2230 } // while (!done) 2231 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2232 throw e.unwrapIOException(); 2233 } finally { 2234 onChanged(); 2235 } // finally 2236 return this; 2237 } 2238 2239 private int bitField0_; 2240 2241 private com.google.cloud.compute.v1.Metadata commonInstanceMetadata_; 2242 private com.google.protobuf.SingleFieldBuilderV3< 2243 com.google.cloud.compute.v1.Metadata, 2244 com.google.cloud.compute.v1.Metadata.Builder, 2245 com.google.cloud.compute.v1.MetadataOrBuilder> 2246 commonInstanceMetadataBuilder_; 2247 /** 2248 * 2249 * 2250 * <pre> 2251 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2252 * </pre> 2253 * 2254 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2255 * 2256 * @return Whether the commonInstanceMetadata field is set. 2257 */ hasCommonInstanceMetadata()2258 public boolean hasCommonInstanceMetadata() { 2259 return ((bitField0_ & 0x00000001) != 0); 2260 } 2261 /** 2262 * 2263 * 2264 * <pre> 2265 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2266 * </pre> 2267 * 2268 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2269 * 2270 * @return The commonInstanceMetadata. 2271 */ getCommonInstanceMetadata()2272 public com.google.cloud.compute.v1.Metadata getCommonInstanceMetadata() { 2273 if (commonInstanceMetadataBuilder_ == null) { 2274 return commonInstanceMetadata_ == null 2275 ? com.google.cloud.compute.v1.Metadata.getDefaultInstance() 2276 : commonInstanceMetadata_; 2277 } else { 2278 return commonInstanceMetadataBuilder_.getMessage(); 2279 } 2280 } 2281 /** 2282 * 2283 * 2284 * <pre> 2285 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2286 * </pre> 2287 * 2288 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2289 */ setCommonInstanceMetadata(com.google.cloud.compute.v1.Metadata value)2290 public Builder setCommonInstanceMetadata(com.google.cloud.compute.v1.Metadata value) { 2291 if (commonInstanceMetadataBuilder_ == null) { 2292 if (value == null) { 2293 throw new NullPointerException(); 2294 } 2295 commonInstanceMetadata_ = value; 2296 } else { 2297 commonInstanceMetadataBuilder_.setMessage(value); 2298 } 2299 bitField0_ |= 0x00000001; 2300 onChanged(); 2301 return this; 2302 } 2303 /** 2304 * 2305 * 2306 * <pre> 2307 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2308 * </pre> 2309 * 2310 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2311 */ setCommonInstanceMetadata( com.google.cloud.compute.v1.Metadata.Builder builderForValue)2312 public Builder setCommonInstanceMetadata( 2313 com.google.cloud.compute.v1.Metadata.Builder builderForValue) { 2314 if (commonInstanceMetadataBuilder_ == null) { 2315 commonInstanceMetadata_ = builderForValue.build(); 2316 } else { 2317 commonInstanceMetadataBuilder_.setMessage(builderForValue.build()); 2318 } 2319 bitField0_ |= 0x00000001; 2320 onChanged(); 2321 return this; 2322 } 2323 /** 2324 * 2325 * 2326 * <pre> 2327 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2328 * </pre> 2329 * 2330 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2331 */ mergeCommonInstanceMetadata(com.google.cloud.compute.v1.Metadata value)2332 public Builder mergeCommonInstanceMetadata(com.google.cloud.compute.v1.Metadata value) { 2333 if (commonInstanceMetadataBuilder_ == null) { 2334 if (((bitField0_ & 0x00000001) != 0) 2335 && commonInstanceMetadata_ != null 2336 && commonInstanceMetadata_ 2337 != com.google.cloud.compute.v1.Metadata.getDefaultInstance()) { 2338 getCommonInstanceMetadataBuilder().mergeFrom(value); 2339 } else { 2340 commonInstanceMetadata_ = value; 2341 } 2342 } else { 2343 commonInstanceMetadataBuilder_.mergeFrom(value); 2344 } 2345 bitField0_ |= 0x00000001; 2346 onChanged(); 2347 return this; 2348 } 2349 /** 2350 * 2351 * 2352 * <pre> 2353 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2354 * </pre> 2355 * 2356 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2357 */ clearCommonInstanceMetadata()2358 public Builder clearCommonInstanceMetadata() { 2359 bitField0_ = (bitField0_ & ~0x00000001); 2360 commonInstanceMetadata_ = null; 2361 if (commonInstanceMetadataBuilder_ != null) { 2362 commonInstanceMetadataBuilder_.dispose(); 2363 commonInstanceMetadataBuilder_ = null; 2364 } 2365 onChanged(); 2366 return this; 2367 } 2368 /** 2369 * 2370 * 2371 * <pre> 2372 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2373 * </pre> 2374 * 2375 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2376 */ getCommonInstanceMetadataBuilder()2377 public com.google.cloud.compute.v1.Metadata.Builder getCommonInstanceMetadataBuilder() { 2378 bitField0_ |= 0x00000001; 2379 onChanged(); 2380 return getCommonInstanceMetadataFieldBuilder().getBuilder(); 2381 } 2382 /** 2383 * 2384 * 2385 * <pre> 2386 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2387 * </pre> 2388 * 2389 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2390 */ getCommonInstanceMetadataOrBuilder()2391 public com.google.cloud.compute.v1.MetadataOrBuilder getCommonInstanceMetadataOrBuilder() { 2392 if (commonInstanceMetadataBuilder_ != null) { 2393 return commonInstanceMetadataBuilder_.getMessageOrBuilder(); 2394 } else { 2395 return commonInstanceMetadata_ == null 2396 ? com.google.cloud.compute.v1.Metadata.getDefaultInstance() 2397 : commonInstanceMetadata_; 2398 } 2399 } 2400 /** 2401 * 2402 * 2403 * <pre> 2404 * Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. 2405 * </pre> 2406 * 2407 * <code>optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;</code> 2408 */ 2409 private com.google.protobuf.SingleFieldBuilderV3< 2410 com.google.cloud.compute.v1.Metadata, 2411 com.google.cloud.compute.v1.Metadata.Builder, 2412 com.google.cloud.compute.v1.MetadataOrBuilder> getCommonInstanceMetadataFieldBuilder()2413 getCommonInstanceMetadataFieldBuilder() { 2414 if (commonInstanceMetadataBuilder_ == null) { 2415 commonInstanceMetadataBuilder_ = 2416 new com.google.protobuf.SingleFieldBuilderV3< 2417 com.google.cloud.compute.v1.Metadata, 2418 com.google.cloud.compute.v1.Metadata.Builder, 2419 com.google.cloud.compute.v1.MetadataOrBuilder>( 2420 getCommonInstanceMetadata(), getParentForChildren(), isClean()); 2421 commonInstanceMetadata_ = null; 2422 } 2423 return commonInstanceMetadataBuilder_; 2424 } 2425 2426 private java.lang.Object creationTimestamp_ = ""; 2427 /** 2428 * 2429 * 2430 * <pre> 2431 * [Output Only] Creation timestamp in RFC3339 text format. 2432 * </pre> 2433 * 2434 * <code>optional string creation_timestamp = 30525366;</code> 2435 * 2436 * @return Whether the creationTimestamp field is set. 2437 */ hasCreationTimestamp()2438 public boolean hasCreationTimestamp() { 2439 return ((bitField0_ & 0x00000002) != 0); 2440 } 2441 /** 2442 * 2443 * 2444 * <pre> 2445 * [Output Only] Creation timestamp in RFC3339 text format. 2446 * </pre> 2447 * 2448 * <code>optional string creation_timestamp = 30525366;</code> 2449 * 2450 * @return The creationTimestamp. 2451 */ getCreationTimestamp()2452 public java.lang.String getCreationTimestamp() { 2453 java.lang.Object ref = creationTimestamp_; 2454 if (!(ref instanceof java.lang.String)) { 2455 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2456 java.lang.String s = bs.toStringUtf8(); 2457 creationTimestamp_ = s; 2458 return s; 2459 } else { 2460 return (java.lang.String) ref; 2461 } 2462 } 2463 /** 2464 * 2465 * 2466 * <pre> 2467 * [Output Only] Creation timestamp in RFC3339 text format. 2468 * </pre> 2469 * 2470 * <code>optional string creation_timestamp = 30525366;</code> 2471 * 2472 * @return The bytes for creationTimestamp. 2473 */ getCreationTimestampBytes()2474 public com.google.protobuf.ByteString getCreationTimestampBytes() { 2475 java.lang.Object ref = creationTimestamp_; 2476 if (ref instanceof String) { 2477 com.google.protobuf.ByteString b = 2478 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2479 creationTimestamp_ = b; 2480 return b; 2481 } else { 2482 return (com.google.protobuf.ByteString) ref; 2483 } 2484 } 2485 /** 2486 * 2487 * 2488 * <pre> 2489 * [Output Only] Creation timestamp in RFC3339 text format. 2490 * </pre> 2491 * 2492 * <code>optional string creation_timestamp = 30525366;</code> 2493 * 2494 * @param value The creationTimestamp to set. 2495 * @return This builder for chaining. 2496 */ setCreationTimestamp(java.lang.String value)2497 public Builder setCreationTimestamp(java.lang.String value) { 2498 if (value == null) { 2499 throw new NullPointerException(); 2500 } 2501 creationTimestamp_ = value; 2502 bitField0_ |= 0x00000002; 2503 onChanged(); 2504 return this; 2505 } 2506 /** 2507 * 2508 * 2509 * <pre> 2510 * [Output Only] Creation timestamp in RFC3339 text format. 2511 * </pre> 2512 * 2513 * <code>optional string creation_timestamp = 30525366;</code> 2514 * 2515 * @return This builder for chaining. 2516 */ clearCreationTimestamp()2517 public Builder clearCreationTimestamp() { 2518 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 2519 bitField0_ = (bitField0_ & ~0x00000002); 2520 onChanged(); 2521 return this; 2522 } 2523 /** 2524 * 2525 * 2526 * <pre> 2527 * [Output Only] Creation timestamp in RFC3339 text format. 2528 * </pre> 2529 * 2530 * <code>optional string creation_timestamp = 30525366;</code> 2531 * 2532 * @param value The bytes for creationTimestamp to set. 2533 * @return This builder for chaining. 2534 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)2535 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 2536 if (value == null) { 2537 throw new NullPointerException(); 2538 } 2539 checkByteStringIsUtf8(value); 2540 creationTimestamp_ = value; 2541 bitField0_ |= 0x00000002; 2542 onChanged(); 2543 return this; 2544 } 2545 2546 private java.lang.Object defaultNetworkTier_ = ""; 2547 /** 2548 * 2549 * 2550 * <pre> 2551 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 2552 * Check the DefaultNetworkTier enum for the list of possible values. 2553 * </pre> 2554 * 2555 * <code>optional string default_network_tier = 471753361;</code> 2556 * 2557 * @return Whether the defaultNetworkTier field is set. 2558 */ hasDefaultNetworkTier()2559 public boolean hasDefaultNetworkTier() { 2560 return ((bitField0_ & 0x00000004) != 0); 2561 } 2562 /** 2563 * 2564 * 2565 * <pre> 2566 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 2567 * Check the DefaultNetworkTier enum for the list of possible values. 2568 * </pre> 2569 * 2570 * <code>optional string default_network_tier = 471753361;</code> 2571 * 2572 * @return The defaultNetworkTier. 2573 */ getDefaultNetworkTier()2574 public java.lang.String getDefaultNetworkTier() { 2575 java.lang.Object ref = defaultNetworkTier_; 2576 if (!(ref instanceof java.lang.String)) { 2577 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2578 java.lang.String s = bs.toStringUtf8(); 2579 defaultNetworkTier_ = s; 2580 return s; 2581 } else { 2582 return (java.lang.String) ref; 2583 } 2584 } 2585 /** 2586 * 2587 * 2588 * <pre> 2589 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 2590 * Check the DefaultNetworkTier enum for the list of possible values. 2591 * </pre> 2592 * 2593 * <code>optional string default_network_tier = 471753361;</code> 2594 * 2595 * @return The bytes for defaultNetworkTier. 2596 */ getDefaultNetworkTierBytes()2597 public com.google.protobuf.ByteString getDefaultNetworkTierBytes() { 2598 java.lang.Object ref = defaultNetworkTier_; 2599 if (ref instanceof String) { 2600 com.google.protobuf.ByteString b = 2601 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2602 defaultNetworkTier_ = b; 2603 return b; 2604 } else { 2605 return (com.google.protobuf.ByteString) ref; 2606 } 2607 } 2608 /** 2609 * 2610 * 2611 * <pre> 2612 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 2613 * Check the DefaultNetworkTier enum for the list of possible values. 2614 * </pre> 2615 * 2616 * <code>optional string default_network_tier = 471753361;</code> 2617 * 2618 * @param value The defaultNetworkTier to set. 2619 * @return This builder for chaining. 2620 */ setDefaultNetworkTier(java.lang.String value)2621 public Builder setDefaultNetworkTier(java.lang.String value) { 2622 if (value == null) { 2623 throw new NullPointerException(); 2624 } 2625 defaultNetworkTier_ = value; 2626 bitField0_ |= 0x00000004; 2627 onChanged(); 2628 return this; 2629 } 2630 /** 2631 * 2632 * 2633 * <pre> 2634 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 2635 * Check the DefaultNetworkTier enum for the list of possible values. 2636 * </pre> 2637 * 2638 * <code>optional string default_network_tier = 471753361;</code> 2639 * 2640 * @return This builder for chaining. 2641 */ clearDefaultNetworkTier()2642 public Builder clearDefaultNetworkTier() { 2643 defaultNetworkTier_ = getDefaultInstance().getDefaultNetworkTier(); 2644 bitField0_ = (bitField0_ & ~0x00000004); 2645 onChanged(); 2646 return this; 2647 } 2648 /** 2649 * 2650 * 2651 * <pre> 2652 * This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. 2653 * Check the DefaultNetworkTier enum for the list of possible values. 2654 * </pre> 2655 * 2656 * <code>optional string default_network_tier = 471753361;</code> 2657 * 2658 * @param value The bytes for defaultNetworkTier to set. 2659 * @return This builder for chaining. 2660 */ setDefaultNetworkTierBytes(com.google.protobuf.ByteString value)2661 public Builder setDefaultNetworkTierBytes(com.google.protobuf.ByteString value) { 2662 if (value == null) { 2663 throw new NullPointerException(); 2664 } 2665 checkByteStringIsUtf8(value); 2666 defaultNetworkTier_ = value; 2667 bitField0_ |= 0x00000004; 2668 onChanged(); 2669 return this; 2670 } 2671 2672 private java.lang.Object defaultServiceAccount_ = ""; 2673 /** 2674 * 2675 * 2676 * <pre> 2677 * [Output Only] Default service account used by VMs running in this project. 2678 * </pre> 2679 * 2680 * <code>optional string default_service_account = 298712229;</code> 2681 * 2682 * @return Whether the defaultServiceAccount field is set. 2683 */ hasDefaultServiceAccount()2684 public boolean hasDefaultServiceAccount() { 2685 return ((bitField0_ & 0x00000008) != 0); 2686 } 2687 /** 2688 * 2689 * 2690 * <pre> 2691 * [Output Only] Default service account used by VMs running in this project. 2692 * </pre> 2693 * 2694 * <code>optional string default_service_account = 298712229;</code> 2695 * 2696 * @return The defaultServiceAccount. 2697 */ getDefaultServiceAccount()2698 public java.lang.String getDefaultServiceAccount() { 2699 java.lang.Object ref = defaultServiceAccount_; 2700 if (!(ref instanceof java.lang.String)) { 2701 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2702 java.lang.String s = bs.toStringUtf8(); 2703 defaultServiceAccount_ = s; 2704 return s; 2705 } else { 2706 return (java.lang.String) ref; 2707 } 2708 } 2709 /** 2710 * 2711 * 2712 * <pre> 2713 * [Output Only] Default service account used by VMs running in this project. 2714 * </pre> 2715 * 2716 * <code>optional string default_service_account = 298712229;</code> 2717 * 2718 * @return The bytes for defaultServiceAccount. 2719 */ getDefaultServiceAccountBytes()2720 public com.google.protobuf.ByteString getDefaultServiceAccountBytes() { 2721 java.lang.Object ref = defaultServiceAccount_; 2722 if (ref instanceof String) { 2723 com.google.protobuf.ByteString b = 2724 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2725 defaultServiceAccount_ = b; 2726 return b; 2727 } else { 2728 return (com.google.protobuf.ByteString) ref; 2729 } 2730 } 2731 /** 2732 * 2733 * 2734 * <pre> 2735 * [Output Only] Default service account used by VMs running in this project. 2736 * </pre> 2737 * 2738 * <code>optional string default_service_account = 298712229;</code> 2739 * 2740 * @param value The defaultServiceAccount to set. 2741 * @return This builder for chaining. 2742 */ setDefaultServiceAccount(java.lang.String value)2743 public Builder setDefaultServiceAccount(java.lang.String value) { 2744 if (value == null) { 2745 throw new NullPointerException(); 2746 } 2747 defaultServiceAccount_ = value; 2748 bitField0_ |= 0x00000008; 2749 onChanged(); 2750 return this; 2751 } 2752 /** 2753 * 2754 * 2755 * <pre> 2756 * [Output Only] Default service account used by VMs running in this project. 2757 * </pre> 2758 * 2759 * <code>optional string default_service_account = 298712229;</code> 2760 * 2761 * @return This builder for chaining. 2762 */ clearDefaultServiceAccount()2763 public Builder clearDefaultServiceAccount() { 2764 defaultServiceAccount_ = getDefaultInstance().getDefaultServiceAccount(); 2765 bitField0_ = (bitField0_ & ~0x00000008); 2766 onChanged(); 2767 return this; 2768 } 2769 /** 2770 * 2771 * 2772 * <pre> 2773 * [Output Only] Default service account used by VMs running in this project. 2774 * </pre> 2775 * 2776 * <code>optional string default_service_account = 298712229;</code> 2777 * 2778 * @param value The bytes for defaultServiceAccount to set. 2779 * @return This builder for chaining. 2780 */ setDefaultServiceAccountBytes(com.google.protobuf.ByteString value)2781 public Builder setDefaultServiceAccountBytes(com.google.protobuf.ByteString value) { 2782 if (value == null) { 2783 throw new NullPointerException(); 2784 } 2785 checkByteStringIsUtf8(value); 2786 defaultServiceAccount_ = value; 2787 bitField0_ |= 0x00000008; 2788 onChanged(); 2789 return this; 2790 } 2791 2792 private java.lang.Object description_ = ""; 2793 /** 2794 * 2795 * 2796 * <pre> 2797 * An optional textual description of the resource. 2798 * </pre> 2799 * 2800 * <code>optional string description = 422937596;</code> 2801 * 2802 * @return Whether the description field is set. 2803 */ hasDescription()2804 public boolean hasDescription() { 2805 return ((bitField0_ & 0x00000010) != 0); 2806 } 2807 /** 2808 * 2809 * 2810 * <pre> 2811 * An optional textual description of the resource. 2812 * </pre> 2813 * 2814 * <code>optional string description = 422937596;</code> 2815 * 2816 * @return The description. 2817 */ getDescription()2818 public java.lang.String getDescription() { 2819 java.lang.Object ref = description_; 2820 if (!(ref instanceof java.lang.String)) { 2821 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2822 java.lang.String s = bs.toStringUtf8(); 2823 description_ = s; 2824 return s; 2825 } else { 2826 return (java.lang.String) ref; 2827 } 2828 } 2829 /** 2830 * 2831 * 2832 * <pre> 2833 * An optional textual description of the resource. 2834 * </pre> 2835 * 2836 * <code>optional string description = 422937596;</code> 2837 * 2838 * @return The bytes for description. 2839 */ getDescriptionBytes()2840 public com.google.protobuf.ByteString getDescriptionBytes() { 2841 java.lang.Object ref = description_; 2842 if (ref instanceof String) { 2843 com.google.protobuf.ByteString b = 2844 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2845 description_ = b; 2846 return b; 2847 } else { 2848 return (com.google.protobuf.ByteString) ref; 2849 } 2850 } 2851 /** 2852 * 2853 * 2854 * <pre> 2855 * An optional textual description of the resource. 2856 * </pre> 2857 * 2858 * <code>optional string description = 422937596;</code> 2859 * 2860 * @param value The description to set. 2861 * @return This builder for chaining. 2862 */ setDescription(java.lang.String value)2863 public Builder setDescription(java.lang.String value) { 2864 if (value == null) { 2865 throw new NullPointerException(); 2866 } 2867 description_ = value; 2868 bitField0_ |= 0x00000010; 2869 onChanged(); 2870 return this; 2871 } 2872 /** 2873 * 2874 * 2875 * <pre> 2876 * An optional textual description of the resource. 2877 * </pre> 2878 * 2879 * <code>optional string description = 422937596;</code> 2880 * 2881 * @return This builder for chaining. 2882 */ clearDescription()2883 public Builder clearDescription() { 2884 description_ = getDefaultInstance().getDescription(); 2885 bitField0_ = (bitField0_ & ~0x00000010); 2886 onChanged(); 2887 return this; 2888 } 2889 /** 2890 * 2891 * 2892 * <pre> 2893 * An optional textual description of the resource. 2894 * </pre> 2895 * 2896 * <code>optional string description = 422937596;</code> 2897 * 2898 * @param value The bytes for description to set. 2899 * @return This builder for chaining. 2900 */ setDescriptionBytes(com.google.protobuf.ByteString value)2901 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 2902 if (value == null) { 2903 throw new NullPointerException(); 2904 } 2905 checkByteStringIsUtf8(value); 2906 description_ = value; 2907 bitField0_ |= 0x00000010; 2908 onChanged(); 2909 return this; 2910 } 2911 2912 private com.google.protobuf.LazyStringList enabledFeatures_ = 2913 com.google.protobuf.LazyStringArrayList.EMPTY; 2914 ensureEnabledFeaturesIsMutable()2915 private void ensureEnabledFeaturesIsMutable() { 2916 if (!((bitField0_ & 0x00000020) != 0)) { 2917 enabledFeatures_ = new com.google.protobuf.LazyStringArrayList(enabledFeatures_); 2918 bitField0_ |= 0x00000020; 2919 } 2920 } 2921 /** 2922 * 2923 * 2924 * <pre> 2925 * Restricted features enabled for use on this project. 2926 * </pre> 2927 * 2928 * <code>repeated string enabled_features = 469017467;</code> 2929 * 2930 * @return A list containing the enabledFeatures. 2931 */ getEnabledFeaturesList()2932 public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { 2933 return enabledFeatures_.getUnmodifiableView(); 2934 } 2935 /** 2936 * 2937 * 2938 * <pre> 2939 * Restricted features enabled for use on this project. 2940 * </pre> 2941 * 2942 * <code>repeated string enabled_features = 469017467;</code> 2943 * 2944 * @return The count of enabledFeatures. 2945 */ getEnabledFeaturesCount()2946 public int getEnabledFeaturesCount() { 2947 return enabledFeatures_.size(); 2948 } 2949 /** 2950 * 2951 * 2952 * <pre> 2953 * Restricted features enabled for use on this project. 2954 * </pre> 2955 * 2956 * <code>repeated string enabled_features = 469017467;</code> 2957 * 2958 * @param index The index of the element to return. 2959 * @return The enabledFeatures at the given index. 2960 */ getEnabledFeatures(int index)2961 public java.lang.String getEnabledFeatures(int index) { 2962 return enabledFeatures_.get(index); 2963 } 2964 /** 2965 * 2966 * 2967 * <pre> 2968 * Restricted features enabled for use on this project. 2969 * </pre> 2970 * 2971 * <code>repeated string enabled_features = 469017467;</code> 2972 * 2973 * @param index The index of the value to return. 2974 * @return The bytes of the enabledFeatures at the given index. 2975 */ getEnabledFeaturesBytes(int index)2976 public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { 2977 return enabledFeatures_.getByteString(index); 2978 } 2979 /** 2980 * 2981 * 2982 * <pre> 2983 * Restricted features enabled for use on this project. 2984 * </pre> 2985 * 2986 * <code>repeated string enabled_features = 469017467;</code> 2987 * 2988 * @param index The index to set the value at. 2989 * @param value The enabledFeatures to set. 2990 * @return This builder for chaining. 2991 */ setEnabledFeatures(int index, java.lang.String value)2992 public Builder setEnabledFeatures(int index, java.lang.String value) { 2993 if (value == null) { 2994 throw new NullPointerException(); 2995 } 2996 ensureEnabledFeaturesIsMutable(); 2997 enabledFeatures_.set(index, value); 2998 onChanged(); 2999 return this; 3000 } 3001 /** 3002 * 3003 * 3004 * <pre> 3005 * Restricted features enabled for use on this project. 3006 * </pre> 3007 * 3008 * <code>repeated string enabled_features = 469017467;</code> 3009 * 3010 * @param value The enabledFeatures to add. 3011 * @return This builder for chaining. 3012 */ addEnabledFeatures(java.lang.String value)3013 public Builder addEnabledFeatures(java.lang.String value) { 3014 if (value == null) { 3015 throw new NullPointerException(); 3016 } 3017 ensureEnabledFeaturesIsMutable(); 3018 enabledFeatures_.add(value); 3019 onChanged(); 3020 return this; 3021 } 3022 /** 3023 * 3024 * 3025 * <pre> 3026 * Restricted features enabled for use on this project. 3027 * </pre> 3028 * 3029 * <code>repeated string enabled_features = 469017467;</code> 3030 * 3031 * @param values The enabledFeatures to add. 3032 * @return This builder for chaining. 3033 */ addAllEnabledFeatures(java.lang.Iterable<java.lang.String> values)3034 public Builder addAllEnabledFeatures(java.lang.Iterable<java.lang.String> values) { 3035 ensureEnabledFeaturesIsMutable(); 3036 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledFeatures_); 3037 onChanged(); 3038 return this; 3039 } 3040 /** 3041 * 3042 * 3043 * <pre> 3044 * Restricted features enabled for use on this project. 3045 * </pre> 3046 * 3047 * <code>repeated string enabled_features = 469017467;</code> 3048 * 3049 * @return This builder for chaining. 3050 */ clearEnabledFeatures()3051 public Builder clearEnabledFeatures() { 3052 enabledFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3053 bitField0_ = (bitField0_ & ~0x00000020); 3054 onChanged(); 3055 return this; 3056 } 3057 /** 3058 * 3059 * 3060 * <pre> 3061 * Restricted features enabled for use on this project. 3062 * </pre> 3063 * 3064 * <code>repeated string enabled_features = 469017467;</code> 3065 * 3066 * @param value The bytes of the enabledFeatures to add. 3067 * @return This builder for chaining. 3068 */ addEnabledFeaturesBytes(com.google.protobuf.ByteString value)3069 public Builder addEnabledFeaturesBytes(com.google.protobuf.ByteString value) { 3070 if (value == null) { 3071 throw new NullPointerException(); 3072 } 3073 checkByteStringIsUtf8(value); 3074 ensureEnabledFeaturesIsMutable(); 3075 enabledFeatures_.add(value); 3076 onChanged(); 3077 return this; 3078 } 3079 3080 private long id_; 3081 /** 3082 * 3083 * 3084 * <pre> 3085 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. 3086 * </pre> 3087 * 3088 * <code>optional uint64 id = 3355;</code> 3089 * 3090 * @return Whether the id field is set. 3091 */ 3092 @java.lang.Override hasId()3093 public boolean hasId() { 3094 return ((bitField0_ & 0x00000040) != 0); 3095 } 3096 /** 3097 * 3098 * 3099 * <pre> 3100 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. 3101 * </pre> 3102 * 3103 * <code>optional uint64 id = 3355;</code> 3104 * 3105 * @return The id. 3106 */ 3107 @java.lang.Override getId()3108 public long getId() { 3109 return id_; 3110 } 3111 /** 3112 * 3113 * 3114 * <pre> 3115 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. 3116 * </pre> 3117 * 3118 * <code>optional uint64 id = 3355;</code> 3119 * 3120 * @param value The id to set. 3121 * @return This builder for chaining. 3122 */ setId(long value)3123 public Builder setId(long value) { 3124 3125 id_ = value; 3126 bitField0_ |= 0x00000040; 3127 onChanged(); 3128 return this; 3129 } 3130 /** 3131 * 3132 * 3133 * <pre> 3134 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. 3135 * </pre> 3136 * 3137 * <code>optional uint64 id = 3355;</code> 3138 * 3139 * @return This builder for chaining. 3140 */ clearId()3141 public Builder clearId() { 3142 bitField0_ = (bitField0_ & ~0x00000040); 3143 id_ = 0L; 3144 onChanged(); 3145 return this; 3146 } 3147 3148 private java.lang.Object kind_ = ""; 3149 /** 3150 * 3151 * 3152 * <pre> 3153 * [Output Only] Type of the resource. Always compute#project for projects. 3154 * </pre> 3155 * 3156 * <code>optional string kind = 3292052;</code> 3157 * 3158 * @return Whether the kind field is set. 3159 */ hasKind()3160 public boolean hasKind() { 3161 return ((bitField0_ & 0x00000080) != 0); 3162 } 3163 /** 3164 * 3165 * 3166 * <pre> 3167 * [Output Only] Type of the resource. Always compute#project for projects. 3168 * </pre> 3169 * 3170 * <code>optional string kind = 3292052;</code> 3171 * 3172 * @return The kind. 3173 */ getKind()3174 public java.lang.String getKind() { 3175 java.lang.Object ref = kind_; 3176 if (!(ref instanceof java.lang.String)) { 3177 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3178 java.lang.String s = bs.toStringUtf8(); 3179 kind_ = s; 3180 return s; 3181 } else { 3182 return (java.lang.String) ref; 3183 } 3184 } 3185 /** 3186 * 3187 * 3188 * <pre> 3189 * [Output Only] Type of the resource. Always compute#project for projects. 3190 * </pre> 3191 * 3192 * <code>optional string kind = 3292052;</code> 3193 * 3194 * @return The bytes for kind. 3195 */ getKindBytes()3196 public com.google.protobuf.ByteString getKindBytes() { 3197 java.lang.Object ref = kind_; 3198 if (ref instanceof String) { 3199 com.google.protobuf.ByteString b = 3200 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3201 kind_ = b; 3202 return b; 3203 } else { 3204 return (com.google.protobuf.ByteString) ref; 3205 } 3206 } 3207 /** 3208 * 3209 * 3210 * <pre> 3211 * [Output Only] Type of the resource. Always compute#project for projects. 3212 * </pre> 3213 * 3214 * <code>optional string kind = 3292052;</code> 3215 * 3216 * @param value The kind to set. 3217 * @return This builder for chaining. 3218 */ setKind(java.lang.String value)3219 public Builder setKind(java.lang.String value) { 3220 if (value == null) { 3221 throw new NullPointerException(); 3222 } 3223 kind_ = value; 3224 bitField0_ |= 0x00000080; 3225 onChanged(); 3226 return this; 3227 } 3228 /** 3229 * 3230 * 3231 * <pre> 3232 * [Output Only] Type of the resource. Always compute#project for projects. 3233 * </pre> 3234 * 3235 * <code>optional string kind = 3292052;</code> 3236 * 3237 * @return This builder for chaining. 3238 */ clearKind()3239 public Builder clearKind() { 3240 kind_ = getDefaultInstance().getKind(); 3241 bitField0_ = (bitField0_ & ~0x00000080); 3242 onChanged(); 3243 return this; 3244 } 3245 /** 3246 * 3247 * 3248 * <pre> 3249 * [Output Only] Type of the resource. Always compute#project for projects. 3250 * </pre> 3251 * 3252 * <code>optional string kind = 3292052;</code> 3253 * 3254 * @param value The bytes for kind to set. 3255 * @return This builder for chaining. 3256 */ setKindBytes(com.google.protobuf.ByteString value)3257 public Builder setKindBytes(com.google.protobuf.ByteString value) { 3258 if (value == null) { 3259 throw new NullPointerException(); 3260 } 3261 checkByteStringIsUtf8(value); 3262 kind_ = value; 3263 bitField0_ |= 0x00000080; 3264 onChanged(); 3265 return this; 3266 } 3267 3268 private java.lang.Object name_ = ""; 3269 /** 3270 * 3271 * 3272 * <pre> 3273 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 3274 * </pre> 3275 * 3276 * <code>optional string name = 3373707;</code> 3277 * 3278 * @return Whether the name field is set. 3279 */ hasName()3280 public boolean hasName() { 3281 return ((bitField0_ & 0x00000100) != 0); 3282 } 3283 /** 3284 * 3285 * 3286 * <pre> 3287 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 3288 * </pre> 3289 * 3290 * <code>optional string name = 3373707;</code> 3291 * 3292 * @return The name. 3293 */ getName()3294 public java.lang.String getName() { 3295 java.lang.Object ref = name_; 3296 if (!(ref instanceof java.lang.String)) { 3297 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3298 java.lang.String s = bs.toStringUtf8(); 3299 name_ = s; 3300 return s; 3301 } else { 3302 return (java.lang.String) ref; 3303 } 3304 } 3305 /** 3306 * 3307 * 3308 * <pre> 3309 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 3310 * </pre> 3311 * 3312 * <code>optional string name = 3373707;</code> 3313 * 3314 * @return The bytes for name. 3315 */ getNameBytes()3316 public com.google.protobuf.ByteString getNameBytes() { 3317 java.lang.Object ref = name_; 3318 if (ref instanceof String) { 3319 com.google.protobuf.ByteString b = 3320 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3321 name_ = b; 3322 return b; 3323 } else { 3324 return (com.google.protobuf.ByteString) ref; 3325 } 3326 } 3327 /** 3328 * 3329 * 3330 * <pre> 3331 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 3332 * </pre> 3333 * 3334 * <code>optional string name = 3373707;</code> 3335 * 3336 * @param value The name to set. 3337 * @return This builder for chaining. 3338 */ setName(java.lang.String value)3339 public Builder setName(java.lang.String value) { 3340 if (value == null) { 3341 throw new NullPointerException(); 3342 } 3343 name_ = value; 3344 bitField0_ |= 0x00000100; 3345 onChanged(); 3346 return this; 3347 } 3348 /** 3349 * 3350 * 3351 * <pre> 3352 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 3353 * </pre> 3354 * 3355 * <code>optional string name = 3373707;</code> 3356 * 3357 * @return This builder for chaining. 3358 */ clearName()3359 public Builder clearName() { 3360 name_ = getDefaultInstance().getName(); 3361 bitField0_ = (bitField0_ & ~0x00000100); 3362 onChanged(); 3363 return this; 3364 } 3365 /** 3366 * 3367 * 3368 * <pre> 3369 * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. 3370 * </pre> 3371 * 3372 * <code>optional string name = 3373707;</code> 3373 * 3374 * @param value The bytes for name to set. 3375 * @return This builder for chaining. 3376 */ setNameBytes(com.google.protobuf.ByteString value)3377 public Builder setNameBytes(com.google.protobuf.ByteString value) { 3378 if (value == null) { 3379 throw new NullPointerException(); 3380 } 3381 checkByteStringIsUtf8(value); 3382 name_ = value; 3383 bitField0_ |= 0x00000100; 3384 onChanged(); 3385 return this; 3386 } 3387 3388 private java.util.List<com.google.cloud.compute.v1.Quota> quotas_ = 3389 java.util.Collections.emptyList(); 3390 ensureQuotasIsMutable()3391 private void ensureQuotasIsMutable() { 3392 if (!((bitField0_ & 0x00000200) != 0)) { 3393 quotas_ = new java.util.ArrayList<com.google.cloud.compute.v1.Quota>(quotas_); 3394 bitField0_ |= 0x00000200; 3395 } 3396 } 3397 3398 private com.google.protobuf.RepeatedFieldBuilderV3< 3399 com.google.cloud.compute.v1.Quota, 3400 com.google.cloud.compute.v1.Quota.Builder, 3401 com.google.cloud.compute.v1.QuotaOrBuilder> 3402 quotasBuilder_; 3403 3404 /** 3405 * 3406 * 3407 * <pre> 3408 * [Output Only] Quotas assigned to this project. 3409 * </pre> 3410 * 3411 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3412 */ getQuotasList()3413 public java.util.List<com.google.cloud.compute.v1.Quota> getQuotasList() { 3414 if (quotasBuilder_ == null) { 3415 return java.util.Collections.unmodifiableList(quotas_); 3416 } else { 3417 return quotasBuilder_.getMessageList(); 3418 } 3419 } 3420 /** 3421 * 3422 * 3423 * <pre> 3424 * [Output Only] Quotas assigned to this project. 3425 * </pre> 3426 * 3427 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3428 */ getQuotasCount()3429 public int getQuotasCount() { 3430 if (quotasBuilder_ == null) { 3431 return quotas_.size(); 3432 } else { 3433 return quotasBuilder_.getCount(); 3434 } 3435 } 3436 /** 3437 * 3438 * 3439 * <pre> 3440 * [Output Only] Quotas assigned to this project. 3441 * </pre> 3442 * 3443 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3444 */ getQuotas(int index)3445 public com.google.cloud.compute.v1.Quota getQuotas(int index) { 3446 if (quotasBuilder_ == null) { 3447 return quotas_.get(index); 3448 } else { 3449 return quotasBuilder_.getMessage(index); 3450 } 3451 } 3452 /** 3453 * 3454 * 3455 * <pre> 3456 * [Output Only] Quotas assigned to this project. 3457 * </pre> 3458 * 3459 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3460 */ setQuotas(int index, com.google.cloud.compute.v1.Quota value)3461 public Builder setQuotas(int index, com.google.cloud.compute.v1.Quota value) { 3462 if (quotasBuilder_ == null) { 3463 if (value == null) { 3464 throw new NullPointerException(); 3465 } 3466 ensureQuotasIsMutable(); 3467 quotas_.set(index, value); 3468 onChanged(); 3469 } else { 3470 quotasBuilder_.setMessage(index, value); 3471 } 3472 return this; 3473 } 3474 /** 3475 * 3476 * 3477 * <pre> 3478 * [Output Only] Quotas assigned to this project. 3479 * </pre> 3480 * 3481 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3482 */ setQuotas(int index, com.google.cloud.compute.v1.Quota.Builder builderForValue)3483 public Builder setQuotas(int index, com.google.cloud.compute.v1.Quota.Builder builderForValue) { 3484 if (quotasBuilder_ == null) { 3485 ensureQuotasIsMutable(); 3486 quotas_.set(index, builderForValue.build()); 3487 onChanged(); 3488 } else { 3489 quotasBuilder_.setMessage(index, builderForValue.build()); 3490 } 3491 return this; 3492 } 3493 /** 3494 * 3495 * 3496 * <pre> 3497 * [Output Only] Quotas assigned to this project. 3498 * </pre> 3499 * 3500 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3501 */ addQuotas(com.google.cloud.compute.v1.Quota value)3502 public Builder addQuotas(com.google.cloud.compute.v1.Quota value) { 3503 if (quotasBuilder_ == null) { 3504 if (value == null) { 3505 throw new NullPointerException(); 3506 } 3507 ensureQuotasIsMutable(); 3508 quotas_.add(value); 3509 onChanged(); 3510 } else { 3511 quotasBuilder_.addMessage(value); 3512 } 3513 return this; 3514 } 3515 /** 3516 * 3517 * 3518 * <pre> 3519 * [Output Only] Quotas assigned to this project. 3520 * </pre> 3521 * 3522 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3523 */ addQuotas(int index, com.google.cloud.compute.v1.Quota value)3524 public Builder addQuotas(int index, com.google.cloud.compute.v1.Quota value) { 3525 if (quotasBuilder_ == null) { 3526 if (value == null) { 3527 throw new NullPointerException(); 3528 } 3529 ensureQuotasIsMutable(); 3530 quotas_.add(index, value); 3531 onChanged(); 3532 } else { 3533 quotasBuilder_.addMessage(index, value); 3534 } 3535 return this; 3536 } 3537 /** 3538 * 3539 * 3540 * <pre> 3541 * [Output Only] Quotas assigned to this project. 3542 * </pre> 3543 * 3544 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3545 */ addQuotas(com.google.cloud.compute.v1.Quota.Builder builderForValue)3546 public Builder addQuotas(com.google.cloud.compute.v1.Quota.Builder builderForValue) { 3547 if (quotasBuilder_ == null) { 3548 ensureQuotasIsMutable(); 3549 quotas_.add(builderForValue.build()); 3550 onChanged(); 3551 } else { 3552 quotasBuilder_.addMessage(builderForValue.build()); 3553 } 3554 return this; 3555 } 3556 /** 3557 * 3558 * 3559 * <pre> 3560 * [Output Only] Quotas assigned to this project. 3561 * </pre> 3562 * 3563 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3564 */ addQuotas(int index, com.google.cloud.compute.v1.Quota.Builder builderForValue)3565 public Builder addQuotas(int index, com.google.cloud.compute.v1.Quota.Builder builderForValue) { 3566 if (quotasBuilder_ == null) { 3567 ensureQuotasIsMutable(); 3568 quotas_.add(index, builderForValue.build()); 3569 onChanged(); 3570 } else { 3571 quotasBuilder_.addMessage(index, builderForValue.build()); 3572 } 3573 return this; 3574 } 3575 /** 3576 * 3577 * 3578 * <pre> 3579 * [Output Only] Quotas assigned to this project. 3580 * </pre> 3581 * 3582 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3583 */ addAllQuotas( java.lang.Iterable<? extends com.google.cloud.compute.v1.Quota> values)3584 public Builder addAllQuotas( 3585 java.lang.Iterable<? extends com.google.cloud.compute.v1.Quota> values) { 3586 if (quotasBuilder_ == null) { 3587 ensureQuotasIsMutable(); 3588 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quotas_); 3589 onChanged(); 3590 } else { 3591 quotasBuilder_.addAllMessages(values); 3592 } 3593 return this; 3594 } 3595 /** 3596 * 3597 * 3598 * <pre> 3599 * [Output Only] Quotas assigned to this project. 3600 * </pre> 3601 * 3602 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3603 */ clearQuotas()3604 public Builder clearQuotas() { 3605 if (quotasBuilder_ == null) { 3606 quotas_ = java.util.Collections.emptyList(); 3607 bitField0_ = (bitField0_ & ~0x00000200); 3608 onChanged(); 3609 } else { 3610 quotasBuilder_.clear(); 3611 } 3612 return this; 3613 } 3614 /** 3615 * 3616 * 3617 * <pre> 3618 * [Output Only] Quotas assigned to this project. 3619 * </pre> 3620 * 3621 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3622 */ removeQuotas(int index)3623 public Builder removeQuotas(int index) { 3624 if (quotasBuilder_ == null) { 3625 ensureQuotasIsMutable(); 3626 quotas_.remove(index); 3627 onChanged(); 3628 } else { 3629 quotasBuilder_.remove(index); 3630 } 3631 return this; 3632 } 3633 /** 3634 * 3635 * 3636 * <pre> 3637 * [Output Only] Quotas assigned to this project. 3638 * </pre> 3639 * 3640 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3641 */ getQuotasBuilder(int index)3642 public com.google.cloud.compute.v1.Quota.Builder getQuotasBuilder(int index) { 3643 return getQuotasFieldBuilder().getBuilder(index); 3644 } 3645 /** 3646 * 3647 * 3648 * <pre> 3649 * [Output Only] Quotas assigned to this project. 3650 * </pre> 3651 * 3652 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3653 */ getQuotasOrBuilder(int index)3654 public com.google.cloud.compute.v1.QuotaOrBuilder getQuotasOrBuilder(int index) { 3655 if (quotasBuilder_ == null) { 3656 return quotas_.get(index); 3657 } else { 3658 return quotasBuilder_.getMessageOrBuilder(index); 3659 } 3660 } 3661 /** 3662 * 3663 * 3664 * <pre> 3665 * [Output Only] Quotas assigned to this project. 3666 * </pre> 3667 * 3668 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3669 */ 3670 public java.util.List<? extends com.google.cloud.compute.v1.QuotaOrBuilder> getQuotasOrBuilderList()3671 getQuotasOrBuilderList() { 3672 if (quotasBuilder_ != null) { 3673 return quotasBuilder_.getMessageOrBuilderList(); 3674 } else { 3675 return java.util.Collections.unmodifiableList(quotas_); 3676 } 3677 } 3678 /** 3679 * 3680 * 3681 * <pre> 3682 * [Output Only] Quotas assigned to this project. 3683 * </pre> 3684 * 3685 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3686 */ addQuotasBuilder()3687 public com.google.cloud.compute.v1.Quota.Builder addQuotasBuilder() { 3688 return getQuotasFieldBuilder() 3689 .addBuilder(com.google.cloud.compute.v1.Quota.getDefaultInstance()); 3690 } 3691 /** 3692 * 3693 * 3694 * <pre> 3695 * [Output Only] Quotas assigned to this project. 3696 * </pre> 3697 * 3698 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3699 */ addQuotasBuilder(int index)3700 public com.google.cloud.compute.v1.Quota.Builder addQuotasBuilder(int index) { 3701 return getQuotasFieldBuilder() 3702 .addBuilder(index, com.google.cloud.compute.v1.Quota.getDefaultInstance()); 3703 } 3704 /** 3705 * 3706 * 3707 * <pre> 3708 * [Output Only] Quotas assigned to this project. 3709 * </pre> 3710 * 3711 * <code>repeated .google.cloud.compute.v1.Quota quotas = 125341947;</code> 3712 */ getQuotasBuilderList()3713 public java.util.List<com.google.cloud.compute.v1.Quota.Builder> getQuotasBuilderList() { 3714 return getQuotasFieldBuilder().getBuilderList(); 3715 } 3716 3717 private com.google.protobuf.RepeatedFieldBuilderV3< 3718 com.google.cloud.compute.v1.Quota, 3719 com.google.cloud.compute.v1.Quota.Builder, 3720 com.google.cloud.compute.v1.QuotaOrBuilder> getQuotasFieldBuilder()3721 getQuotasFieldBuilder() { 3722 if (quotasBuilder_ == null) { 3723 quotasBuilder_ = 3724 new com.google.protobuf.RepeatedFieldBuilderV3< 3725 com.google.cloud.compute.v1.Quota, 3726 com.google.cloud.compute.v1.Quota.Builder, 3727 com.google.cloud.compute.v1.QuotaOrBuilder>( 3728 quotas_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); 3729 quotas_ = null; 3730 } 3731 return quotasBuilder_; 3732 } 3733 3734 private java.lang.Object selfLink_ = ""; 3735 /** 3736 * 3737 * 3738 * <pre> 3739 * [Output Only] Server-defined URL for the resource. 3740 * </pre> 3741 * 3742 * <code>optional string self_link = 456214797;</code> 3743 * 3744 * @return Whether the selfLink field is set. 3745 */ hasSelfLink()3746 public boolean hasSelfLink() { 3747 return ((bitField0_ & 0x00000400) != 0); 3748 } 3749 /** 3750 * 3751 * 3752 * <pre> 3753 * [Output Only] Server-defined URL for the resource. 3754 * </pre> 3755 * 3756 * <code>optional string self_link = 456214797;</code> 3757 * 3758 * @return The selfLink. 3759 */ getSelfLink()3760 public java.lang.String getSelfLink() { 3761 java.lang.Object ref = selfLink_; 3762 if (!(ref instanceof java.lang.String)) { 3763 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3764 java.lang.String s = bs.toStringUtf8(); 3765 selfLink_ = s; 3766 return s; 3767 } else { 3768 return (java.lang.String) ref; 3769 } 3770 } 3771 /** 3772 * 3773 * 3774 * <pre> 3775 * [Output Only] Server-defined URL for the resource. 3776 * </pre> 3777 * 3778 * <code>optional string self_link = 456214797;</code> 3779 * 3780 * @return The bytes for selfLink. 3781 */ getSelfLinkBytes()3782 public com.google.protobuf.ByteString getSelfLinkBytes() { 3783 java.lang.Object ref = selfLink_; 3784 if (ref instanceof String) { 3785 com.google.protobuf.ByteString b = 3786 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3787 selfLink_ = b; 3788 return b; 3789 } else { 3790 return (com.google.protobuf.ByteString) ref; 3791 } 3792 } 3793 /** 3794 * 3795 * 3796 * <pre> 3797 * [Output Only] Server-defined URL for the resource. 3798 * </pre> 3799 * 3800 * <code>optional string self_link = 456214797;</code> 3801 * 3802 * @param value The selfLink to set. 3803 * @return This builder for chaining. 3804 */ setSelfLink(java.lang.String value)3805 public Builder setSelfLink(java.lang.String value) { 3806 if (value == null) { 3807 throw new NullPointerException(); 3808 } 3809 selfLink_ = value; 3810 bitField0_ |= 0x00000400; 3811 onChanged(); 3812 return this; 3813 } 3814 /** 3815 * 3816 * 3817 * <pre> 3818 * [Output Only] Server-defined URL for the resource. 3819 * </pre> 3820 * 3821 * <code>optional string self_link = 456214797;</code> 3822 * 3823 * @return This builder for chaining. 3824 */ clearSelfLink()3825 public Builder clearSelfLink() { 3826 selfLink_ = getDefaultInstance().getSelfLink(); 3827 bitField0_ = (bitField0_ & ~0x00000400); 3828 onChanged(); 3829 return this; 3830 } 3831 /** 3832 * 3833 * 3834 * <pre> 3835 * [Output Only] Server-defined URL for the resource. 3836 * </pre> 3837 * 3838 * <code>optional string self_link = 456214797;</code> 3839 * 3840 * @param value The bytes for selfLink to set. 3841 * @return This builder for chaining. 3842 */ setSelfLinkBytes(com.google.protobuf.ByteString value)3843 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 3844 if (value == null) { 3845 throw new NullPointerException(); 3846 } 3847 checkByteStringIsUtf8(value); 3848 selfLink_ = value; 3849 bitField0_ |= 0x00000400; 3850 onChanged(); 3851 return this; 3852 } 3853 3854 private com.google.cloud.compute.v1.UsageExportLocation usageExportLocation_; 3855 private com.google.protobuf.SingleFieldBuilderV3< 3856 com.google.cloud.compute.v1.UsageExportLocation, 3857 com.google.cloud.compute.v1.UsageExportLocation.Builder, 3858 com.google.cloud.compute.v1.UsageExportLocationOrBuilder> 3859 usageExportLocationBuilder_; 3860 /** 3861 * 3862 * 3863 * <pre> 3864 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3865 * </pre> 3866 * 3867 * <code> 3868 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 3869 * </code> 3870 * 3871 * @return Whether the usageExportLocation field is set. 3872 */ hasUsageExportLocation()3873 public boolean hasUsageExportLocation() { 3874 return ((bitField0_ & 0x00000800) != 0); 3875 } 3876 /** 3877 * 3878 * 3879 * <pre> 3880 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3881 * </pre> 3882 * 3883 * <code> 3884 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 3885 * </code> 3886 * 3887 * @return The usageExportLocation. 3888 */ getUsageExportLocation()3889 public com.google.cloud.compute.v1.UsageExportLocation getUsageExportLocation() { 3890 if (usageExportLocationBuilder_ == null) { 3891 return usageExportLocation_ == null 3892 ? com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance() 3893 : usageExportLocation_; 3894 } else { 3895 return usageExportLocationBuilder_.getMessage(); 3896 } 3897 } 3898 /** 3899 * 3900 * 3901 * <pre> 3902 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3903 * </pre> 3904 * 3905 * <code> 3906 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 3907 * </code> 3908 */ setUsageExportLocation(com.google.cloud.compute.v1.UsageExportLocation value)3909 public Builder setUsageExportLocation(com.google.cloud.compute.v1.UsageExportLocation value) { 3910 if (usageExportLocationBuilder_ == null) { 3911 if (value == null) { 3912 throw new NullPointerException(); 3913 } 3914 usageExportLocation_ = value; 3915 } else { 3916 usageExportLocationBuilder_.setMessage(value); 3917 } 3918 bitField0_ |= 0x00000800; 3919 onChanged(); 3920 return this; 3921 } 3922 /** 3923 * 3924 * 3925 * <pre> 3926 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3927 * </pre> 3928 * 3929 * <code> 3930 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 3931 * </code> 3932 */ setUsageExportLocation( com.google.cloud.compute.v1.UsageExportLocation.Builder builderForValue)3933 public Builder setUsageExportLocation( 3934 com.google.cloud.compute.v1.UsageExportLocation.Builder builderForValue) { 3935 if (usageExportLocationBuilder_ == null) { 3936 usageExportLocation_ = builderForValue.build(); 3937 } else { 3938 usageExportLocationBuilder_.setMessage(builderForValue.build()); 3939 } 3940 bitField0_ |= 0x00000800; 3941 onChanged(); 3942 return this; 3943 } 3944 /** 3945 * 3946 * 3947 * <pre> 3948 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3949 * </pre> 3950 * 3951 * <code> 3952 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 3953 * </code> 3954 */ mergeUsageExportLocation(com.google.cloud.compute.v1.UsageExportLocation value)3955 public Builder mergeUsageExportLocation(com.google.cloud.compute.v1.UsageExportLocation value) { 3956 if (usageExportLocationBuilder_ == null) { 3957 if (((bitField0_ & 0x00000800) != 0) 3958 && usageExportLocation_ != null 3959 && usageExportLocation_ 3960 != com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance()) { 3961 getUsageExportLocationBuilder().mergeFrom(value); 3962 } else { 3963 usageExportLocation_ = value; 3964 } 3965 } else { 3966 usageExportLocationBuilder_.mergeFrom(value); 3967 } 3968 bitField0_ |= 0x00000800; 3969 onChanged(); 3970 return this; 3971 } 3972 /** 3973 * 3974 * 3975 * <pre> 3976 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3977 * </pre> 3978 * 3979 * <code> 3980 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 3981 * </code> 3982 */ clearUsageExportLocation()3983 public Builder clearUsageExportLocation() { 3984 bitField0_ = (bitField0_ & ~0x00000800); 3985 usageExportLocation_ = null; 3986 if (usageExportLocationBuilder_ != null) { 3987 usageExportLocationBuilder_.dispose(); 3988 usageExportLocationBuilder_ = null; 3989 } 3990 onChanged(); 3991 return this; 3992 } 3993 /** 3994 * 3995 * 3996 * <pre> 3997 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 3998 * </pre> 3999 * 4000 * <code> 4001 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 4002 * </code> 4003 */ getUsageExportLocationBuilder()4004 public com.google.cloud.compute.v1.UsageExportLocation.Builder getUsageExportLocationBuilder() { 4005 bitField0_ |= 0x00000800; 4006 onChanged(); 4007 return getUsageExportLocationFieldBuilder().getBuilder(); 4008 } 4009 /** 4010 * 4011 * 4012 * <pre> 4013 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 4014 * </pre> 4015 * 4016 * <code> 4017 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 4018 * </code> 4019 */ 4020 public com.google.cloud.compute.v1.UsageExportLocationOrBuilder getUsageExportLocationOrBuilder()4021 getUsageExportLocationOrBuilder() { 4022 if (usageExportLocationBuilder_ != null) { 4023 return usageExportLocationBuilder_.getMessageOrBuilder(); 4024 } else { 4025 return usageExportLocation_ == null 4026 ? com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance() 4027 : usageExportLocation_; 4028 } 4029 } 4030 /** 4031 * 4032 * 4033 * <pre> 4034 * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. 4035 * </pre> 4036 * 4037 * <code> 4038 * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; 4039 * </code> 4040 */ 4041 private com.google.protobuf.SingleFieldBuilderV3< 4042 com.google.cloud.compute.v1.UsageExportLocation, 4043 com.google.cloud.compute.v1.UsageExportLocation.Builder, 4044 com.google.cloud.compute.v1.UsageExportLocationOrBuilder> getUsageExportLocationFieldBuilder()4045 getUsageExportLocationFieldBuilder() { 4046 if (usageExportLocationBuilder_ == null) { 4047 usageExportLocationBuilder_ = 4048 new com.google.protobuf.SingleFieldBuilderV3< 4049 com.google.cloud.compute.v1.UsageExportLocation, 4050 com.google.cloud.compute.v1.UsageExportLocation.Builder, 4051 com.google.cloud.compute.v1.UsageExportLocationOrBuilder>( 4052 getUsageExportLocation(), getParentForChildren(), isClean()); 4053 usageExportLocation_ = null; 4054 } 4055 return usageExportLocationBuilder_; 4056 } 4057 4058 private java.lang.Object vmDnsSetting_ = ""; 4059 /** 4060 * 4061 * 4062 * <pre> 4063 * [Output Only] Default internal DNS setting used by VMs running in this project. 4064 * Check the VmDnsSetting enum for the list of possible values. 4065 * </pre> 4066 * 4067 * <code>optional string vm_dns_setting = 58856370;</code> 4068 * 4069 * @return Whether the vmDnsSetting field is set. 4070 */ hasVmDnsSetting()4071 public boolean hasVmDnsSetting() { 4072 return ((bitField0_ & 0x00001000) != 0); 4073 } 4074 /** 4075 * 4076 * 4077 * <pre> 4078 * [Output Only] Default internal DNS setting used by VMs running in this project. 4079 * Check the VmDnsSetting enum for the list of possible values. 4080 * </pre> 4081 * 4082 * <code>optional string vm_dns_setting = 58856370;</code> 4083 * 4084 * @return The vmDnsSetting. 4085 */ getVmDnsSetting()4086 public java.lang.String getVmDnsSetting() { 4087 java.lang.Object ref = vmDnsSetting_; 4088 if (!(ref instanceof java.lang.String)) { 4089 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4090 java.lang.String s = bs.toStringUtf8(); 4091 vmDnsSetting_ = s; 4092 return s; 4093 } else { 4094 return (java.lang.String) ref; 4095 } 4096 } 4097 /** 4098 * 4099 * 4100 * <pre> 4101 * [Output Only] Default internal DNS setting used by VMs running in this project. 4102 * Check the VmDnsSetting enum for the list of possible values. 4103 * </pre> 4104 * 4105 * <code>optional string vm_dns_setting = 58856370;</code> 4106 * 4107 * @return The bytes for vmDnsSetting. 4108 */ getVmDnsSettingBytes()4109 public com.google.protobuf.ByteString getVmDnsSettingBytes() { 4110 java.lang.Object ref = vmDnsSetting_; 4111 if (ref instanceof String) { 4112 com.google.protobuf.ByteString b = 4113 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4114 vmDnsSetting_ = b; 4115 return b; 4116 } else { 4117 return (com.google.protobuf.ByteString) ref; 4118 } 4119 } 4120 /** 4121 * 4122 * 4123 * <pre> 4124 * [Output Only] Default internal DNS setting used by VMs running in this project. 4125 * Check the VmDnsSetting enum for the list of possible values. 4126 * </pre> 4127 * 4128 * <code>optional string vm_dns_setting = 58856370;</code> 4129 * 4130 * @param value The vmDnsSetting to set. 4131 * @return This builder for chaining. 4132 */ setVmDnsSetting(java.lang.String value)4133 public Builder setVmDnsSetting(java.lang.String value) { 4134 if (value == null) { 4135 throw new NullPointerException(); 4136 } 4137 vmDnsSetting_ = value; 4138 bitField0_ |= 0x00001000; 4139 onChanged(); 4140 return this; 4141 } 4142 /** 4143 * 4144 * 4145 * <pre> 4146 * [Output Only] Default internal DNS setting used by VMs running in this project. 4147 * Check the VmDnsSetting enum for the list of possible values. 4148 * </pre> 4149 * 4150 * <code>optional string vm_dns_setting = 58856370;</code> 4151 * 4152 * @return This builder for chaining. 4153 */ clearVmDnsSetting()4154 public Builder clearVmDnsSetting() { 4155 vmDnsSetting_ = getDefaultInstance().getVmDnsSetting(); 4156 bitField0_ = (bitField0_ & ~0x00001000); 4157 onChanged(); 4158 return this; 4159 } 4160 /** 4161 * 4162 * 4163 * <pre> 4164 * [Output Only] Default internal DNS setting used by VMs running in this project. 4165 * Check the VmDnsSetting enum for the list of possible values. 4166 * </pre> 4167 * 4168 * <code>optional string vm_dns_setting = 58856370;</code> 4169 * 4170 * @param value The bytes for vmDnsSetting to set. 4171 * @return This builder for chaining. 4172 */ setVmDnsSettingBytes(com.google.protobuf.ByteString value)4173 public Builder setVmDnsSettingBytes(com.google.protobuf.ByteString value) { 4174 if (value == null) { 4175 throw new NullPointerException(); 4176 } 4177 checkByteStringIsUtf8(value); 4178 vmDnsSetting_ = value; 4179 bitField0_ |= 0x00001000; 4180 onChanged(); 4181 return this; 4182 } 4183 4184 private java.lang.Object xpnProjectStatus_ = ""; 4185 /** 4186 * 4187 * 4188 * <pre> 4189 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 4190 * Check the XpnProjectStatus enum for the list of possible values. 4191 * </pre> 4192 * 4193 * <code>optional string xpn_project_status = 228419265;</code> 4194 * 4195 * @return Whether the xpnProjectStatus field is set. 4196 */ hasXpnProjectStatus()4197 public boolean hasXpnProjectStatus() { 4198 return ((bitField0_ & 0x00002000) != 0); 4199 } 4200 /** 4201 * 4202 * 4203 * <pre> 4204 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 4205 * Check the XpnProjectStatus enum for the list of possible values. 4206 * </pre> 4207 * 4208 * <code>optional string xpn_project_status = 228419265;</code> 4209 * 4210 * @return The xpnProjectStatus. 4211 */ getXpnProjectStatus()4212 public java.lang.String getXpnProjectStatus() { 4213 java.lang.Object ref = xpnProjectStatus_; 4214 if (!(ref instanceof java.lang.String)) { 4215 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4216 java.lang.String s = bs.toStringUtf8(); 4217 xpnProjectStatus_ = s; 4218 return s; 4219 } else { 4220 return (java.lang.String) ref; 4221 } 4222 } 4223 /** 4224 * 4225 * 4226 * <pre> 4227 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 4228 * Check the XpnProjectStatus enum for the list of possible values. 4229 * </pre> 4230 * 4231 * <code>optional string xpn_project_status = 228419265;</code> 4232 * 4233 * @return The bytes for xpnProjectStatus. 4234 */ getXpnProjectStatusBytes()4235 public com.google.protobuf.ByteString getXpnProjectStatusBytes() { 4236 java.lang.Object ref = xpnProjectStatus_; 4237 if (ref instanceof String) { 4238 com.google.protobuf.ByteString b = 4239 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4240 xpnProjectStatus_ = b; 4241 return b; 4242 } else { 4243 return (com.google.protobuf.ByteString) ref; 4244 } 4245 } 4246 /** 4247 * 4248 * 4249 * <pre> 4250 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 4251 * Check the XpnProjectStatus enum for the list of possible values. 4252 * </pre> 4253 * 4254 * <code>optional string xpn_project_status = 228419265;</code> 4255 * 4256 * @param value The xpnProjectStatus to set. 4257 * @return This builder for chaining. 4258 */ setXpnProjectStatus(java.lang.String value)4259 public Builder setXpnProjectStatus(java.lang.String value) { 4260 if (value == null) { 4261 throw new NullPointerException(); 4262 } 4263 xpnProjectStatus_ = value; 4264 bitField0_ |= 0x00002000; 4265 onChanged(); 4266 return this; 4267 } 4268 /** 4269 * 4270 * 4271 * <pre> 4272 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 4273 * Check the XpnProjectStatus enum for the list of possible values. 4274 * </pre> 4275 * 4276 * <code>optional string xpn_project_status = 228419265;</code> 4277 * 4278 * @return This builder for chaining. 4279 */ clearXpnProjectStatus()4280 public Builder clearXpnProjectStatus() { 4281 xpnProjectStatus_ = getDefaultInstance().getXpnProjectStatus(); 4282 bitField0_ = (bitField0_ & ~0x00002000); 4283 onChanged(); 4284 return this; 4285 } 4286 /** 4287 * 4288 * 4289 * <pre> 4290 * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. 4291 * Check the XpnProjectStatus enum for the list of possible values. 4292 * </pre> 4293 * 4294 * <code>optional string xpn_project_status = 228419265;</code> 4295 * 4296 * @param value The bytes for xpnProjectStatus to set. 4297 * @return This builder for chaining. 4298 */ setXpnProjectStatusBytes(com.google.protobuf.ByteString value)4299 public Builder setXpnProjectStatusBytes(com.google.protobuf.ByteString value) { 4300 if (value == null) { 4301 throw new NullPointerException(); 4302 } 4303 checkByteStringIsUtf8(value); 4304 xpnProjectStatus_ = value; 4305 bitField0_ |= 0x00002000; 4306 onChanged(); 4307 return this; 4308 } 4309 4310 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4311 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 4312 return super.setUnknownFields(unknownFields); 4313 } 4314 4315 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4316 public final Builder mergeUnknownFields( 4317 final com.google.protobuf.UnknownFieldSet unknownFields) { 4318 return super.mergeUnknownFields(unknownFields); 4319 } 4320 4321 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.Project) 4322 } 4323 4324 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.Project) 4325 private static final com.google.cloud.compute.v1.Project DEFAULT_INSTANCE; 4326 4327 static { 4328 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.Project(); 4329 } 4330 getDefaultInstance()4331 public static com.google.cloud.compute.v1.Project getDefaultInstance() { 4332 return DEFAULT_INSTANCE; 4333 } 4334 4335 private static final com.google.protobuf.Parser<Project> PARSER = 4336 new com.google.protobuf.AbstractParser<Project>() { 4337 @java.lang.Override 4338 public Project parsePartialFrom( 4339 com.google.protobuf.CodedInputStream input, 4340 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4341 throws com.google.protobuf.InvalidProtocolBufferException { 4342 Builder builder = newBuilder(); 4343 try { 4344 builder.mergeFrom(input, extensionRegistry); 4345 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4346 throw e.setUnfinishedMessage(builder.buildPartial()); 4347 } catch (com.google.protobuf.UninitializedMessageException e) { 4348 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 4349 } catch (java.io.IOException e) { 4350 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4351 .setUnfinishedMessage(builder.buildPartial()); 4352 } 4353 return builder.buildPartial(); 4354 } 4355 }; 4356 parser()4357 public static com.google.protobuf.Parser<Project> parser() { 4358 return PARSER; 4359 } 4360 4361 @java.lang.Override getParserForType()4362 public com.google.protobuf.Parser<Project> getParserForType() { 4363 return PARSER; 4364 } 4365 4366 @java.lang.Override getDefaultInstanceForType()4367 public com.google.cloud.compute.v1.Project getDefaultInstanceForType() { 4368 return DEFAULT_INSTANCE; 4369 } 4370 } 4371