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