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