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