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