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