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