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/clientgateways/v1/client_gateways_service.proto 18 19 package com.google.cloud.beyondcorp.clientgateways.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Message for response to listing ClientGateways. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse} 29 */ 30 public final class ListClientGatewaysResponse extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) 33 ListClientGatewaysResponseOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ListClientGatewaysResponse.newBuilder() to construct. ListClientGatewaysResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ListClientGatewaysResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ListClientGatewaysResponse()40 private ListClientGatewaysResponse() { 41 clientGateways_ = java.util.Collections.emptyList(); 42 nextPageToken_ = ""; 43 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new ListClientGatewaysResponse(); 50 } 51 52 @java.lang.Override getUnknownFields()53 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 54 return this.unknownFields; 55 } 56 getDescriptor()57 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 58 return com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceProto 59 .internal_static_google_cloud_beyondcorp_clientgateways_v1_ListClientGatewaysResponse_descriptor; 60 } 61 62 @java.lang.Override 63 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()64 internalGetFieldAccessorTable() { 65 return com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceProto 66 .internal_static_google_cloud_beyondcorp_clientgateways_v1_ListClientGatewaysResponse_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse.class, 69 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse.Builder.class); 70 } 71 72 public static final int CLIENT_GATEWAYS_FIELD_NUMBER = 1; 73 74 @SuppressWarnings("serial") 75 private java.util.List<com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway> 76 clientGateways_; 77 /** 78 * 79 * 80 * <pre> 81 * The list of ClientGateway. 82 * </pre> 83 * 84 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 85 * </code> 86 */ 87 @java.lang.Override 88 public java.util.List<com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway> getClientGatewaysList()89 getClientGatewaysList() { 90 return clientGateways_; 91 } 92 /** 93 * 94 * 95 * <pre> 96 * The list of ClientGateway. 97 * </pre> 98 * 99 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 100 * </code> 101 */ 102 @java.lang.Override 103 public java.util.List< 104 ? extends com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder> getClientGatewaysOrBuilderList()105 getClientGatewaysOrBuilderList() { 106 return clientGateways_; 107 } 108 /** 109 * 110 * 111 * <pre> 112 * The list of ClientGateway. 113 * </pre> 114 * 115 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 116 * </code> 117 */ 118 @java.lang.Override getClientGatewaysCount()119 public int getClientGatewaysCount() { 120 return clientGateways_.size(); 121 } 122 /** 123 * 124 * 125 * <pre> 126 * The list of ClientGateway. 127 * </pre> 128 * 129 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 130 * </code> 131 */ 132 @java.lang.Override getClientGateways(int index)133 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway getClientGateways(int index) { 134 return clientGateways_.get(index); 135 } 136 /** 137 * 138 * 139 * <pre> 140 * The list of ClientGateway. 141 * </pre> 142 * 143 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 144 * </code> 145 */ 146 @java.lang.Override 147 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder getClientGatewaysOrBuilder(int index)148 getClientGatewaysOrBuilder(int index) { 149 return clientGateways_.get(index); 150 } 151 152 public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 153 154 @SuppressWarnings("serial") 155 private volatile java.lang.Object nextPageToken_ = ""; 156 /** 157 * 158 * 159 * <pre> 160 * A token identifying a page of results the server should return. 161 * </pre> 162 * 163 * <code>string next_page_token = 2;</code> 164 * 165 * @return The nextPageToken. 166 */ 167 @java.lang.Override getNextPageToken()168 public java.lang.String getNextPageToken() { 169 java.lang.Object ref = nextPageToken_; 170 if (ref instanceof java.lang.String) { 171 return (java.lang.String) ref; 172 } else { 173 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 174 java.lang.String s = bs.toStringUtf8(); 175 nextPageToken_ = s; 176 return s; 177 } 178 } 179 /** 180 * 181 * 182 * <pre> 183 * A token identifying a page of results the server should return. 184 * </pre> 185 * 186 * <code>string next_page_token = 2;</code> 187 * 188 * @return The bytes for nextPageToken. 189 */ 190 @java.lang.Override getNextPageTokenBytes()191 public com.google.protobuf.ByteString getNextPageTokenBytes() { 192 java.lang.Object ref = nextPageToken_; 193 if (ref instanceof java.lang.String) { 194 com.google.protobuf.ByteString b = 195 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 196 nextPageToken_ = b; 197 return b; 198 } else { 199 return (com.google.protobuf.ByteString) ref; 200 } 201 } 202 203 public static final int UNREACHABLE_FIELD_NUMBER = 3; 204 205 @SuppressWarnings("serial") 206 private com.google.protobuf.LazyStringList unreachable_; 207 /** 208 * 209 * 210 * <pre> 211 * Locations that could not be reached. 212 * </pre> 213 * 214 * <code>repeated string unreachable = 3;</code> 215 * 216 * @return A list containing the unreachable. 217 */ getUnreachableList()218 public com.google.protobuf.ProtocolStringList getUnreachableList() { 219 return unreachable_; 220 } 221 /** 222 * 223 * 224 * <pre> 225 * Locations that could not be reached. 226 * </pre> 227 * 228 * <code>repeated string unreachable = 3;</code> 229 * 230 * @return The count of unreachable. 231 */ getUnreachableCount()232 public int getUnreachableCount() { 233 return unreachable_.size(); 234 } 235 /** 236 * 237 * 238 * <pre> 239 * Locations that could not be reached. 240 * </pre> 241 * 242 * <code>repeated string unreachable = 3;</code> 243 * 244 * @param index The index of the element to return. 245 * @return The unreachable at the given index. 246 */ getUnreachable(int index)247 public java.lang.String getUnreachable(int index) { 248 return unreachable_.get(index); 249 } 250 /** 251 * 252 * 253 * <pre> 254 * Locations that could not be reached. 255 * </pre> 256 * 257 * <code>repeated string unreachable = 3;</code> 258 * 259 * @param index The index of the value to return. 260 * @return The bytes of the unreachable at the given index. 261 */ getUnreachableBytes(int index)262 public com.google.protobuf.ByteString getUnreachableBytes(int index) { 263 return unreachable_.getByteString(index); 264 } 265 266 private byte memoizedIsInitialized = -1; 267 268 @java.lang.Override isInitialized()269 public final boolean isInitialized() { 270 byte isInitialized = memoizedIsInitialized; 271 if (isInitialized == 1) return true; 272 if (isInitialized == 0) return false; 273 274 memoizedIsInitialized = 1; 275 return true; 276 } 277 278 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)279 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 280 for (int i = 0; i < clientGateways_.size(); i++) { 281 output.writeMessage(1, clientGateways_.get(i)); 282 } 283 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { 284 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); 285 } 286 for (int i = 0; i < unreachable_.size(); i++) { 287 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); 288 } 289 getUnknownFields().writeTo(output); 290 } 291 292 @java.lang.Override getSerializedSize()293 public int getSerializedSize() { 294 int size = memoizedSize; 295 if (size != -1) return size; 296 297 size = 0; 298 for (int i = 0; i < clientGateways_.size(); i++) { 299 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientGateways_.get(i)); 300 } 301 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { 302 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); 303 } 304 { 305 int dataSize = 0; 306 for (int i = 0; i < unreachable_.size(); i++) { 307 dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); 308 } 309 size += dataSize; 310 size += 1 * getUnreachableList().size(); 311 } 312 size += getUnknownFields().getSerializedSize(); 313 memoizedSize = size; 314 return size; 315 } 316 317 @java.lang.Override equals(final java.lang.Object obj)318 public boolean equals(final java.lang.Object obj) { 319 if (obj == this) { 320 return true; 321 } 322 if (!(obj 323 instanceof com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse)) { 324 return super.equals(obj); 325 } 326 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse other = 327 (com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) obj; 328 329 if (!getClientGatewaysList().equals(other.getClientGatewaysList())) return false; 330 if (!getNextPageToken().equals(other.getNextPageToken())) return false; 331 if (!getUnreachableList().equals(other.getUnreachableList())) return false; 332 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 333 return true; 334 } 335 336 @java.lang.Override hashCode()337 public int hashCode() { 338 if (memoizedHashCode != 0) { 339 return memoizedHashCode; 340 } 341 int hash = 41; 342 hash = (19 * hash) + getDescriptor().hashCode(); 343 if (getClientGatewaysCount() > 0) { 344 hash = (37 * hash) + CLIENT_GATEWAYS_FIELD_NUMBER; 345 hash = (53 * hash) + getClientGatewaysList().hashCode(); 346 } 347 hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; 348 hash = (53 * hash) + getNextPageToken().hashCode(); 349 if (getUnreachableCount() > 0) { 350 hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; 351 hash = (53 * hash) + getUnreachableList().hashCode(); 352 } 353 hash = (29 * hash) + getUnknownFields().hashCode(); 354 memoizedHashCode = hash; 355 return hash; 356 } 357 parseFrom( java.nio.ByteBuffer data)358 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 359 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 360 return PARSER.parseFrom(data); 361 } 362 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)363 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 364 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 365 throws com.google.protobuf.InvalidProtocolBufferException { 366 return PARSER.parseFrom(data, extensionRegistry); 367 } 368 parseFrom( com.google.protobuf.ByteString data)369 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 370 com.google.protobuf.ByteString data) 371 throws com.google.protobuf.InvalidProtocolBufferException { 372 return PARSER.parseFrom(data); 373 } 374 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)375 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 376 com.google.protobuf.ByteString data, 377 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 378 throws com.google.protobuf.InvalidProtocolBufferException { 379 return PARSER.parseFrom(data, extensionRegistry); 380 } 381 parseFrom( byte[] data)382 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 383 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 384 return PARSER.parseFrom(data); 385 } 386 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)387 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 388 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 389 throws com.google.protobuf.InvalidProtocolBufferException { 390 return PARSER.parseFrom(data, extensionRegistry); 391 } 392 parseFrom( java.io.InputStream input)393 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 394 java.io.InputStream input) throws java.io.IOException { 395 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 396 } 397 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)398 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 399 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 400 throws java.io.IOException { 401 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 402 PARSER, input, extensionRegistry); 403 } 404 405 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseDelimitedFrom(java.io.InputStream input)406 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 407 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 408 } 409 410 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)411 parseDelimitedFrom( 412 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 413 throws java.io.IOException { 414 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 415 PARSER, input, extensionRegistry); 416 } 417 parseFrom( com.google.protobuf.CodedInputStream input)418 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 419 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 420 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 421 } 422 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)423 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse parseFrom( 424 com.google.protobuf.CodedInputStream input, 425 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 426 throws java.io.IOException { 427 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 428 PARSER, input, extensionRegistry); 429 } 430 431 @java.lang.Override newBuilderForType()432 public Builder newBuilderForType() { 433 return newBuilder(); 434 } 435 newBuilder()436 public static Builder newBuilder() { 437 return DEFAULT_INSTANCE.toBuilder(); 438 } 439 newBuilder( com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse prototype)440 public static Builder newBuilder( 441 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse prototype) { 442 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 443 } 444 445 @java.lang.Override toBuilder()446 public Builder toBuilder() { 447 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 448 } 449 450 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)451 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 452 Builder builder = new Builder(parent); 453 return builder; 454 } 455 /** 456 * 457 * 458 * <pre> 459 * Message for response to listing ClientGateways. 460 * </pre> 461 * 462 * Protobuf type {@code google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse} 463 */ 464 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 465 implements 466 // @@protoc_insertion_point(builder_implements:google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) 467 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponseOrBuilder { getDescriptor()468 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 469 return com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceProto 470 .internal_static_google_cloud_beyondcorp_clientgateways_v1_ListClientGatewaysResponse_descriptor; 471 } 472 473 @java.lang.Override 474 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()475 internalGetFieldAccessorTable() { 476 return com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceProto 477 .internal_static_google_cloud_beyondcorp_clientgateways_v1_ListClientGatewaysResponse_fieldAccessorTable 478 .ensureFieldAccessorsInitialized( 479 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse.class, 480 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse.Builder 481 .class); 482 } 483 484 // Construct using 485 // com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse.newBuilder() Builder()486 private Builder() {} 487 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)488 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 489 super(parent); 490 } 491 492 @java.lang.Override clear()493 public Builder clear() { 494 super.clear(); 495 bitField0_ = 0; 496 if (clientGatewaysBuilder_ == null) { 497 clientGateways_ = java.util.Collections.emptyList(); 498 } else { 499 clientGateways_ = null; 500 clientGatewaysBuilder_.clear(); 501 } 502 bitField0_ = (bitField0_ & ~0x00000001); 503 nextPageToken_ = ""; 504 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 505 bitField0_ = (bitField0_ & ~0x00000004); 506 return this; 507 } 508 509 @java.lang.Override getDescriptorForType()510 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 511 return com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceProto 512 .internal_static_google_cloud_beyondcorp_clientgateways_v1_ListClientGatewaysResponse_descriptor; 513 } 514 515 @java.lang.Override 516 public com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse getDefaultInstanceForType()517 getDefaultInstanceForType() { 518 return com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse 519 .getDefaultInstance(); 520 } 521 522 @java.lang.Override build()523 public com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse build() { 524 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse result = 525 buildPartial(); 526 if (!result.isInitialized()) { 527 throw newUninitializedMessageException(result); 528 } 529 return result; 530 } 531 532 @java.lang.Override buildPartial()533 public com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse buildPartial() { 534 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse result = 535 new com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse(this); 536 buildPartialRepeatedFields(result); 537 if (bitField0_ != 0) { 538 buildPartial0(result); 539 } 540 onBuilt(); 541 return result; 542 } 543 buildPartialRepeatedFields( com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse result)544 private void buildPartialRepeatedFields( 545 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse result) { 546 if (clientGatewaysBuilder_ == null) { 547 if (((bitField0_ & 0x00000001) != 0)) { 548 clientGateways_ = java.util.Collections.unmodifiableList(clientGateways_); 549 bitField0_ = (bitField0_ & ~0x00000001); 550 } 551 result.clientGateways_ = clientGateways_; 552 } else { 553 result.clientGateways_ = clientGatewaysBuilder_.build(); 554 } 555 if (((bitField0_ & 0x00000004) != 0)) { 556 unreachable_ = unreachable_.getUnmodifiableView(); 557 bitField0_ = (bitField0_ & ~0x00000004); 558 } 559 result.unreachable_ = unreachable_; 560 } 561 buildPartial0( com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse result)562 private void buildPartial0( 563 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse result) { 564 int from_bitField0_ = bitField0_; 565 if (((from_bitField0_ & 0x00000002) != 0)) { 566 result.nextPageToken_ = nextPageToken_; 567 } 568 } 569 570 @java.lang.Override clone()571 public Builder clone() { 572 return super.clone(); 573 } 574 575 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)576 public Builder setField( 577 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 578 return super.setField(field, value); 579 } 580 581 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)582 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 583 return super.clearField(field); 584 } 585 586 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)587 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 588 return super.clearOneof(oneof); 589 } 590 591 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)592 public Builder setRepeatedField( 593 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 594 return super.setRepeatedField(field, index, value); 595 } 596 597 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)598 public Builder addRepeatedField( 599 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 600 return super.addRepeatedField(field, value); 601 } 602 603 @java.lang.Override mergeFrom(com.google.protobuf.Message other)604 public Builder mergeFrom(com.google.protobuf.Message other) { 605 if (other 606 instanceof com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) { 607 return mergeFrom( 608 (com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) other); 609 } else { 610 super.mergeFrom(other); 611 return this; 612 } 613 } 614 mergeFrom( com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse other)615 public Builder mergeFrom( 616 com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse other) { 617 if (other 618 == com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse 619 .getDefaultInstance()) return this; 620 if (clientGatewaysBuilder_ == null) { 621 if (!other.clientGateways_.isEmpty()) { 622 if (clientGateways_.isEmpty()) { 623 clientGateways_ = other.clientGateways_; 624 bitField0_ = (bitField0_ & ~0x00000001); 625 } else { 626 ensureClientGatewaysIsMutable(); 627 clientGateways_.addAll(other.clientGateways_); 628 } 629 onChanged(); 630 } 631 } else { 632 if (!other.clientGateways_.isEmpty()) { 633 if (clientGatewaysBuilder_.isEmpty()) { 634 clientGatewaysBuilder_.dispose(); 635 clientGatewaysBuilder_ = null; 636 clientGateways_ = other.clientGateways_; 637 bitField0_ = (bitField0_ & ~0x00000001); 638 clientGatewaysBuilder_ = 639 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 640 ? getClientGatewaysFieldBuilder() 641 : null; 642 } else { 643 clientGatewaysBuilder_.addAllMessages(other.clientGateways_); 644 } 645 } 646 } 647 if (!other.getNextPageToken().isEmpty()) { 648 nextPageToken_ = other.nextPageToken_; 649 bitField0_ |= 0x00000002; 650 onChanged(); 651 } 652 if (!other.unreachable_.isEmpty()) { 653 if (unreachable_.isEmpty()) { 654 unreachable_ = other.unreachable_; 655 bitField0_ = (bitField0_ & ~0x00000004); 656 } else { 657 ensureUnreachableIsMutable(); 658 unreachable_.addAll(other.unreachable_); 659 } 660 onChanged(); 661 } 662 this.mergeUnknownFields(other.getUnknownFields()); 663 onChanged(); 664 return this; 665 } 666 667 @java.lang.Override isInitialized()668 public final boolean isInitialized() { 669 return true; 670 } 671 672 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)673 public Builder mergeFrom( 674 com.google.protobuf.CodedInputStream input, 675 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 676 throws java.io.IOException { 677 if (extensionRegistry == null) { 678 throw new java.lang.NullPointerException(); 679 } 680 try { 681 boolean done = false; 682 while (!done) { 683 int tag = input.readTag(); 684 switch (tag) { 685 case 0: 686 done = true; 687 break; 688 case 10: 689 { 690 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway m = 691 input.readMessage( 692 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.parser(), 693 extensionRegistry); 694 if (clientGatewaysBuilder_ == null) { 695 ensureClientGatewaysIsMutable(); 696 clientGateways_.add(m); 697 } else { 698 clientGatewaysBuilder_.addMessage(m); 699 } 700 break; 701 } // case 10 702 case 18: 703 { 704 nextPageToken_ = input.readStringRequireUtf8(); 705 bitField0_ |= 0x00000002; 706 break; 707 } // case 18 708 case 26: 709 { 710 java.lang.String s = input.readStringRequireUtf8(); 711 ensureUnreachableIsMutable(); 712 unreachable_.add(s); 713 break; 714 } // case 26 715 default: 716 { 717 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 718 done = true; // was an endgroup tag 719 } 720 break; 721 } // default: 722 } // switch (tag) 723 } // while (!done) 724 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 725 throw e.unwrapIOException(); 726 } finally { 727 onChanged(); 728 } // finally 729 return this; 730 } 731 732 private int bitField0_; 733 734 private java.util.List<com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway> 735 clientGateways_ = java.util.Collections.emptyList(); 736 ensureClientGatewaysIsMutable()737 private void ensureClientGatewaysIsMutable() { 738 if (!((bitField0_ & 0x00000001) != 0)) { 739 clientGateways_ = 740 new java.util.ArrayList<com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway>( 741 clientGateways_); 742 bitField0_ |= 0x00000001; 743 } 744 } 745 746 private com.google.protobuf.RepeatedFieldBuilderV3< 747 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway, 748 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder, 749 com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder> 750 clientGatewaysBuilder_; 751 752 /** 753 * 754 * 755 * <pre> 756 * The list of ClientGateway. 757 * </pre> 758 * 759 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 760 * </code> 761 */ 762 public java.util.List<com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway> getClientGatewaysList()763 getClientGatewaysList() { 764 if (clientGatewaysBuilder_ == null) { 765 return java.util.Collections.unmodifiableList(clientGateways_); 766 } else { 767 return clientGatewaysBuilder_.getMessageList(); 768 } 769 } 770 /** 771 * 772 * 773 * <pre> 774 * The list of ClientGateway. 775 * </pre> 776 * 777 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 778 * </code> 779 */ getClientGatewaysCount()780 public int getClientGatewaysCount() { 781 if (clientGatewaysBuilder_ == null) { 782 return clientGateways_.size(); 783 } else { 784 return clientGatewaysBuilder_.getCount(); 785 } 786 } 787 /** 788 * 789 * 790 * <pre> 791 * The list of ClientGateway. 792 * </pre> 793 * 794 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 795 * </code> 796 */ getClientGateways( int index)797 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway getClientGateways( 798 int index) { 799 if (clientGatewaysBuilder_ == null) { 800 return clientGateways_.get(index); 801 } else { 802 return clientGatewaysBuilder_.getMessage(index); 803 } 804 } 805 /** 806 * 807 * 808 * <pre> 809 * The list of ClientGateway. 810 * </pre> 811 * 812 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 813 * </code> 814 */ setClientGateways( int index, com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway value)815 public Builder setClientGateways( 816 int index, com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway value) { 817 if (clientGatewaysBuilder_ == null) { 818 if (value == null) { 819 throw new NullPointerException(); 820 } 821 ensureClientGatewaysIsMutable(); 822 clientGateways_.set(index, value); 823 onChanged(); 824 } else { 825 clientGatewaysBuilder_.setMessage(index, value); 826 } 827 return this; 828 } 829 /** 830 * 831 * 832 * <pre> 833 * The list of ClientGateway. 834 * </pre> 835 * 836 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 837 * </code> 838 */ setClientGateways( int index, com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder builderForValue)839 public Builder setClientGateways( 840 int index, 841 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder builderForValue) { 842 if (clientGatewaysBuilder_ == null) { 843 ensureClientGatewaysIsMutable(); 844 clientGateways_.set(index, builderForValue.build()); 845 onChanged(); 846 } else { 847 clientGatewaysBuilder_.setMessage(index, builderForValue.build()); 848 } 849 return this; 850 } 851 /** 852 * 853 * 854 * <pre> 855 * The list of ClientGateway. 856 * </pre> 857 * 858 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 859 * </code> 860 */ addClientGateways( com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway value)861 public Builder addClientGateways( 862 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway value) { 863 if (clientGatewaysBuilder_ == null) { 864 if (value == null) { 865 throw new NullPointerException(); 866 } 867 ensureClientGatewaysIsMutable(); 868 clientGateways_.add(value); 869 onChanged(); 870 } else { 871 clientGatewaysBuilder_.addMessage(value); 872 } 873 return this; 874 } 875 /** 876 * 877 * 878 * <pre> 879 * The list of ClientGateway. 880 * </pre> 881 * 882 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 883 * </code> 884 */ addClientGateways( int index, com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway value)885 public Builder addClientGateways( 886 int index, com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway value) { 887 if (clientGatewaysBuilder_ == null) { 888 if (value == null) { 889 throw new NullPointerException(); 890 } 891 ensureClientGatewaysIsMutable(); 892 clientGateways_.add(index, value); 893 onChanged(); 894 } else { 895 clientGatewaysBuilder_.addMessage(index, value); 896 } 897 return this; 898 } 899 /** 900 * 901 * 902 * <pre> 903 * The list of ClientGateway. 904 * </pre> 905 * 906 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 907 * </code> 908 */ addClientGateways( com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder builderForValue)909 public Builder addClientGateways( 910 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder builderForValue) { 911 if (clientGatewaysBuilder_ == null) { 912 ensureClientGatewaysIsMutable(); 913 clientGateways_.add(builderForValue.build()); 914 onChanged(); 915 } else { 916 clientGatewaysBuilder_.addMessage(builderForValue.build()); 917 } 918 return this; 919 } 920 /** 921 * 922 * 923 * <pre> 924 * The list of ClientGateway. 925 * </pre> 926 * 927 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 928 * </code> 929 */ addClientGateways( int index, com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder builderForValue)930 public Builder addClientGateways( 931 int index, 932 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder builderForValue) { 933 if (clientGatewaysBuilder_ == null) { 934 ensureClientGatewaysIsMutable(); 935 clientGateways_.add(index, builderForValue.build()); 936 onChanged(); 937 } else { 938 clientGatewaysBuilder_.addMessage(index, builderForValue.build()); 939 } 940 return this; 941 } 942 /** 943 * 944 * 945 * <pre> 946 * The list of ClientGateway. 947 * </pre> 948 * 949 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 950 * </code> 951 */ addAllClientGateways( java.lang.Iterable<? extends com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway> values)952 public Builder addAllClientGateways( 953 java.lang.Iterable<? extends com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway> 954 values) { 955 if (clientGatewaysBuilder_ == null) { 956 ensureClientGatewaysIsMutable(); 957 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientGateways_); 958 onChanged(); 959 } else { 960 clientGatewaysBuilder_.addAllMessages(values); 961 } 962 return this; 963 } 964 /** 965 * 966 * 967 * <pre> 968 * The list of ClientGateway. 969 * </pre> 970 * 971 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 972 * </code> 973 */ clearClientGateways()974 public Builder clearClientGateways() { 975 if (clientGatewaysBuilder_ == null) { 976 clientGateways_ = java.util.Collections.emptyList(); 977 bitField0_ = (bitField0_ & ~0x00000001); 978 onChanged(); 979 } else { 980 clientGatewaysBuilder_.clear(); 981 } 982 return this; 983 } 984 /** 985 * 986 * 987 * <pre> 988 * The list of ClientGateway. 989 * </pre> 990 * 991 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 992 * </code> 993 */ removeClientGateways(int index)994 public Builder removeClientGateways(int index) { 995 if (clientGatewaysBuilder_ == null) { 996 ensureClientGatewaysIsMutable(); 997 clientGateways_.remove(index); 998 onChanged(); 999 } else { 1000 clientGatewaysBuilder_.remove(index); 1001 } 1002 return this; 1003 } 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * The list of ClientGateway. 1009 * </pre> 1010 * 1011 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 1012 * </code> 1013 */ 1014 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder getClientGatewaysBuilder(int index)1015 getClientGatewaysBuilder(int index) { 1016 return getClientGatewaysFieldBuilder().getBuilder(index); 1017 } 1018 /** 1019 * 1020 * 1021 * <pre> 1022 * The list of ClientGateway. 1023 * </pre> 1024 * 1025 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 1026 * </code> 1027 */ 1028 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder getClientGatewaysOrBuilder(int index)1029 getClientGatewaysOrBuilder(int index) { 1030 if (clientGatewaysBuilder_ == null) { 1031 return clientGateways_.get(index); 1032 } else { 1033 return clientGatewaysBuilder_.getMessageOrBuilder(index); 1034 } 1035 } 1036 /** 1037 * 1038 * 1039 * <pre> 1040 * The list of ClientGateway. 1041 * </pre> 1042 * 1043 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 1044 * </code> 1045 */ 1046 public java.util.List< 1047 ? extends com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder> getClientGatewaysOrBuilderList()1048 getClientGatewaysOrBuilderList() { 1049 if (clientGatewaysBuilder_ != null) { 1050 return clientGatewaysBuilder_.getMessageOrBuilderList(); 1051 } else { 1052 return java.util.Collections.unmodifiableList(clientGateways_); 1053 } 1054 } 1055 /** 1056 * 1057 * 1058 * <pre> 1059 * The list of ClientGateway. 1060 * </pre> 1061 * 1062 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 1063 * </code> 1064 */ 1065 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder addClientGatewaysBuilder()1066 addClientGatewaysBuilder() { 1067 return getClientGatewaysFieldBuilder() 1068 .addBuilder( 1069 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.getDefaultInstance()); 1070 } 1071 /** 1072 * 1073 * 1074 * <pre> 1075 * The list of ClientGateway. 1076 * </pre> 1077 * 1078 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 1079 * </code> 1080 */ 1081 public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder addClientGatewaysBuilder(int index)1082 addClientGatewaysBuilder(int index) { 1083 return getClientGatewaysFieldBuilder() 1084 .addBuilder( 1085 index, 1086 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.getDefaultInstance()); 1087 } 1088 /** 1089 * 1090 * 1091 * <pre> 1092 * The list of ClientGateway. 1093 * </pre> 1094 * 1095 * <code>repeated .google.cloud.beyondcorp.clientgateways.v1.ClientGateway client_gateways = 1; 1096 * </code> 1097 */ 1098 public java.util.List<com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder> getClientGatewaysBuilderList()1099 getClientGatewaysBuilderList() { 1100 return getClientGatewaysFieldBuilder().getBuilderList(); 1101 } 1102 1103 private com.google.protobuf.RepeatedFieldBuilderV3< 1104 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway, 1105 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder, 1106 com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder> getClientGatewaysFieldBuilder()1107 getClientGatewaysFieldBuilder() { 1108 if (clientGatewaysBuilder_ == null) { 1109 clientGatewaysBuilder_ = 1110 new com.google.protobuf.RepeatedFieldBuilderV3< 1111 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway, 1112 com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.Builder, 1113 com.google.cloud.beyondcorp.clientgateways.v1.ClientGatewayOrBuilder>( 1114 clientGateways_, 1115 ((bitField0_ & 0x00000001) != 0), 1116 getParentForChildren(), 1117 isClean()); 1118 clientGateways_ = null; 1119 } 1120 return clientGatewaysBuilder_; 1121 } 1122 1123 private java.lang.Object nextPageToken_ = ""; 1124 /** 1125 * 1126 * 1127 * <pre> 1128 * A token identifying a page of results the server should return. 1129 * </pre> 1130 * 1131 * <code>string next_page_token = 2;</code> 1132 * 1133 * @return The nextPageToken. 1134 */ getNextPageToken()1135 public java.lang.String getNextPageToken() { 1136 java.lang.Object ref = nextPageToken_; 1137 if (!(ref instanceof java.lang.String)) { 1138 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1139 java.lang.String s = bs.toStringUtf8(); 1140 nextPageToken_ = s; 1141 return s; 1142 } else { 1143 return (java.lang.String) ref; 1144 } 1145 } 1146 /** 1147 * 1148 * 1149 * <pre> 1150 * A token identifying a page of results the server should return. 1151 * </pre> 1152 * 1153 * <code>string next_page_token = 2;</code> 1154 * 1155 * @return The bytes for nextPageToken. 1156 */ getNextPageTokenBytes()1157 public com.google.protobuf.ByteString getNextPageTokenBytes() { 1158 java.lang.Object ref = nextPageToken_; 1159 if (ref instanceof String) { 1160 com.google.protobuf.ByteString b = 1161 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1162 nextPageToken_ = b; 1163 return b; 1164 } else { 1165 return (com.google.protobuf.ByteString) ref; 1166 } 1167 } 1168 /** 1169 * 1170 * 1171 * <pre> 1172 * A token identifying a page of results the server should return. 1173 * </pre> 1174 * 1175 * <code>string next_page_token = 2;</code> 1176 * 1177 * @param value The nextPageToken to set. 1178 * @return This builder for chaining. 1179 */ setNextPageToken(java.lang.String value)1180 public Builder setNextPageToken(java.lang.String value) { 1181 if (value == null) { 1182 throw new NullPointerException(); 1183 } 1184 nextPageToken_ = value; 1185 bitField0_ |= 0x00000002; 1186 onChanged(); 1187 return this; 1188 } 1189 /** 1190 * 1191 * 1192 * <pre> 1193 * A token identifying a page of results the server should return. 1194 * </pre> 1195 * 1196 * <code>string next_page_token = 2;</code> 1197 * 1198 * @return This builder for chaining. 1199 */ clearNextPageToken()1200 public Builder clearNextPageToken() { 1201 nextPageToken_ = getDefaultInstance().getNextPageToken(); 1202 bitField0_ = (bitField0_ & ~0x00000002); 1203 onChanged(); 1204 return this; 1205 } 1206 /** 1207 * 1208 * 1209 * <pre> 1210 * A token identifying a page of results the server should return. 1211 * </pre> 1212 * 1213 * <code>string next_page_token = 2;</code> 1214 * 1215 * @param value The bytes for nextPageToken to set. 1216 * @return This builder for chaining. 1217 */ setNextPageTokenBytes(com.google.protobuf.ByteString value)1218 public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 1219 if (value == null) { 1220 throw new NullPointerException(); 1221 } 1222 checkByteStringIsUtf8(value); 1223 nextPageToken_ = value; 1224 bitField0_ |= 0x00000002; 1225 onChanged(); 1226 return this; 1227 } 1228 1229 private com.google.protobuf.LazyStringList unreachable_ = 1230 com.google.protobuf.LazyStringArrayList.EMPTY; 1231 ensureUnreachableIsMutable()1232 private void ensureUnreachableIsMutable() { 1233 if (!((bitField0_ & 0x00000004) != 0)) { 1234 unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); 1235 bitField0_ |= 0x00000004; 1236 } 1237 } 1238 /** 1239 * 1240 * 1241 * <pre> 1242 * Locations that could not be reached. 1243 * </pre> 1244 * 1245 * <code>repeated string unreachable = 3;</code> 1246 * 1247 * @return A list containing the unreachable. 1248 */ getUnreachableList()1249 public com.google.protobuf.ProtocolStringList getUnreachableList() { 1250 return unreachable_.getUnmodifiableView(); 1251 } 1252 /** 1253 * 1254 * 1255 * <pre> 1256 * Locations that could not be reached. 1257 * </pre> 1258 * 1259 * <code>repeated string unreachable = 3;</code> 1260 * 1261 * @return The count of unreachable. 1262 */ getUnreachableCount()1263 public int getUnreachableCount() { 1264 return unreachable_.size(); 1265 } 1266 /** 1267 * 1268 * 1269 * <pre> 1270 * Locations that could not be reached. 1271 * </pre> 1272 * 1273 * <code>repeated string unreachable = 3;</code> 1274 * 1275 * @param index The index of the element to return. 1276 * @return The unreachable at the given index. 1277 */ getUnreachable(int index)1278 public java.lang.String getUnreachable(int index) { 1279 return unreachable_.get(index); 1280 } 1281 /** 1282 * 1283 * 1284 * <pre> 1285 * Locations that could not be reached. 1286 * </pre> 1287 * 1288 * <code>repeated string unreachable = 3;</code> 1289 * 1290 * @param index The index of the value to return. 1291 * @return The bytes of the unreachable at the given index. 1292 */ getUnreachableBytes(int index)1293 public com.google.protobuf.ByteString getUnreachableBytes(int index) { 1294 return unreachable_.getByteString(index); 1295 } 1296 /** 1297 * 1298 * 1299 * <pre> 1300 * Locations that could not be reached. 1301 * </pre> 1302 * 1303 * <code>repeated string unreachable = 3;</code> 1304 * 1305 * @param index The index to set the value at. 1306 * @param value The unreachable to set. 1307 * @return This builder for chaining. 1308 */ setUnreachable(int index, java.lang.String value)1309 public Builder setUnreachable(int index, java.lang.String value) { 1310 if (value == null) { 1311 throw new NullPointerException(); 1312 } 1313 ensureUnreachableIsMutable(); 1314 unreachable_.set(index, value); 1315 onChanged(); 1316 return this; 1317 } 1318 /** 1319 * 1320 * 1321 * <pre> 1322 * Locations that could not be reached. 1323 * </pre> 1324 * 1325 * <code>repeated string unreachable = 3;</code> 1326 * 1327 * @param value The unreachable to add. 1328 * @return This builder for chaining. 1329 */ addUnreachable(java.lang.String value)1330 public Builder addUnreachable(java.lang.String value) { 1331 if (value == null) { 1332 throw new NullPointerException(); 1333 } 1334 ensureUnreachableIsMutable(); 1335 unreachable_.add(value); 1336 onChanged(); 1337 return this; 1338 } 1339 /** 1340 * 1341 * 1342 * <pre> 1343 * Locations that could not be reached. 1344 * </pre> 1345 * 1346 * <code>repeated string unreachable = 3;</code> 1347 * 1348 * @param values The unreachable to add. 1349 * @return This builder for chaining. 1350 */ addAllUnreachable(java.lang.Iterable<java.lang.String> values)1351 public Builder addAllUnreachable(java.lang.Iterable<java.lang.String> values) { 1352 ensureUnreachableIsMutable(); 1353 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); 1354 onChanged(); 1355 return this; 1356 } 1357 /** 1358 * 1359 * 1360 * <pre> 1361 * Locations that could not be reached. 1362 * </pre> 1363 * 1364 * <code>repeated string unreachable = 3;</code> 1365 * 1366 * @return This builder for chaining. 1367 */ clearUnreachable()1368 public Builder clearUnreachable() { 1369 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1370 bitField0_ = (bitField0_ & ~0x00000004); 1371 onChanged(); 1372 return this; 1373 } 1374 /** 1375 * 1376 * 1377 * <pre> 1378 * Locations that could not be reached. 1379 * </pre> 1380 * 1381 * <code>repeated string unreachable = 3;</code> 1382 * 1383 * @param value The bytes of the unreachable to add. 1384 * @return This builder for chaining. 1385 */ addUnreachableBytes(com.google.protobuf.ByteString value)1386 public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { 1387 if (value == null) { 1388 throw new NullPointerException(); 1389 } 1390 checkByteStringIsUtf8(value); 1391 ensureUnreachableIsMutable(); 1392 unreachable_.add(value); 1393 onChanged(); 1394 return this; 1395 } 1396 1397 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1398 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1399 return super.setUnknownFields(unknownFields); 1400 } 1401 1402 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1403 public final Builder mergeUnknownFields( 1404 final com.google.protobuf.UnknownFieldSet unknownFields) { 1405 return super.mergeUnknownFields(unknownFields); 1406 } 1407 1408 // @@protoc_insertion_point(builder_scope:google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) 1409 } 1410 1411 // @@protoc_insertion_point(class_scope:google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse) 1412 private static final com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse 1413 DEFAULT_INSTANCE; 1414 1415 static { 1416 DEFAULT_INSTANCE = 1417 new com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse(); 1418 } 1419 1420 public static com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse getDefaultInstance()1421 getDefaultInstance() { 1422 return DEFAULT_INSTANCE; 1423 } 1424 1425 private static final com.google.protobuf.Parser<ListClientGatewaysResponse> PARSER = 1426 new com.google.protobuf.AbstractParser<ListClientGatewaysResponse>() { 1427 @java.lang.Override 1428 public ListClientGatewaysResponse parsePartialFrom( 1429 com.google.protobuf.CodedInputStream input, 1430 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1431 throws com.google.protobuf.InvalidProtocolBufferException { 1432 Builder builder = newBuilder(); 1433 try { 1434 builder.mergeFrom(input, extensionRegistry); 1435 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1436 throw e.setUnfinishedMessage(builder.buildPartial()); 1437 } catch (com.google.protobuf.UninitializedMessageException e) { 1438 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1439 } catch (java.io.IOException e) { 1440 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1441 .setUnfinishedMessage(builder.buildPartial()); 1442 } 1443 return builder.buildPartial(); 1444 } 1445 }; 1446 parser()1447 public static com.google.protobuf.Parser<ListClientGatewaysResponse> parser() { 1448 return PARSER; 1449 } 1450 1451 @java.lang.Override getParserForType()1452 public com.google.protobuf.Parser<ListClientGatewaysResponse> getParserForType() { 1453 return PARSER; 1454 } 1455 1456 @java.lang.Override 1457 public com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse getDefaultInstanceForType()1458 getDefaultInstanceForType() { 1459 return DEFAULT_INSTANCE; 1460 } 1461 } 1462