1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: grpc/testing/messages.proto 3 4 package io.grpc.testing.integration; 5 6 public final class Messages { 7 private Messages() {} 8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistryLite registry) { 10 } 11 12 public static void registerAllExtensions( 13 com.google.protobuf.ExtensionRegistry registry) { 14 registerAllExtensions( 15 (com.google.protobuf.ExtensionRegistryLite) registry); 16 } 17 /** 18 * <pre> 19 * DEPRECATED, don't use. To be removed shortly. 20 * The type of payload that should be returned. 21 * </pre> 22 * 23 * Protobuf enum {@code grpc.testing.PayloadType} 24 */ 25 public enum PayloadType 26 implements com.google.protobuf.ProtocolMessageEnum { 27 /** 28 * <pre> 29 * Compressable text format. 30 * </pre> 31 * 32 * <code>COMPRESSABLE = 0;</code> 33 */ 34 COMPRESSABLE(0), 35 /** 36 * <pre> 37 * Uncompressable binary format. 38 * </pre> 39 * 40 * <code>UNCOMPRESSABLE = 1;</code> 41 */ 42 UNCOMPRESSABLE(1), 43 /** 44 * <pre> 45 * Randomly chosen from all other formats defined in this enum. 46 * </pre> 47 * 48 * <code>RANDOM = 2;</code> 49 */ 50 RANDOM(2), 51 UNRECOGNIZED(-1), 52 ; 53 54 /** 55 * <pre> 56 * Compressable text format. 57 * </pre> 58 * 59 * <code>COMPRESSABLE = 0;</code> 60 */ 61 public static final int COMPRESSABLE_VALUE = 0; 62 /** 63 * <pre> 64 * Uncompressable binary format. 65 * </pre> 66 * 67 * <code>UNCOMPRESSABLE = 1;</code> 68 */ 69 public static final int UNCOMPRESSABLE_VALUE = 1; 70 /** 71 * <pre> 72 * Randomly chosen from all other formats defined in this enum. 73 * </pre> 74 * 75 * <code>RANDOM = 2;</code> 76 */ 77 public static final int RANDOM_VALUE = 2; 78 79 80 public final int getNumber() { 81 if (this == UNRECOGNIZED) { 82 throw new java.lang.IllegalArgumentException( 83 "Can't get the number of an unknown enum value."); 84 } 85 return value; 86 } 87 88 /** 89 * @deprecated Use {@link #forNumber(int)} instead. 90 */ 91 @java.lang.Deprecated 92 public static PayloadType valueOf(int value) { 93 return forNumber(value); 94 } 95 96 public static PayloadType forNumber(int value) { 97 switch (value) { 98 case 0: return COMPRESSABLE; 99 case 1: return UNCOMPRESSABLE; 100 case 2: return RANDOM; 101 default: return null; 102 } 103 } 104 105 public static com.google.protobuf.Internal.EnumLiteMap<PayloadType> 106 internalGetValueMap() { 107 return internalValueMap; 108 } 109 private static final com.google.protobuf.Internal.EnumLiteMap< 110 PayloadType> internalValueMap = 111 new com.google.protobuf.Internal.EnumLiteMap<PayloadType>() { 112 public PayloadType findValueByNumber(int number) { 113 return PayloadType.forNumber(number); 114 } 115 }; 116 117 public final com.google.protobuf.Descriptors.EnumValueDescriptor 118 getValueDescriptor() { 119 return getDescriptor().getValues().get(ordinal()); 120 } 121 public final com.google.protobuf.Descriptors.EnumDescriptor 122 getDescriptorForType() { 123 return getDescriptor(); 124 } 125 public static final com.google.protobuf.Descriptors.EnumDescriptor 126 getDescriptor() { 127 return io.grpc.testing.integration.Messages.getDescriptor().getEnumTypes().get(0); 128 } 129 130 private static final PayloadType[] VALUES = values(); 131 132 public static PayloadType valueOf( 133 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 134 if (desc.getType() != getDescriptor()) { 135 throw new java.lang.IllegalArgumentException( 136 "EnumValueDescriptor is not for this type."); 137 } 138 if (desc.getIndex() == -1) { 139 return UNRECOGNIZED; 140 } 141 return VALUES[desc.getIndex()]; 142 } 143 144 private final int value; 145 146 private PayloadType(int value) { 147 this.value = value; 148 } 149 150 // @@protoc_insertion_point(enum_scope:grpc.testing.PayloadType) 151 } 152 153 public interface PayloadOrBuilder extends 154 // @@protoc_insertion_point(interface_extends:grpc.testing.Payload) 155 com.google.protobuf.MessageOrBuilder { 156 157 /** 158 * <pre> 159 * DEPRECATED, don't use. To be removed shortly. 160 * The type of data in body. 161 * </pre> 162 * 163 * <code>.grpc.testing.PayloadType type = 1;</code> 164 */ 165 int getTypeValue(); 166 /** 167 * <pre> 168 * DEPRECATED, don't use. To be removed shortly. 169 * The type of data in body. 170 * </pre> 171 * 172 * <code>.grpc.testing.PayloadType type = 1;</code> 173 */ 174 io.grpc.testing.integration.Messages.PayloadType getType(); 175 176 /** 177 * <pre> 178 * Primary contents of payload. 179 * </pre> 180 * 181 * <code>bytes body = 2;</code> 182 */ 183 com.google.protobuf.ByteString getBody(); 184 } 185 /** 186 * <pre> 187 * A block of data, to simply increase gRPC message size. 188 * </pre> 189 * 190 * Protobuf type {@code grpc.testing.Payload} 191 */ 192 public static final class Payload extends 193 com.google.protobuf.GeneratedMessageV3 implements 194 // @@protoc_insertion_point(message_implements:grpc.testing.Payload) 195 PayloadOrBuilder { 196 private static final long serialVersionUID = 0L; 197 // Use Payload.newBuilder() to construct. 198 private Payload(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 199 super(builder); 200 } 201 private Payload() { 202 type_ = 0; 203 body_ = com.google.protobuf.ByteString.EMPTY; 204 } 205 206 @java.lang.Override 207 public final com.google.protobuf.UnknownFieldSet 208 getUnknownFields() { 209 return this.unknownFields; 210 } 211 private Payload( 212 com.google.protobuf.CodedInputStream input, 213 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 214 throws com.google.protobuf.InvalidProtocolBufferException { 215 this(); 216 if (extensionRegistry == null) { 217 throw new java.lang.NullPointerException(); 218 } 219 int mutable_bitField0_ = 0; 220 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 221 com.google.protobuf.UnknownFieldSet.newBuilder(); 222 try { 223 boolean done = false; 224 while (!done) { 225 int tag = input.readTag(); 226 switch (tag) { 227 case 0: 228 done = true; 229 break; 230 default: { 231 if (!parseUnknownFieldProto3( 232 input, unknownFields, extensionRegistry, tag)) { 233 done = true; 234 } 235 break; 236 } 237 case 8: { 238 int rawValue = input.readEnum(); 239 240 type_ = rawValue; 241 break; 242 } 243 case 18: { 244 245 body_ = input.readBytes(); 246 break; 247 } 248 } 249 } 250 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 251 throw e.setUnfinishedMessage(this); 252 } catch (java.io.IOException e) { 253 throw new com.google.protobuf.InvalidProtocolBufferException( 254 e).setUnfinishedMessage(this); 255 } finally { 256 this.unknownFields = unknownFields.build(); 257 makeExtensionsImmutable(); 258 } 259 } 260 public static final com.google.protobuf.Descriptors.Descriptor 261 getDescriptor() { 262 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_descriptor; 263 } 264 265 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 266 internalGetFieldAccessorTable() { 267 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable 268 .ensureFieldAccessorsInitialized( 269 io.grpc.testing.integration.Messages.Payload.class, io.grpc.testing.integration.Messages.Payload.Builder.class); 270 } 271 272 public static final int TYPE_FIELD_NUMBER = 1; 273 private int type_; 274 /** 275 * <pre> 276 * DEPRECATED, don't use. To be removed shortly. 277 * The type of data in body. 278 * </pre> 279 * 280 * <code>.grpc.testing.PayloadType type = 1;</code> 281 */ 282 public int getTypeValue() { 283 return type_; 284 } 285 /** 286 * <pre> 287 * DEPRECATED, don't use. To be removed shortly. 288 * The type of data in body. 289 * </pre> 290 * 291 * <code>.grpc.testing.PayloadType type = 1;</code> 292 */ 293 public io.grpc.testing.integration.Messages.PayloadType getType() { 294 io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_); 295 return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; 296 } 297 298 public static final int BODY_FIELD_NUMBER = 2; 299 private com.google.protobuf.ByteString body_; 300 /** 301 * <pre> 302 * Primary contents of payload. 303 * </pre> 304 * 305 * <code>bytes body = 2;</code> 306 */ 307 public com.google.protobuf.ByteString getBody() { 308 return body_; 309 } 310 311 private byte memoizedIsInitialized = -1; 312 public final boolean isInitialized() { 313 byte isInitialized = memoizedIsInitialized; 314 if (isInitialized == 1) return true; 315 if (isInitialized == 0) return false; 316 317 memoizedIsInitialized = 1; 318 return true; 319 } 320 321 public void writeTo(com.google.protobuf.CodedOutputStream output) 322 throws java.io.IOException { 323 if (type_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { 324 output.writeEnum(1, type_); 325 } 326 if (!body_.isEmpty()) { 327 output.writeBytes(2, body_); 328 } 329 unknownFields.writeTo(output); 330 } 331 332 public int getSerializedSize() { 333 int size = memoizedSize; 334 if (size != -1) return size; 335 336 size = 0; 337 if (type_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { 338 size += com.google.protobuf.CodedOutputStream 339 .computeEnumSize(1, type_); 340 } 341 if (!body_.isEmpty()) { 342 size += com.google.protobuf.CodedOutputStream 343 .computeBytesSize(2, body_); 344 } 345 size += unknownFields.getSerializedSize(); 346 memoizedSize = size; 347 return size; 348 } 349 350 @java.lang.Override 351 public boolean equals(final java.lang.Object obj) { 352 if (obj == this) { 353 return true; 354 } 355 if (!(obj instanceof io.grpc.testing.integration.Messages.Payload)) { 356 return super.equals(obj); 357 } 358 io.grpc.testing.integration.Messages.Payload other = (io.grpc.testing.integration.Messages.Payload) obj; 359 360 boolean result = true; 361 result = result && type_ == other.type_; 362 result = result && getBody() 363 .equals(other.getBody()); 364 result = result && unknownFields.equals(other.unknownFields); 365 return result; 366 } 367 368 @java.lang.Override 369 public int hashCode() { 370 if (memoizedHashCode != 0) { 371 return memoizedHashCode; 372 } 373 int hash = 41; 374 hash = (19 * hash) + getDescriptor().hashCode(); 375 hash = (37 * hash) + TYPE_FIELD_NUMBER; 376 hash = (53 * hash) + type_; 377 hash = (37 * hash) + BODY_FIELD_NUMBER; 378 hash = (53 * hash) + getBody().hashCode(); 379 hash = (29 * hash) + unknownFields.hashCode(); 380 memoizedHashCode = hash; 381 return hash; 382 } 383 384 public static io.grpc.testing.integration.Messages.Payload parseFrom( 385 java.nio.ByteBuffer data) 386 throws com.google.protobuf.InvalidProtocolBufferException { 387 return PARSER.parseFrom(data); 388 } 389 public static io.grpc.testing.integration.Messages.Payload parseFrom( 390 java.nio.ByteBuffer data, 391 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 392 throws com.google.protobuf.InvalidProtocolBufferException { 393 return PARSER.parseFrom(data, extensionRegistry); 394 } 395 public static io.grpc.testing.integration.Messages.Payload parseFrom( 396 com.google.protobuf.ByteString data) 397 throws com.google.protobuf.InvalidProtocolBufferException { 398 return PARSER.parseFrom(data); 399 } 400 public static io.grpc.testing.integration.Messages.Payload parseFrom( 401 com.google.protobuf.ByteString data, 402 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 403 throws com.google.protobuf.InvalidProtocolBufferException { 404 return PARSER.parseFrom(data, extensionRegistry); 405 } 406 public static io.grpc.testing.integration.Messages.Payload parseFrom(byte[] data) 407 throws com.google.protobuf.InvalidProtocolBufferException { 408 return PARSER.parseFrom(data); 409 } 410 public static io.grpc.testing.integration.Messages.Payload parseFrom( 411 byte[] data, 412 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 413 throws com.google.protobuf.InvalidProtocolBufferException { 414 return PARSER.parseFrom(data, extensionRegistry); 415 } 416 public static io.grpc.testing.integration.Messages.Payload parseFrom(java.io.InputStream input) 417 throws java.io.IOException { 418 return com.google.protobuf.GeneratedMessageV3 419 .parseWithIOException(PARSER, input); 420 } 421 public static io.grpc.testing.integration.Messages.Payload parseFrom( 422 java.io.InputStream input, 423 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 424 throws java.io.IOException { 425 return com.google.protobuf.GeneratedMessageV3 426 .parseWithIOException(PARSER, input, extensionRegistry); 427 } 428 public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom(java.io.InputStream input) 429 throws java.io.IOException { 430 return com.google.protobuf.GeneratedMessageV3 431 .parseDelimitedWithIOException(PARSER, input); 432 } 433 public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom( 434 java.io.InputStream input, 435 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 436 throws java.io.IOException { 437 return com.google.protobuf.GeneratedMessageV3 438 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 439 } 440 public static io.grpc.testing.integration.Messages.Payload parseFrom( 441 com.google.protobuf.CodedInputStream input) 442 throws java.io.IOException { 443 return com.google.protobuf.GeneratedMessageV3 444 .parseWithIOException(PARSER, input); 445 } 446 public static io.grpc.testing.integration.Messages.Payload parseFrom( 447 com.google.protobuf.CodedInputStream input, 448 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 449 throws java.io.IOException { 450 return com.google.protobuf.GeneratedMessageV3 451 .parseWithIOException(PARSER, input, extensionRegistry); 452 } 453 454 public Builder newBuilderForType() { return newBuilder(); } 455 public static Builder newBuilder() { 456 return DEFAULT_INSTANCE.toBuilder(); 457 } 458 public static Builder newBuilder(io.grpc.testing.integration.Messages.Payload prototype) { 459 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 460 } 461 public Builder toBuilder() { 462 return this == DEFAULT_INSTANCE 463 ? new Builder() : new Builder().mergeFrom(this); 464 } 465 466 @java.lang.Override 467 protected Builder newBuilderForType( 468 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 469 Builder builder = new Builder(parent); 470 return builder; 471 } 472 /** 473 * <pre> 474 * A block of data, to simply increase gRPC message size. 475 * </pre> 476 * 477 * Protobuf type {@code grpc.testing.Payload} 478 */ 479 public static final class Builder extends 480 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 481 // @@protoc_insertion_point(builder_implements:grpc.testing.Payload) 482 io.grpc.testing.integration.Messages.PayloadOrBuilder { 483 public static final com.google.protobuf.Descriptors.Descriptor 484 getDescriptor() { 485 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_descriptor; 486 } 487 488 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 489 internalGetFieldAccessorTable() { 490 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable 491 .ensureFieldAccessorsInitialized( 492 io.grpc.testing.integration.Messages.Payload.class, io.grpc.testing.integration.Messages.Payload.Builder.class); 493 } 494 495 // Construct using io.grpc.testing.integration.Messages.Payload.newBuilder() 496 private Builder() { 497 maybeForceBuilderInitialization(); 498 } 499 500 private Builder( 501 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 502 super(parent); 503 maybeForceBuilderInitialization(); 504 } 505 private void maybeForceBuilderInitialization() { 506 if (com.google.protobuf.GeneratedMessageV3 507 .alwaysUseFieldBuilders) { 508 } 509 } 510 public Builder clear() { 511 super.clear(); 512 type_ = 0; 513 514 body_ = com.google.protobuf.ByteString.EMPTY; 515 516 return this; 517 } 518 519 public com.google.protobuf.Descriptors.Descriptor 520 getDescriptorForType() { 521 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_descriptor; 522 } 523 524 public io.grpc.testing.integration.Messages.Payload getDefaultInstanceForType() { 525 return io.grpc.testing.integration.Messages.Payload.getDefaultInstance(); 526 } 527 528 public io.grpc.testing.integration.Messages.Payload build() { 529 io.grpc.testing.integration.Messages.Payload result = buildPartial(); 530 if (!result.isInitialized()) { 531 throw newUninitializedMessageException(result); 532 } 533 return result; 534 } 535 536 public io.grpc.testing.integration.Messages.Payload buildPartial() { 537 io.grpc.testing.integration.Messages.Payload result = new io.grpc.testing.integration.Messages.Payload(this); 538 result.type_ = type_; 539 result.body_ = body_; 540 onBuilt(); 541 return result; 542 } 543 544 public Builder clone() { 545 return (Builder) super.clone(); 546 } 547 public Builder setField( 548 com.google.protobuf.Descriptors.FieldDescriptor field, 549 java.lang.Object value) { 550 return (Builder) super.setField(field, value); 551 } 552 public Builder clearField( 553 com.google.protobuf.Descriptors.FieldDescriptor field) { 554 return (Builder) super.clearField(field); 555 } 556 public Builder clearOneof( 557 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 558 return (Builder) super.clearOneof(oneof); 559 } 560 public Builder setRepeatedField( 561 com.google.protobuf.Descriptors.FieldDescriptor field, 562 int index, java.lang.Object value) { 563 return (Builder) super.setRepeatedField(field, index, value); 564 } 565 public Builder addRepeatedField( 566 com.google.protobuf.Descriptors.FieldDescriptor field, 567 java.lang.Object value) { 568 return (Builder) super.addRepeatedField(field, value); 569 } 570 public Builder mergeFrom(com.google.protobuf.Message other) { 571 if (other instanceof io.grpc.testing.integration.Messages.Payload) { 572 return mergeFrom((io.grpc.testing.integration.Messages.Payload)other); 573 } else { 574 super.mergeFrom(other); 575 return this; 576 } 577 } 578 579 public Builder mergeFrom(io.grpc.testing.integration.Messages.Payload other) { 580 if (other == io.grpc.testing.integration.Messages.Payload.getDefaultInstance()) return this; 581 if (other.type_ != 0) { 582 setTypeValue(other.getTypeValue()); 583 } 584 if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { 585 setBody(other.getBody()); 586 } 587 this.mergeUnknownFields(other.unknownFields); 588 onChanged(); 589 return this; 590 } 591 592 public final boolean isInitialized() { 593 return true; 594 } 595 596 public Builder mergeFrom( 597 com.google.protobuf.CodedInputStream input, 598 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 599 throws java.io.IOException { 600 io.grpc.testing.integration.Messages.Payload parsedMessage = null; 601 try { 602 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 603 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 604 parsedMessage = (io.grpc.testing.integration.Messages.Payload) e.getUnfinishedMessage(); 605 throw e.unwrapIOException(); 606 } finally { 607 if (parsedMessage != null) { 608 mergeFrom(parsedMessage); 609 } 610 } 611 return this; 612 } 613 614 private int type_ = 0; 615 /** 616 * <pre> 617 * DEPRECATED, don't use. To be removed shortly. 618 * The type of data in body. 619 * </pre> 620 * 621 * <code>.grpc.testing.PayloadType type = 1;</code> 622 */ 623 public int getTypeValue() { 624 return type_; 625 } 626 /** 627 * <pre> 628 * DEPRECATED, don't use. To be removed shortly. 629 * The type of data in body. 630 * </pre> 631 * 632 * <code>.grpc.testing.PayloadType type = 1;</code> 633 */ 634 public Builder setTypeValue(int value) { 635 type_ = value; 636 onChanged(); 637 return this; 638 } 639 /** 640 * <pre> 641 * DEPRECATED, don't use. To be removed shortly. 642 * The type of data in body. 643 * </pre> 644 * 645 * <code>.grpc.testing.PayloadType type = 1;</code> 646 */ 647 public io.grpc.testing.integration.Messages.PayloadType getType() { 648 io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_); 649 return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; 650 } 651 /** 652 * <pre> 653 * DEPRECATED, don't use. To be removed shortly. 654 * The type of data in body. 655 * </pre> 656 * 657 * <code>.grpc.testing.PayloadType type = 1;</code> 658 */ 659 public Builder setType(io.grpc.testing.integration.Messages.PayloadType value) { 660 if (value == null) { 661 throw new NullPointerException(); 662 } 663 664 type_ = value.getNumber(); 665 onChanged(); 666 return this; 667 } 668 /** 669 * <pre> 670 * DEPRECATED, don't use. To be removed shortly. 671 * The type of data in body. 672 * </pre> 673 * 674 * <code>.grpc.testing.PayloadType type = 1;</code> 675 */ 676 public Builder clearType() { 677 678 type_ = 0; 679 onChanged(); 680 return this; 681 } 682 683 private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; 684 /** 685 * <pre> 686 * Primary contents of payload. 687 * </pre> 688 * 689 * <code>bytes body = 2;</code> 690 */ 691 public com.google.protobuf.ByteString getBody() { 692 return body_; 693 } 694 /** 695 * <pre> 696 * Primary contents of payload. 697 * </pre> 698 * 699 * <code>bytes body = 2;</code> 700 */ 701 public Builder setBody(com.google.protobuf.ByteString value) { 702 if (value == null) { 703 throw new NullPointerException(); 704 } 705 706 body_ = value; 707 onChanged(); 708 return this; 709 } 710 /** 711 * <pre> 712 * Primary contents of payload. 713 * </pre> 714 * 715 * <code>bytes body = 2;</code> 716 */ 717 public Builder clearBody() { 718 719 body_ = getDefaultInstance().getBody(); 720 onChanged(); 721 return this; 722 } 723 public final Builder setUnknownFields( 724 final com.google.protobuf.UnknownFieldSet unknownFields) { 725 return super.setUnknownFieldsProto3(unknownFields); 726 } 727 728 public final Builder mergeUnknownFields( 729 final com.google.protobuf.UnknownFieldSet unknownFields) { 730 return super.mergeUnknownFields(unknownFields); 731 } 732 733 734 // @@protoc_insertion_point(builder_scope:grpc.testing.Payload) 735 } 736 737 // @@protoc_insertion_point(class_scope:grpc.testing.Payload) 738 private static final io.grpc.testing.integration.Messages.Payload DEFAULT_INSTANCE; 739 static { 740 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.Payload(); 741 } 742 743 public static io.grpc.testing.integration.Messages.Payload getDefaultInstance() { 744 return DEFAULT_INSTANCE; 745 } 746 747 private static final com.google.protobuf.Parser<Payload> 748 PARSER = new com.google.protobuf.AbstractParser<Payload>() { 749 public Payload parsePartialFrom( 750 com.google.protobuf.CodedInputStream input, 751 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 752 throws com.google.protobuf.InvalidProtocolBufferException { 753 return new Payload(input, extensionRegistry); 754 } 755 }; 756 757 public static com.google.protobuf.Parser<Payload> parser() { 758 return PARSER; 759 } 760 761 @java.lang.Override 762 public com.google.protobuf.Parser<Payload> getParserForType() { 763 return PARSER; 764 } 765 766 public io.grpc.testing.integration.Messages.Payload getDefaultInstanceForType() { 767 return DEFAULT_INSTANCE; 768 } 769 770 } 771 772 public interface EchoStatusOrBuilder extends 773 // @@protoc_insertion_point(interface_extends:grpc.testing.EchoStatus) 774 com.google.protobuf.MessageOrBuilder { 775 776 /** 777 * <code>int32 code = 1;</code> 778 */ 779 int getCode(); 780 781 /** 782 * <code>string message = 2;</code> 783 */ 784 java.lang.String getMessage(); 785 /** 786 * <code>string message = 2;</code> 787 */ 788 com.google.protobuf.ByteString 789 getMessageBytes(); 790 } 791 /** 792 * <pre> 793 * A protobuf representation for grpc status. This is used by test 794 * clients to specify a status that the server should attempt to return. 795 * </pre> 796 * 797 * Protobuf type {@code grpc.testing.EchoStatus} 798 */ 799 public static final class EchoStatus extends 800 com.google.protobuf.GeneratedMessageV3 implements 801 // @@protoc_insertion_point(message_implements:grpc.testing.EchoStatus) 802 EchoStatusOrBuilder { 803 private static final long serialVersionUID = 0L; 804 // Use EchoStatus.newBuilder() to construct. 805 private EchoStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 806 super(builder); 807 } 808 private EchoStatus() { 809 code_ = 0; 810 message_ = ""; 811 } 812 813 @java.lang.Override 814 public final com.google.protobuf.UnknownFieldSet 815 getUnknownFields() { 816 return this.unknownFields; 817 } 818 private EchoStatus( 819 com.google.protobuf.CodedInputStream input, 820 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 821 throws com.google.protobuf.InvalidProtocolBufferException { 822 this(); 823 if (extensionRegistry == null) { 824 throw new java.lang.NullPointerException(); 825 } 826 int mutable_bitField0_ = 0; 827 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 828 com.google.protobuf.UnknownFieldSet.newBuilder(); 829 try { 830 boolean done = false; 831 while (!done) { 832 int tag = input.readTag(); 833 switch (tag) { 834 case 0: 835 done = true; 836 break; 837 default: { 838 if (!parseUnknownFieldProto3( 839 input, unknownFields, extensionRegistry, tag)) { 840 done = true; 841 } 842 break; 843 } 844 case 8: { 845 846 code_ = input.readInt32(); 847 break; 848 } 849 case 18: { 850 java.lang.String s = input.readStringRequireUtf8(); 851 852 message_ = s; 853 break; 854 } 855 } 856 } 857 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 858 throw e.setUnfinishedMessage(this); 859 } catch (java.io.IOException e) { 860 throw new com.google.protobuf.InvalidProtocolBufferException( 861 e).setUnfinishedMessage(this); 862 } finally { 863 this.unknownFields = unknownFields.build(); 864 makeExtensionsImmutable(); 865 } 866 } 867 public static final com.google.protobuf.Descriptors.Descriptor 868 getDescriptor() { 869 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_descriptor; 870 } 871 872 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 873 internalGetFieldAccessorTable() { 874 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable 875 .ensureFieldAccessorsInitialized( 876 io.grpc.testing.integration.Messages.EchoStatus.class, io.grpc.testing.integration.Messages.EchoStatus.Builder.class); 877 } 878 879 public static final int CODE_FIELD_NUMBER = 1; 880 private int code_; 881 /** 882 * <code>int32 code = 1;</code> 883 */ 884 public int getCode() { 885 return code_; 886 } 887 888 public static final int MESSAGE_FIELD_NUMBER = 2; 889 private volatile java.lang.Object message_; 890 /** 891 * <code>string message = 2;</code> 892 */ 893 public java.lang.String getMessage() { 894 java.lang.Object ref = message_; 895 if (ref instanceof java.lang.String) { 896 return (java.lang.String) ref; 897 } else { 898 com.google.protobuf.ByteString bs = 899 (com.google.protobuf.ByteString) ref; 900 java.lang.String s = bs.toStringUtf8(); 901 message_ = s; 902 return s; 903 } 904 } 905 /** 906 * <code>string message = 2;</code> 907 */ 908 public com.google.protobuf.ByteString 909 getMessageBytes() { 910 java.lang.Object ref = message_; 911 if (ref instanceof java.lang.String) { 912 com.google.protobuf.ByteString b = 913 com.google.protobuf.ByteString.copyFromUtf8( 914 (java.lang.String) ref); 915 message_ = b; 916 return b; 917 } else { 918 return (com.google.protobuf.ByteString) ref; 919 } 920 } 921 922 private byte memoizedIsInitialized = -1; 923 public final boolean isInitialized() { 924 byte isInitialized = memoizedIsInitialized; 925 if (isInitialized == 1) return true; 926 if (isInitialized == 0) return false; 927 928 memoizedIsInitialized = 1; 929 return true; 930 } 931 932 public void writeTo(com.google.protobuf.CodedOutputStream output) 933 throws java.io.IOException { 934 if (code_ != 0) { 935 output.writeInt32(1, code_); 936 } 937 if (!getMessageBytes().isEmpty()) { 938 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); 939 } 940 unknownFields.writeTo(output); 941 } 942 943 public int getSerializedSize() { 944 int size = memoizedSize; 945 if (size != -1) return size; 946 947 size = 0; 948 if (code_ != 0) { 949 size += com.google.protobuf.CodedOutputStream 950 .computeInt32Size(1, code_); 951 } 952 if (!getMessageBytes().isEmpty()) { 953 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); 954 } 955 size += unknownFields.getSerializedSize(); 956 memoizedSize = size; 957 return size; 958 } 959 960 @java.lang.Override 961 public boolean equals(final java.lang.Object obj) { 962 if (obj == this) { 963 return true; 964 } 965 if (!(obj instanceof io.grpc.testing.integration.Messages.EchoStatus)) { 966 return super.equals(obj); 967 } 968 io.grpc.testing.integration.Messages.EchoStatus other = (io.grpc.testing.integration.Messages.EchoStatus) obj; 969 970 boolean result = true; 971 result = result && (getCode() 972 == other.getCode()); 973 result = result && getMessage() 974 .equals(other.getMessage()); 975 result = result && unknownFields.equals(other.unknownFields); 976 return result; 977 } 978 979 @java.lang.Override 980 public int hashCode() { 981 if (memoizedHashCode != 0) { 982 return memoizedHashCode; 983 } 984 int hash = 41; 985 hash = (19 * hash) + getDescriptor().hashCode(); 986 hash = (37 * hash) + CODE_FIELD_NUMBER; 987 hash = (53 * hash) + getCode(); 988 hash = (37 * hash) + MESSAGE_FIELD_NUMBER; 989 hash = (53 * hash) + getMessage().hashCode(); 990 hash = (29 * hash) + unknownFields.hashCode(); 991 memoizedHashCode = hash; 992 return hash; 993 } 994 995 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 996 java.nio.ByteBuffer data) 997 throws com.google.protobuf.InvalidProtocolBufferException { 998 return PARSER.parseFrom(data); 999 } 1000 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1001 java.nio.ByteBuffer data, 1002 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1003 throws com.google.protobuf.InvalidProtocolBufferException { 1004 return PARSER.parseFrom(data, extensionRegistry); 1005 } 1006 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1007 com.google.protobuf.ByteString data) 1008 throws com.google.protobuf.InvalidProtocolBufferException { 1009 return PARSER.parseFrom(data); 1010 } 1011 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1012 com.google.protobuf.ByteString data, 1013 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1014 throws com.google.protobuf.InvalidProtocolBufferException { 1015 return PARSER.parseFrom(data, extensionRegistry); 1016 } 1017 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(byte[] data) 1018 throws com.google.protobuf.InvalidProtocolBufferException { 1019 return PARSER.parseFrom(data); 1020 } 1021 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1022 byte[] data, 1023 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1024 throws com.google.protobuf.InvalidProtocolBufferException { 1025 return PARSER.parseFrom(data, extensionRegistry); 1026 } 1027 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(java.io.InputStream input) 1028 throws java.io.IOException { 1029 return com.google.protobuf.GeneratedMessageV3 1030 .parseWithIOException(PARSER, input); 1031 } 1032 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1033 java.io.InputStream input, 1034 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1035 throws java.io.IOException { 1036 return com.google.protobuf.GeneratedMessageV3 1037 .parseWithIOException(PARSER, input, extensionRegistry); 1038 } 1039 public static io.grpc.testing.integration.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input) 1040 throws java.io.IOException { 1041 return com.google.protobuf.GeneratedMessageV3 1042 .parseDelimitedWithIOException(PARSER, input); 1043 } 1044 public static io.grpc.testing.integration.Messages.EchoStatus parseDelimitedFrom( 1045 java.io.InputStream input, 1046 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1047 throws java.io.IOException { 1048 return com.google.protobuf.GeneratedMessageV3 1049 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 1050 } 1051 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1052 com.google.protobuf.CodedInputStream input) 1053 throws java.io.IOException { 1054 return com.google.protobuf.GeneratedMessageV3 1055 .parseWithIOException(PARSER, input); 1056 } 1057 public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( 1058 com.google.protobuf.CodedInputStream input, 1059 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1060 throws java.io.IOException { 1061 return com.google.protobuf.GeneratedMessageV3 1062 .parseWithIOException(PARSER, input, extensionRegistry); 1063 } 1064 1065 public Builder newBuilderForType() { return newBuilder(); } 1066 public static Builder newBuilder() { 1067 return DEFAULT_INSTANCE.toBuilder(); 1068 } 1069 public static Builder newBuilder(io.grpc.testing.integration.Messages.EchoStatus prototype) { 1070 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1071 } 1072 public Builder toBuilder() { 1073 return this == DEFAULT_INSTANCE 1074 ? new Builder() : new Builder().mergeFrom(this); 1075 } 1076 1077 @java.lang.Override 1078 protected Builder newBuilderForType( 1079 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1080 Builder builder = new Builder(parent); 1081 return builder; 1082 } 1083 /** 1084 * <pre> 1085 * A protobuf representation for grpc status. This is used by test 1086 * clients to specify a status that the server should attempt to return. 1087 * </pre> 1088 * 1089 * Protobuf type {@code grpc.testing.EchoStatus} 1090 */ 1091 public static final class Builder extends 1092 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 1093 // @@protoc_insertion_point(builder_implements:grpc.testing.EchoStatus) 1094 io.grpc.testing.integration.Messages.EchoStatusOrBuilder { 1095 public static final com.google.protobuf.Descriptors.Descriptor 1096 getDescriptor() { 1097 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_descriptor; 1098 } 1099 1100 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1101 internalGetFieldAccessorTable() { 1102 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable 1103 .ensureFieldAccessorsInitialized( 1104 io.grpc.testing.integration.Messages.EchoStatus.class, io.grpc.testing.integration.Messages.EchoStatus.Builder.class); 1105 } 1106 1107 // Construct using io.grpc.testing.integration.Messages.EchoStatus.newBuilder() 1108 private Builder() { 1109 maybeForceBuilderInitialization(); 1110 } 1111 1112 private Builder( 1113 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1114 super(parent); 1115 maybeForceBuilderInitialization(); 1116 } 1117 private void maybeForceBuilderInitialization() { 1118 if (com.google.protobuf.GeneratedMessageV3 1119 .alwaysUseFieldBuilders) { 1120 } 1121 } 1122 public Builder clear() { 1123 super.clear(); 1124 code_ = 0; 1125 1126 message_ = ""; 1127 1128 return this; 1129 } 1130 1131 public com.google.protobuf.Descriptors.Descriptor 1132 getDescriptorForType() { 1133 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_descriptor; 1134 } 1135 1136 public io.grpc.testing.integration.Messages.EchoStatus getDefaultInstanceForType() { 1137 return io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance(); 1138 } 1139 1140 public io.grpc.testing.integration.Messages.EchoStatus build() { 1141 io.grpc.testing.integration.Messages.EchoStatus result = buildPartial(); 1142 if (!result.isInitialized()) { 1143 throw newUninitializedMessageException(result); 1144 } 1145 return result; 1146 } 1147 1148 public io.grpc.testing.integration.Messages.EchoStatus buildPartial() { 1149 io.grpc.testing.integration.Messages.EchoStatus result = new io.grpc.testing.integration.Messages.EchoStatus(this); 1150 result.code_ = code_; 1151 result.message_ = message_; 1152 onBuilt(); 1153 return result; 1154 } 1155 1156 public Builder clone() { 1157 return (Builder) super.clone(); 1158 } 1159 public Builder setField( 1160 com.google.protobuf.Descriptors.FieldDescriptor field, 1161 java.lang.Object value) { 1162 return (Builder) super.setField(field, value); 1163 } 1164 public Builder clearField( 1165 com.google.protobuf.Descriptors.FieldDescriptor field) { 1166 return (Builder) super.clearField(field); 1167 } 1168 public Builder clearOneof( 1169 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1170 return (Builder) super.clearOneof(oneof); 1171 } 1172 public Builder setRepeatedField( 1173 com.google.protobuf.Descriptors.FieldDescriptor field, 1174 int index, java.lang.Object value) { 1175 return (Builder) super.setRepeatedField(field, index, value); 1176 } 1177 public Builder addRepeatedField( 1178 com.google.protobuf.Descriptors.FieldDescriptor field, 1179 java.lang.Object value) { 1180 return (Builder) super.addRepeatedField(field, value); 1181 } 1182 public Builder mergeFrom(com.google.protobuf.Message other) { 1183 if (other instanceof io.grpc.testing.integration.Messages.EchoStatus) { 1184 return mergeFrom((io.grpc.testing.integration.Messages.EchoStatus)other); 1185 } else { 1186 super.mergeFrom(other); 1187 return this; 1188 } 1189 } 1190 1191 public Builder mergeFrom(io.grpc.testing.integration.Messages.EchoStatus other) { 1192 if (other == io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance()) return this; 1193 if (other.getCode() != 0) { 1194 setCode(other.getCode()); 1195 } 1196 if (!other.getMessage().isEmpty()) { 1197 message_ = other.message_; 1198 onChanged(); 1199 } 1200 this.mergeUnknownFields(other.unknownFields); 1201 onChanged(); 1202 return this; 1203 } 1204 1205 public final boolean isInitialized() { 1206 return true; 1207 } 1208 1209 public Builder mergeFrom( 1210 com.google.protobuf.CodedInputStream input, 1211 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1212 throws java.io.IOException { 1213 io.grpc.testing.integration.Messages.EchoStatus parsedMessage = null; 1214 try { 1215 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1216 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1217 parsedMessage = (io.grpc.testing.integration.Messages.EchoStatus) e.getUnfinishedMessage(); 1218 throw e.unwrapIOException(); 1219 } finally { 1220 if (parsedMessage != null) { 1221 mergeFrom(parsedMessage); 1222 } 1223 } 1224 return this; 1225 } 1226 1227 private int code_ ; 1228 /** 1229 * <code>int32 code = 1;</code> 1230 */ 1231 public int getCode() { 1232 return code_; 1233 } 1234 /** 1235 * <code>int32 code = 1;</code> 1236 */ 1237 public Builder setCode(int value) { 1238 1239 code_ = value; 1240 onChanged(); 1241 return this; 1242 } 1243 /** 1244 * <code>int32 code = 1;</code> 1245 */ 1246 public Builder clearCode() { 1247 1248 code_ = 0; 1249 onChanged(); 1250 return this; 1251 } 1252 1253 private java.lang.Object message_ = ""; 1254 /** 1255 * <code>string message = 2;</code> 1256 */ 1257 public java.lang.String getMessage() { 1258 java.lang.Object ref = message_; 1259 if (!(ref instanceof java.lang.String)) { 1260 com.google.protobuf.ByteString bs = 1261 (com.google.protobuf.ByteString) ref; 1262 java.lang.String s = bs.toStringUtf8(); 1263 message_ = s; 1264 return s; 1265 } else { 1266 return (java.lang.String) ref; 1267 } 1268 } 1269 /** 1270 * <code>string message = 2;</code> 1271 */ 1272 public com.google.protobuf.ByteString 1273 getMessageBytes() { 1274 java.lang.Object ref = message_; 1275 if (ref instanceof String) { 1276 com.google.protobuf.ByteString b = 1277 com.google.protobuf.ByteString.copyFromUtf8( 1278 (java.lang.String) ref); 1279 message_ = b; 1280 return b; 1281 } else { 1282 return (com.google.protobuf.ByteString) ref; 1283 } 1284 } 1285 /** 1286 * <code>string message = 2;</code> 1287 */ 1288 public Builder setMessage( 1289 java.lang.String value) { 1290 if (value == null) { 1291 throw new NullPointerException(); 1292 } 1293 1294 message_ = value; 1295 onChanged(); 1296 return this; 1297 } 1298 /** 1299 * <code>string message = 2;</code> 1300 */ 1301 public Builder clearMessage() { 1302 1303 message_ = getDefaultInstance().getMessage(); 1304 onChanged(); 1305 return this; 1306 } 1307 /** 1308 * <code>string message = 2;</code> 1309 */ 1310 public Builder setMessageBytes( 1311 com.google.protobuf.ByteString value) { 1312 if (value == null) { 1313 throw new NullPointerException(); 1314 } 1315 checkByteStringIsUtf8(value); 1316 1317 message_ = value; 1318 onChanged(); 1319 return this; 1320 } 1321 public final Builder setUnknownFields( 1322 final com.google.protobuf.UnknownFieldSet unknownFields) { 1323 return super.setUnknownFieldsProto3(unknownFields); 1324 } 1325 1326 public final Builder mergeUnknownFields( 1327 final com.google.protobuf.UnknownFieldSet unknownFields) { 1328 return super.mergeUnknownFields(unknownFields); 1329 } 1330 1331 1332 // @@protoc_insertion_point(builder_scope:grpc.testing.EchoStatus) 1333 } 1334 1335 // @@protoc_insertion_point(class_scope:grpc.testing.EchoStatus) 1336 private static final io.grpc.testing.integration.Messages.EchoStatus DEFAULT_INSTANCE; 1337 static { 1338 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.EchoStatus(); 1339 } 1340 1341 public static io.grpc.testing.integration.Messages.EchoStatus getDefaultInstance() { 1342 return DEFAULT_INSTANCE; 1343 } 1344 1345 private static final com.google.protobuf.Parser<EchoStatus> 1346 PARSER = new com.google.protobuf.AbstractParser<EchoStatus>() { 1347 public EchoStatus parsePartialFrom( 1348 com.google.protobuf.CodedInputStream input, 1349 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1350 throws com.google.protobuf.InvalidProtocolBufferException { 1351 return new EchoStatus(input, extensionRegistry); 1352 } 1353 }; 1354 1355 public static com.google.protobuf.Parser<EchoStatus> parser() { 1356 return PARSER; 1357 } 1358 1359 @java.lang.Override 1360 public com.google.protobuf.Parser<EchoStatus> getParserForType() { 1361 return PARSER; 1362 } 1363 1364 public io.grpc.testing.integration.Messages.EchoStatus getDefaultInstanceForType() { 1365 return DEFAULT_INSTANCE; 1366 } 1367 1368 } 1369 1370 public interface SimpleRequestOrBuilder extends 1371 // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleRequest) 1372 com.google.protobuf.MessageOrBuilder { 1373 1374 /** 1375 * <pre> 1376 * DEPRECATED, don't use. To be removed shortly. 1377 * Desired payload type in the response from the server. 1378 * If response_type is RANDOM, server randomly chooses one from other formats. 1379 * </pre> 1380 * 1381 * <code>.grpc.testing.PayloadType response_type = 1;</code> 1382 */ 1383 int getResponseTypeValue(); 1384 /** 1385 * <pre> 1386 * DEPRECATED, don't use. To be removed shortly. 1387 * Desired payload type in the response from the server. 1388 * If response_type is RANDOM, server randomly chooses one from other formats. 1389 * </pre> 1390 * 1391 * <code>.grpc.testing.PayloadType response_type = 1;</code> 1392 */ 1393 io.grpc.testing.integration.Messages.PayloadType getResponseType(); 1394 1395 /** 1396 * <pre> 1397 * Desired payload size in the response from the server. 1398 * </pre> 1399 * 1400 * <code>int32 response_size = 2;</code> 1401 */ 1402 int getResponseSize(); 1403 1404 /** 1405 * <pre> 1406 * Optional input payload sent along with the request. 1407 * </pre> 1408 * 1409 * <code>.grpc.testing.Payload payload = 3;</code> 1410 */ 1411 boolean hasPayload(); 1412 /** 1413 * <pre> 1414 * Optional input payload sent along with the request. 1415 * </pre> 1416 * 1417 * <code>.grpc.testing.Payload payload = 3;</code> 1418 */ 1419 io.grpc.testing.integration.Messages.Payload getPayload(); 1420 /** 1421 * <pre> 1422 * Optional input payload sent along with the request. 1423 * </pre> 1424 * 1425 * <code>.grpc.testing.Payload payload = 3;</code> 1426 */ 1427 io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); 1428 1429 /** 1430 * <pre> 1431 * Whether SimpleResponse should include username. 1432 * </pre> 1433 * 1434 * <code>bool fill_username = 4;</code> 1435 */ 1436 boolean getFillUsername(); 1437 1438 /** 1439 * <pre> 1440 * Whether SimpleResponse should include OAuth scope. 1441 * </pre> 1442 * 1443 * <code>bool fill_oauth_scope = 5;</code> 1444 */ 1445 boolean getFillOauthScope(); 1446 1447 /** 1448 * <pre> 1449 * Whether to request the server to compress the response. This field is 1450 * "nullable" in order to interoperate seamlessly with clients not able to 1451 * implement the full compression tests by introspecting the call to verify 1452 * the response's compression status. 1453 * </pre> 1454 * 1455 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 1456 */ 1457 boolean hasResponseCompressed(); 1458 /** 1459 * <pre> 1460 * Whether to request the server to compress the response. This field is 1461 * "nullable" in order to interoperate seamlessly with clients not able to 1462 * implement the full compression tests by introspecting the call to verify 1463 * the response's compression status. 1464 * </pre> 1465 * 1466 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 1467 */ 1468 com.google.protobuf.BoolValue getResponseCompressed(); 1469 /** 1470 * <pre> 1471 * Whether to request the server to compress the response. This field is 1472 * "nullable" in order to interoperate seamlessly with clients not able to 1473 * implement the full compression tests by introspecting the call to verify 1474 * the response's compression status. 1475 * </pre> 1476 * 1477 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 1478 */ 1479 com.google.protobuf.BoolValueOrBuilder getResponseCompressedOrBuilder(); 1480 1481 /** 1482 * <pre> 1483 * Whether server should return a given status 1484 * </pre> 1485 * 1486 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 1487 */ 1488 boolean hasResponseStatus(); 1489 /** 1490 * <pre> 1491 * Whether server should return a given status 1492 * </pre> 1493 * 1494 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 1495 */ 1496 io.grpc.testing.integration.Messages.EchoStatus getResponseStatus(); 1497 /** 1498 * <pre> 1499 * Whether server should return a given status 1500 * </pre> 1501 * 1502 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 1503 */ 1504 io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); 1505 1506 /** 1507 * <pre> 1508 * Whether the server should expect this request to be compressed. 1509 * </pre> 1510 * 1511 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 1512 */ 1513 boolean hasExpectCompressed(); 1514 /** 1515 * <pre> 1516 * Whether the server should expect this request to be compressed. 1517 * </pre> 1518 * 1519 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 1520 */ 1521 com.google.protobuf.BoolValue getExpectCompressed(); 1522 /** 1523 * <pre> 1524 * Whether the server should expect this request to be compressed. 1525 * </pre> 1526 * 1527 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 1528 */ 1529 com.google.protobuf.BoolValueOrBuilder getExpectCompressedOrBuilder(); 1530 } 1531 /** 1532 * <pre> 1533 * Unary request. 1534 * </pre> 1535 * 1536 * Protobuf type {@code grpc.testing.SimpleRequest} 1537 */ 1538 public static final class SimpleRequest extends 1539 com.google.protobuf.GeneratedMessageV3 implements 1540 // @@protoc_insertion_point(message_implements:grpc.testing.SimpleRequest) 1541 SimpleRequestOrBuilder { 1542 private static final long serialVersionUID = 0L; 1543 // Use SimpleRequest.newBuilder() to construct. 1544 private SimpleRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1545 super(builder); 1546 } 1547 private SimpleRequest() { 1548 responseType_ = 0; 1549 responseSize_ = 0; 1550 fillUsername_ = false; 1551 fillOauthScope_ = false; 1552 } 1553 1554 @java.lang.Override 1555 public final com.google.protobuf.UnknownFieldSet 1556 getUnknownFields() { 1557 return this.unknownFields; 1558 } 1559 private SimpleRequest( 1560 com.google.protobuf.CodedInputStream input, 1561 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1562 throws com.google.protobuf.InvalidProtocolBufferException { 1563 this(); 1564 if (extensionRegistry == null) { 1565 throw new java.lang.NullPointerException(); 1566 } 1567 int mutable_bitField0_ = 0; 1568 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1569 com.google.protobuf.UnknownFieldSet.newBuilder(); 1570 try { 1571 boolean done = false; 1572 while (!done) { 1573 int tag = input.readTag(); 1574 switch (tag) { 1575 case 0: 1576 done = true; 1577 break; 1578 default: { 1579 if (!parseUnknownFieldProto3( 1580 input, unknownFields, extensionRegistry, tag)) { 1581 done = true; 1582 } 1583 break; 1584 } 1585 case 8: { 1586 int rawValue = input.readEnum(); 1587 1588 responseType_ = rawValue; 1589 break; 1590 } 1591 case 16: { 1592 1593 responseSize_ = input.readInt32(); 1594 break; 1595 } 1596 case 26: { 1597 io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; 1598 if (payload_ != null) { 1599 subBuilder = payload_.toBuilder(); 1600 } 1601 payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.parser(), extensionRegistry); 1602 if (subBuilder != null) { 1603 subBuilder.mergeFrom(payload_); 1604 payload_ = subBuilder.buildPartial(); 1605 } 1606 1607 break; 1608 } 1609 case 32: { 1610 1611 fillUsername_ = input.readBool(); 1612 break; 1613 } 1614 case 40: { 1615 1616 fillOauthScope_ = input.readBool(); 1617 break; 1618 } 1619 case 50: { 1620 com.google.protobuf.BoolValue.Builder subBuilder = null; 1621 if (responseCompressed_ != null) { 1622 subBuilder = responseCompressed_.toBuilder(); 1623 } 1624 responseCompressed_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); 1625 if (subBuilder != null) { 1626 subBuilder.mergeFrom(responseCompressed_); 1627 responseCompressed_ = subBuilder.buildPartial(); 1628 } 1629 1630 break; 1631 } 1632 case 58: { 1633 io.grpc.testing.integration.Messages.EchoStatus.Builder subBuilder = null; 1634 if (responseStatus_ != null) { 1635 subBuilder = responseStatus_.toBuilder(); 1636 } 1637 responseStatus_ = input.readMessage(io.grpc.testing.integration.Messages.EchoStatus.parser(), extensionRegistry); 1638 if (subBuilder != null) { 1639 subBuilder.mergeFrom(responseStatus_); 1640 responseStatus_ = subBuilder.buildPartial(); 1641 } 1642 1643 break; 1644 } 1645 case 66: { 1646 com.google.protobuf.BoolValue.Builder subBuilder = null; 1647 if (expectCompressed_ != null) { 1648 subBuilder = expectCompressed_.toBuilder(); 1649 } 1650 expectCompressed_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); 1651 if (subBuilder != null) { 1652 subBuilder.mergeFrom(expectCompressed_); 1653 expectCompressed_ = subBuilder.buildPartial(); 1654 } 1655 1656 break; 1657 } 1658 } 1659 } 1660 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1661 throw e.setUnfinishedMessage(this); 1662 } catch (java.io.IOException e) { 1663 throw new com.google.protobuf.InvalidProtocolBufferException( 1664 e).setUnfinishedMessage(this); 1665 } finally { 1666 this.unknownFields = unknownFields.build(); 1667 makeExtensionsImmutable(); 1668 } 1669 } 1670 public static final com.google.protobuf.Descriptors.Descriptor 1671 getDescriptor() { 1672 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; 1673 } 1674 1675 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1676 internalGetFieldAccessorTable() { 1677 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable 1678 .ensureFieldAccessorsInitialized( 1679 io.grpc.testing.integration.Messages.SimpleRequest.class, io.grpc.testing.integration.Messages.SimpleRequest.Builder.class); 1680 } 1681 1682 public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; 1683 private int responseType_; 1684 /** 1685 * <pre> 1686 * DEPRECATED, don't use. To be removed shortly. 1687 * Desired payload type in the response from the server. 1688 * If response_type is RANDOM, server randomly chooses one from other formats. 1689 * </pre> 1690 * 1691 * <code>.grpc.testing.PayloadType response_type = 1;</code> 1692 */ 1693 public int getResponseTypeValue() { 1694 return responseType_; 1695 } 1696 /** 1697 * <pre> 1698 * DEPRECATED, don't use. To be removed shortly. 1699 * Desired payload type in the response from the server. 1700 * If response_type is RANDOM, server randomly chooses one from other formats. 1701 * </pre> 1702 * 1703 * <code>.grpc.testing.PayloadType response_type = 1;</code> 1704 */ 1705 public io.grpc.testing.integration.Messages.PayloadType getResponseType() { 1706 io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); 1707 return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; 1708 } 1709 1710 public static final int RESPONSE_SIZE_FIELD_NUMBER = 2; 1711 private int responseSize_; 1712 /** 1713 * <pre> 1714 * Desired payload size in the response from the server. 1715 * </pre> 1716 * 1717 * <code>int32 response_size = 2;</code> 1718 */ 1719 public int getResponseSize() { 1720 return responseSize_; 1721 } 1722 1723 public static final int PAYLOAD_FIELD_NUMBER = 3; 1724 private io.grpc.testing.integration.Messages.Payload payload_; 1725 /** 1726 * <pre> 1727 * Optional input payload sent along with the request. 1728 * </pre> 1729 * 1730 * <code>.grpc.testing.Payload payload = 3;</code> 1731 */ 1732 public boolean hasPayload() { 1733 return payload_ != null; 1734 } 1735 /** 1736 * <pre> 1737 * Optional input payload sent along with the request. 1738 * </pre> 1739 * 1740 * <code>.grpc.testing.Payload payload = 3;</code> 1741 */ 1742 public io.grpc.testing.integration.Messages.Payload getPayload() { 1743 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 1744 } 1745 /** 1746 * <pre> 1747 * Optional input payload sent along with the request. 1748 * </pre> 1749 * 1750 * <code>.grpc.testing.Payload payload = 3;</code> 1751 */ 1752 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 1753 return getPayload(); 1754 } 1755 1756 public static final int FILL_USERNAME_FIELD_NUMBER = 4; 1757 private boolean fillUsername_; 1758 /** 1759 * <pre> 1760 * Whether SimpleResponse should include username. 1761 * </pre> 1762 * 1763 * <code>bool fill_username = 4;</code> 1764 */ 1765 public boolean getFillUsername() { 1766 return fillUsername_; 1767 } 1768 1769 public static final int FILL_OAUTH_SCOPE_FIELD_NUMBER = 5; 1770 private boolean fillOauthScope_; 1771 /** 1772 * <pre> 1773 * Whether SimpleResponse should include OAuth scope. 1774 * </pre> 1775 * 1776 * <code>bool fill_oauth_scope = 5;</code> 1777 */ 1778 public boolean getFillOauthScope() { 1779 return fillOauthScope_; 1780 } 1781 1782 public static final int RESPONSE_COMPRESSED_FIELD_NUMBER = 6; 1783 private com.google.protobuf.BoolValue responseCompressed_; 1784 /** 1785 * <pre> 1786 * Whether to request the server to compress the response. This field is 1787 * "nullable" in order to interoperate seamlessly with clients not able to 1788 * implement the full compression tests by introspecting the call to verify 1789 * the response's compression status. 1790 * </pre> 1791 * 1792 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 1793 */ 1794 public boolean hasResponseCompressed() { 1795 return responseCompressed_ != null; 1796 } 1797 /** 1798 * <pre> 1799 * Whether to request the server to compress the response. This field is 1800 * "nullable" in order to interoperate seamlessly with clients not able to 1801 * implement the full compression tests by introspecting the call to verify 1802 * the response's compression status. 1803 * </pre> 1804 * 1805 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 1806 */ 1807 public com.google.protobuf.BoolValue getResponseCompressed() { 1808 return responseCompressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : responseCompressed_; 1809 } 1810 /** 1811 * <pre> 1812 * Whether to request the server to compress the response. This field is 1813 * "nullable" in order to interoperate seamlessly with clients not able to 1814 * implement the full compression tests by introspecting the call to verify 1815 * the response's compression status. 1816 * </pre> 1817 * 1818 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 1819 */ 1820 public com.google.protobuf.BoolValueOrBuilder getResponseCompressedOrBuilder() { 1821 return getResponseCompressed(); 1822 } 1823 1824 public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; 1825 private io.grpc.testing.integration.Messages.EchoStatus responseStatus_; 1826 /** 1827 * <pre> 1828 * Whether server should return a given status 1829 * </pre> 1830 * 1831 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 1832 */ 1833 public boolean hasResponseStatus() { 1834 return responseStatus_ != null; 1835 } 1836 /** 1837 * <pre> 1838 * Whether server should return a given status 1839 * </pre> 1840 * 1841 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 1842 */ 1843 public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { 1844 return responseStatus_ == null ? io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; 1845 } 1846 /** 1847 * <pre> 1848 * Whether server should return a given status 1849 * </pre> 1850 * 1851 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 1852 */ 1853 public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { 1854 return getResponseStatus(); 1855 } 1856 1857 public static final int EXPECT_COMPRESSED_FIELD_NUMBER = 8; 1858 private com.google.protobuf.BoolValue expectCompressed_; 1859 /** 1860 * <pre> 1861 * Whether the server should expect this request to be compressed. 1862 * </pre> 1863 * 1864 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 1865 */ 1866 public boolean hasExpectCompressed() { 1867 return expectCompressed_ != null; 1868 } 1869 /** 1870 * <pre> 1871 * Whether the server should expect this request to be compressed. 1872 * </pre> 1873 * 1874 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 1875 */ 1876 public com.google.protobuf.BoolValue getExpectCompressed() { 1877 return expectCompressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectCompressed_; 1878 } 1879 /** 1880 * <pre> 1881 * Whether the server should expect this request to be compressed. 1882 * </pre> 1883 * 1884 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 1885 */ 1886 public com.google.protobuf.BoolValueOrBuilder getExpectCompressedOrBuilder() { 1887 return getExpectCompressed(); 1888 } 1889 1890 private byte memoizedIsInitialized = -1; 1891 public final boolean isInitialized() { 1892 byte isInitialized = memoizedIsInitialized; 1893 if (isInitialized == 1) return true; 1894 if (isInitialized == 0) return false; 1895 1896 memoizedIsInitialized = 1; 1897 return true; 1898 } 1899 1900 public void writeTo(com.google.protobuf.CodedOutputStream output) 1901 throws java.io.IOException { 1902 if (responseType_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { 1903 output.writeEnum(1, responseType_); 1904 } 1905 if (responseSize_ != 0) { 1906 output.writeInt32(2, responseSize_); 1907 } 1908 if (payload_ != null) { 1909 output.writeMessage(3, getPayload()); 1910 } 1911 if (fillUsername_ != false) { 1912 output.writeBool(4, fillUsername_); 1913 } 1914 if (fillOauthScope_ != false) { 1915 output.writeBool(5, fillOauthScope_); 1916 } 1917 if (responseCompressed_ != null) { 1918 output.writeMessage(6, getResponseCompressed()); 1919 } 1920 if (responseStatus_ != null) { 1921 output.writeMessage(7, getResponseStatus()); 1922 } 1923 if (expectCompressed_ != null) { 1924 output.writeMessage(8, getExpectCompressed()); 1925 } 1926 unknownFields.writeTo(output); 1927 } 1928 1929 public int getSerializedSize() { 1930 int size = memoizedSize; 1931 if (size != -1) return size; 1932 1933 size = 0; 1934 if (responseType_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { 1935 size += com.google.protobuf.CodedOutputStream 1936 .computeEnumSize(1, responseType_); 1937 } 1938 if (responseSize_ != 0) { 1939 size += com.google.protobuf.CodedOutputStream 1940 .computeInt32Size(2, responseSize_); 1941 } 1942 if (payload_ != null) { 1943 size += com.google.protobuf.CodedOutputStream 1944 .computeMessageSize(3, getPayload()); 1945 } 1946 if (fillUsername_ != false) { 1947 size += com.google.protobuf.CodedOutputStream 1948 .computeBoolSize(4, fillUsername_); 1949 } 1950 if (fillOauthScope_ != false) { 1951 size += com.google.protobuf.CodedOutputStream 1952 .computeBoolSize(5, fillOauthScope_); 1953 } 1954 if (responseCompressed_ != null) { 1955 size += com.google.protobuf.CodedOutputStream 1956 .computeMessageSize(6, getResponseCompressed()); 1957 } 1958 if (responseStatus_ != null) { 1959 size += com.google.protobuf.CodedOutputStream 1960 .computeMessageSize(7, getResponseStatus()); 1961 } 1962 if (expectCompressed_ != null) { 1963 size += com.google.protobuf.CodedOutputStream 1964 .computeMessageSize(8, getExpectCompressed()); 1965 } 1966 size += unknownFields.getSerializedSize(); 1967 memoizedSize = size; 1968 return size; 1969 } 1970 1971 @java.lang.Override 1972 public boolean equals(final java.lang.Object obj) { 1973 if (obj == this) { 1974 return true; 1975 } 1976 if (!(obj instanceof io.grpc.testing.integration.Messages.SimpleRequest)) { 1977 return super.equals(obj); 1978 } 1979 io.grpc.testing.integration.Messages.SimpleRequest other = (io.grpc.testing.integration.Messages.SimpleRequest) obj; 1980 1981 boolean result = true; 1982 result = result && responseType_ == other.responseType_; 1983 result = result && (getResponseSize() 1984 == other.getResponseSize()); 1985 result = result && (hasPayload() == other.hasPayload()); 1986 if (hasPayload()) { 1987 result = result && getPayload() 1988 .equals(other.getPayload()); 1989 } 1990 result = result && (getFillUsername() 1991 == other.getFillUsername()); 1992 result = result && (getFillOauthScope() 1993 == other.getFillOauthScope()); 1994 result = result && (hasResponseCompressed() == other.hasResponseCompressed()); 1995 if (hasResponseCompressed()) { 1996 result = result && getResponseCompressed() 1997 .equals(other.getResponseCompressed()); 1998 } 1999 result = result && (hasResponseStatus() == other.hasResponseStatus()); 2000 if (hasResponseStatus()) { 2001 result = result && getResponseStatus() 2002 .equals(other.getResponseStatus()); 2003 } 2004 result = result && (hasExpectCompressed() == other.hasExpectCompressed()); 2005 if (hasExpectCompressed()) { 2006 result = result && getExpectCompressed() 2007 .equals(other.getExpectCompressed()); 2008 } 2009 result = result && unknownFields.equals(other.unknownFields); 2010 return result; 2011 } 2012 2013 @java.lang.Override 2014 public int hashCode() { 2015 if (memoizedHashCode != 0) { 2016 return memoizedHashCode; 2017 } 2018 int hash = 41; 2019 hash = (19 * hash) + getDescriptor().hashCode(); 2020 hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER; 2021 hash = (53 * hash) + responseType_; 2022 hash = (37 * hash) + RESPONSE_SIZE_FIELD_NUMBER; 2023 hash = (53 * hash) + getResponseSize(); 2024 if (hasPayload()) { 2025 hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; 2026 hash = (53 * hash) + getPayload().hashCode(); 2027 } 2028 hash = (37 * hash) + FILL_USERNAME_FIELD_NUMBER; 2029 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 2030 getFillUsername()); 2031 hash = (37 * hash) + FILL_OAUTH_SCOPE_FIELD_NUMBER; 2032 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 2033 getFillOauthScope()); 2034 if (hasResponseCompressed()) { 2035 hash = (37 * hash) + RESPONSE_COMPRESSED_FIELD_NUMBER; 2036 hash = (53 * hash) + getResponseCompressed().hashCode(); 2037 } 2038 if (hasResponseStatus()) { 2039 hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; 2040 hash = (53 * hash) + getResponseStatus().hashCode(); 2041 } 2042 if (hasExpectCompressed()) { 2043 hash = (37 * hash) + EXPECT_COMPRESSED_FIELD_NUMBER; 2044 hash = (53 * hash) + getExpectCompressed().hashCode(); 2045 } 2046 hash = (29 * hash) + unknownFields.hashCode(); 2047 memoizedHashCode = hash; 2048 return hash; 2049 } 2050 2051 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2052 java.nio.ByteBuffer data) 2053 throws com.google.protobuf.InvalidProtocolBufferException { 2054 return PARSER.parseFrom(data); 2055 } 2056 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2057 java.nio.ByteBuffer data, 2058 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2059 throws com.google.protobuf.InvalidProtocolBufferException { 2060 return PARSER.parseFrom(data, extensionRegistry); 2061 } 2062 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2063 com.google.protobuf.ByteString data) 2064 throws com.google.protobuf.InvalidProtocolBufferException { 2065 return PARSER.parseFrom(data); 2066 } 2067 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2068 com.google.protobuf.ByteString data, 2069 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2070 throws com.google.protobuf.InvalidProtocolBufferException { 2071 return PARSER.parseFrom(data, extensionRegistry); 2072 } 2073 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(byte[] data) 2074 throws com.google.protobuf.InvalidProtocolBufferException { 2075 return PARSER.parseFrom(data); 2076 } 2077 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2078 byte[] data, 2079 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2080 throws com.google.protobuf.InvalidProtocolBufferException { 2081 return PARSER.parseFrom(data, extensionRegistry); 2082 } 2083 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(java.io.InputStream input) 2084 throws java.io.IOException { 2085 return com.google.protobuf.GeneratedMessageV3 2086 .parseWithIOException(PARSER, input); 2087 } 2088 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2089 java.io.InputStream input, 2090 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2091 throws java.io.IOException { 2092 return com.google.protobuf.GeneratedMessageV3 2093 .parseWithIOException(PARSER, input, extensionRegistry); 2094 } 2095 public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) 2096 throws java.io.IOException { 2097 return com.google.protobuf.GeneratedMessageV3 2098 .parseDelimitedWithIOException(PARSER, input); 2099 } 2100 public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom( 2101 java.io.InputStream input, 2102 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2103 throws java.io.IOException { 2104 return com.google.protobuf.GeneratedMessageV3 2105 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 2106 } 2107 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2108 com.google.protobuf.CodedInputStream input) 2109 throws java.io.IOException { 2110 return com.google.protobuf.GeneratedMessageV3 2111 .parseWithIOException(PARSER, input); 2112 } 2113 public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( 2114 com.google.protobuf.CodedInputStream input, 2115 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2116 throws java.io.IOException { 2117 return com.google.protobuf.GeneratedMessageV3 2118 .parseWithIOException(PARSER, input, extensionRegistry); 2119 } 2120 2121 public Builder newBuilderForType() { return newBuilder(); } 2122 public static Builder newBuilder() { 2123 return DEFAULT_INSTANCE.toBuilder(); 2124 } 2125 public static Builder newBuilder(io.grpc.testing.integration.Messages.SimpleRequest prototype) { 2126 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2127 } 2128 public Builder toBuilder() { 2129 return this == DEFAULT_INSTANCE 2130 ? new Builder() : new Builder().mergeFrom(this); 2131 } 2132 2133 @java.lang.Override 2134 protected Builder newBuilderForType( 2135 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2136 Builder builder = new Builder(parent); 2137 return builder; 2138 } 2139 /** 2140 * <pre> 2141 * Unary request. 2142 * </pre> 2143 * 2144 * Protobuf type {@code grpc.testing.SimpleRequest} 2145 */ 2146 public static final class Builder extends 2147 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 2148 // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleRequest) 2149 io.grpc.testing.integration.Messages.SimpleRequestOrBuilder { 2150 public static final com.google.protobuf.Descriptors.Descriptor 2151 getDescriptor() { 2152 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; 2153 } 2154 2155 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 2156 internalGetFieldAccessorTable() { 2157 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable 2158 .ensureFieldAccessorsInitialized( 2159 io.grpc.testing.integration.Messages.SimpleRequest.class, io.grpc.testing.integration.Messages.SimpleRequest.Builder.class); 2160 } 2161 2162 // Construct using io.grpc.testing.integration.Messages.SimpleRequest.newBuilder() 2163 private Builder() { 2164 maybeForceBuilderInitialization(); 2165 } 2166 2167 private Builder( 2168 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2169 super(parent); 2170 maybeForceBuilderInitialization(); 2171 } 2172 private void maybeForceBuilderInitialization() { 2173 if (com.google.protobuf.GeneratedMessageV3 2174 .alwaysUseFieldBuilders) { 2175 } 2176 } 2177 public Builder clear() { 2178 super.clear(); 2179 responseType_ = 0; 2180 2181 responseSize_ = 0; 2182 2183 if (payloadBuilder_ == null) { 2184 payload_ = null; 2185 } else { 2186 payload_ = null; 2187 payloadBuilder_ = null; 2188 } 2189 fillUsername_ = false; 2190 2191 fillOauthScope_ = false; 2192 2193 if (responseCompressedBuilder_ == null) { 2194 responseCompressed_ = null; 2195 } else { 2196 responseCompressed_ = null; 2197 responseCompressedBuilder_ = null; 2198 } 2199 if (responseStatusBuilder_ == null) { 2200 responseStatus_ = null; 2201 } else { 2202 responseStatus_ = null; 2203 responseStatusBuilder_ = null; 2204 } 2205 if (expectCompressedBuilder_ == null) { 2206 expectCompressed_ = null; 2207 } else { 2208 expectCompressed_ = null; 2209 expectCompressedBuilder_ = null; 2210 } 2211 return this; 2212 } 2213 2214 public com.google.protobuf.Descriptors.Descriptor 2215 getDescriptorForType() { 2216 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; 2217 } 2218 2219 public io.grpc.testing.integration.Messages.SimpleRequest getDefaultInstanceForType() { 2220 return io.grpc.testing.integration.Messages.SimpleRequest.getDefaultInstance(); 2221 } 2222 2223 public io.grpc.testing.integration.Messages.SimpleRequest build() { 2224 io.grpc.testing.integration.Messages.SimpleRequest result = buildPartial(); 2225 if (!result.isInitialized()) { 2226 throw newUninitializedMessageException(result); 2227 } 2228 return result; 2229 } 2230 2231 public io.grpc.testing.integration.Messages.SimpleRequest buildPartial() { 2232 io.grpc.testing.integration.Messages.SimpleRequest result = new io.grpc.testing.integration.Messages.SimpleRequest(this); 2233 result.responseType_ = responseType_; 2234 result.responseSize_ = responseSize_; 2235 if (payloadBuilder_ == null) { 2236 result.payload_ = payload_; 2237 } else { 2238 result.payload_ = payloadBuilder_.build(); 2239 } 2240 result.fillUsername_ = fillUsername_; 2241 result.fillOauthScope_ = fillOauthScope_; 2242 if (responseCompressedBuilder_ == null) { 2243 result.responseCompressed_ = responseCompressed_; 2244 } else { 2245 result.responseCompressed_ = responseCompressedBuilder_.build(); 2246 } 2247 if (responseStatusBuilder_ == null) { 2248 result.responseStatus_ = responseStatus_; 2249 } else { 2250 result.responseStatus_ = responseStatusBuilder_.build(); 2251 } 2252 if (expectCompressedBuilder_ == null) { 2253 result.expectCompressed_ = expectCompressed_; 2254 } else { 2255 result.expectCompressed_ = expectCompressedBuilder_.build(); 2256 } 2257 onBuilt(); 2258 return result; 2259 } 2260 2261 public Builder clone() { 2262 return (Builder) super.clone(); 2263 } 2264 public Builder setField( 2265 com.google.protobuf.Descriptors.FieldDescriptor field, 2266 java.lang.Object value) { 2267 return (Builder) super.setField(field, value); 2268 } 2269 public Builder clearField( 2270 com.google.protobuf.Descriptors.FieldDescriptor field) { 2271 return (Builder) super.clearField(field); 2272 } 2273 public Builder clearOneof( 2274 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2275 return (Builder) super.clearOneof(oneof); 2276 } 2277 public Builder setRepeatedField( 2278 com.google.protobuf.Descriptors.FieldDescriptor field, 2279 int index, java.lang.Object value) { 2280 return (Builder) super.setRepeatedField(field, index, value); 2281 } 2282 public Builder addRepeatedField( 2283 com.google.protobuf.Descriptors.FieldDescriptor field, 2284 java.lang.Object value) { 2285 return (Builder) super.addRepeatedField(field, value); 2286 } 2287 public Builder mergeFrom(com.google.protobuf.Message other) { 2288 if (other instanceof io.grpc.testing.integration.Messages.SimpleRequest) { 2289 return mergeFrom((io.grpc.testing.integration.Messages.SimpleRequest)other); 2290 } else { 2291 super.mergeFrom(other); 2292 return this; 2293 } 2294 } 2295 2296 public Builder mergeFrom(io.grpc.testing.integration.Messages.SimpleRequest other) { 2297 if (other == io.grpc.testing.integration.Messages.SimpleRequest.getDefaultInstance()) return this; 2298 if (other.responseType_ != 0) { 2299 setResponseTypeValue(other.getResponseTypeValue()); 2300 } 2301 if (other.getResponseSize() != 0) { 2302 setResponseSize(other.getResponseSize()); 2303 } 2304 if (other.hasPayload()) { 2305 mergePayload(other.getPayload()); 2306 } 2307 if (other.getFillUsername() != false) { 2308 setFillUsername(other.getFillUsername()); 2309 } 2310 if (other.getFillOauthScope() != false) { 2311 setFillOauthScope(other.getFillOauthScope()); 2312 } 2313 if (other.hasResponseCompressed()) { 2314 mergeResponseCompressed(other.getResponseCompressed()); 2315 } 2316 if (other.hasResponseStatus()) { 2317 mergeResponseStatus(other.getResponseStatus()); 2318 } 2319 if (other.hasExpectCompressed()) { 2320 mergeExpectCompressed(other.getExpectCompressed()); 2321 } 2322 this.mergeUnknownFields(other.unknownFields); 2323 onChanged(); 2324 return this; 2325 } 2326 2327 public final boolean isInitialized() { 2328 return true; 2329 } 2330 2331 public Builder mergeFrom( 2332 com.google.protobuf.CodedInputStream input, 2333 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2334 throws java.io.IOException { 2335 io.grpc.testing.integration.Messages.SimpleRequest parsedMessage = null; 2336 try { 2337 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2338 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2339 parsedMessage = (io.grpc.testing.integration.Messages.SimpleRequest) e.getUnfinishedMessage(); 2340 throw e.unwrapIOException(); 2341 } finally { 2342 if (parsedMessage != null) { 2343 mergeFrom(parsedMessage); 2344 } 2345 } 2346 return this; 2347 } 2348 2349 private int responseType_ = 0; 2350 /** 2351 * <pre> 2352 * DEPRECATED, don't use. To be removed shortly. 2353 * Desired payload type in the response from the server. 2354 * If response_type is RANDOM, server randomly chooses one from other formats. 2355 * </pre> 2356 * 2357 * <code>.grpc.testing.PayloadType response_type = 1;</code> 2358 */ 2359 public int getResponseTypeValue() { 2360 return responseType_; 2361 } 2362 /** 2363 * <pre> 2364 * DEPRECATED, don't use. To be removed shortly. 2365 * Desired payload type in the response from the server. 2366 * If response_type is RANDOM, server randomly chooses one from other formats. 2367 * </pre> 2368 * 2369 * <code>.grpc.testing.PayloadType response_type = 1;</code> 2370 */ 2371 public Builder setResponseTypeValue(int value) { 2372 responseType_ = value; 2373 onChanged(); 2374 return this; 2375 } 2376 /** 2377 * <pre> 2378 * DEPRECATED, don't use. To be removed shortly. 2379 * Desired payload type in the response from the server. 2380 * If response_type is RANDOM, server randomly chooses one from other formats. 2381 * </pre> 2382 * 2383 * <code>.grpc.testing.PayloadType response_type = 1;</code> 2384 */ 2385 public io.grpc.testing.integration.Messages.PayloadType getResponseType() { 2386 io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); 2387 return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; 2388 } 2389 /** 2390 * <pre> 2391 * DEPRECATED, don't use. To be removed shortly. 2392 * Desired payload type in the response from the server. 2393 * If response_type is RANDOM, server randomly chooses one from other formats. 2394 * </pre> 2395 * 2396 * <code>.grpc.testing.PayloadType response_type = 1;</code> 2397 */ 2398 public Builder setResponseType(io.grpc.testing.integration.Messages.PayloadType value) { 2399 if (value == null) { 2400 throw new NullPointerException(); 2401 } 2402 2403 responseType_ = value.getNumber(); 2404 onChanged(); 2405 return this; 2406 } 2407 /** 2408 * <pre> 2409 * DEPRECATED, don't use. To be removed shortly. 2410 * Desired payload type in the response from the server. 2411 * If response_type is RANDOM, server randomly chooses one from other formats. 2412 * </pre> 2413 * 2414 * <code>.grpc.testing.PayloadType response_type = 1;</code> 2415 */ 2416 public Builder clearResponseType() { 2417 2418 responseType_ = 0; 2419 onChanged(); 2420 return this; 2421 } 2422 2423 private int responseSize_ ; 2424 /** 2425 * <pre> 2426 * Desired payload size in the response from the server. 2427 * </pre> 2428 * 2429 * <code>int32 response_size = 2;</code> 2430 */ 2431 public int getResponseSize() { 2432 return responseSize_; 2433 } 2434 /** 2435 * <pre> 2436 * Desired payload size in the response from the server. 2437 * </pre> 2438 * 2439 * <code>int32 response_size = 2;</code> 2440 */ 2441 public Builder setResponseSize(int value) { 2442 2443 responseSize_ = value; 2444 onChanged(); 2445 return this; 2446 } 2447 /** 2448 * <pre> 2449 * Desired payload size in the response from the server. 2450 * </pre> 2451 * 2452 * <code>int32 response_size = 2;</code> 2453 */ 2454 public Builder clearResponseSize() { 2455 2456 responseSize_ = 0; 2457 onChanged(); 2458 return this; 2459 } 2460 2461 private io.grpc.testing.integration.Messages.Payload payload_ = null; 2462 private com.google.protobuf.SingleFieldBuilderV3< 2463 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; 2464 /** 2465 * <pre> 2466 * Optional input payload sent along with the request. 2467 * </pre> 2468 * 2469 * <code>.grpc.testing.Payload payload = 3;</code> 2470 */ 2471 public boolean hasPayload() { 2472 return payloadBuilder_ != null || payload_ != null; 2473 } 2474 /** 2475 * <pre> 2476 * Optional input payload sent along with the request. 2477 * </pre> 2478 * 2479 * <code>.grpc.testing.Payload payload = 3;</code> 2480 */ 2481 public io.grpc.testing.integration.Messages.Payload getPayload() { 2482 if (payloadBuilder_ == null) { 2483 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 2484 } else { 2485 return payloadBuilder_.getMessage(); 2486 } 2487 } 2488 /** 2489 * <pre> 2490 * Optional input payload sent along with the request. 2491 * </pre> 2492 * 2493 * <code>.grpc.testing.Payload payload = 3;</code> 2494 */ 2495 public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { 2496 if (payloadBuilder_ == null) { 2497 if (value == null) { 2498 throw new NullPointerException(); 2499 } 2500 payload_ = value; 2501 onChanged(); 2502 } else { 2503 payloadBuilder_.setMessage(value); 2504 } 2505 2506 return this; 2507 } 2508 /** 2509 * <pre> 2510 * Optional input payload sent along with the request. 2511 * </pre> 2512 * 2513 * <code>.grpc.testing.Payload payload = 3;</code> 2514 */ 2515 public Builder setPayload( 2516 io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { 2517 if (payloadBuilder_ == null) { 2518 payload_ = builderForValue.build(); 2519 onChanged(); 2520 } else { 2521 payloadBuilder_.setMessage(builderForValue.build()); 2522 } 2523 2524 return this; 2525 } 2526 /** 2527 * <pre> 2528 * Optional input payload sent along with the request. 2529 * </pre> 2530 * 2531 * <code>.grpc.testing.Payload payload = 3;</code> 2532 */ 2533 public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { 2534 if (payloadBuilder_ == null) { 2535 if (payload_ != null) { 2536 payload_ = 2537 io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); 2538 } else { 2539 payload_ = value; 2540 } 2541 onChanged(); 2542 } else { 2543 payloadBuilder_.mergeFrom(value); 2544 } 2545 2546 return this; 2547 } 2548 /** 2549 * <pre> 2550 * Optional input payload sent along with the request. 2551 * </pre> 2552 * 2553 * <code>.grpc.testing.Payload payload = 3;</code> 2554 */ 2555 public Builder clearPayload() { 2556 if (payloadBuilder_ == null) { 2557 payload_ = null; 2558 onChanged(); 2559 } else { 2560 payload_ = null; 2561 payloadBuilder_ = null; 2562 } 2563 2564 return this; 2565 } 2566 /** 2567 * <pre> 2568 * Optional input payload sent along with the request. 2569 * </pre> 2570 * 2571 * <code>.grpc.testing.Payload payload = 3;</code> 2572 */ 2573 public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { 2574 2575 onChanged(); 2576 return getPayloadFieldBuilder().getBuilder(); 2577 } 2578 /** 2579 * <pre> 2580 * Optional input payload sent along with the request. 2581 * </pre> 2582 * 2583 * <code>.grpc.testing.Payload payload = 3;</code> 2584 */ 2585 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 2586 if (payloadBuilder_ != null) { 2587 return payloadBuilder_.getMessageOrBuilder(); 2588 } else { 2589 return payload_ == null ? 2590 io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 2591 } 2592 } 2593 /** 2594 * <pre> 2595 * Optional input payload sent along with the request. 2596 * </pre> 2597 * 2598 * <code>.grpc.testing.Payload payload = 3;</code> 2599 */ 2600 private com.google.protobuf.SingleFieldBuilderV3< 2601 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> 2602 getPayloadFieldBuilder() { 2603 if (payloadBuilder_ == null) { 2604 payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 2605 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( 2606 getPayload(), 2607 getParentForChildren(), 2608 isClean()); 2609 payload_ = null; 2610 } 2611 return payloadBuilder_; 2612 } 2613 2614 private boolean fillUsername_ ; 2615 /** 2616 * <pre> 2617 * Whether SimpleResponse should include username. 2618 * </pre> 2619 * 2620 * <code>bool fill_username = 4;</code> 2621 */ 2622 public boolean getFillUsername() { 2623 return fillUsername_; 2624 } 2625 /** 2626 * <pre> 2627 * Whether SimpleResponse should include username. 2628 * </pre> 2629 * 2630 * <code>bool fill_username = 4;</code> 2631 */ 2632 public Builder setFillUsername(boolean value) { 2633 2634 fillUsername_ = value; 2635 onChanged(); 2636 return this; 2637 } 2638 /** 2639 * <pre> 2640 * Whether SimpleResponse should include username. 2641 * </pre> 2642 * 2643 * <code>bool fill_username = 4;</code> 2644 */ 2645 public Builder clearFillUsername() { 2646 2647 fillUsername_ = false; 2648 onChanged(); 2649 return this; 2650 } 2651 2652 private boolean fillOauthScope_ ; 2653 /** 2654 * <pre> 2655 * Whether SimpleResponse should include OAuth scope. 2656 * </pre> 2657 * 2658 * <code>bool fill_oauth_scope = 5;</code> 2659 */ 2660 public boolean getFillOauthScope() { 2661 return fillOauthScope_; 2662 } 2663 /** 2664 * <pre> 2665 * Whether SimpleResponse should include OAuth scope. 2666 * </pre> 2667 * 2668 * <code>bool fill_oauth_scope = 5;</code> 2669 */ 2670 public Builder setFillOauthScope(boolean value) { 2671 2672 fillOauthScope_ = value; 2673 onChanged(); 2674 return this; 2675 } 2676 /** 2677 * <pre> 2678 * Whether SimpleResponse should include OAuth scope. 2679 * </pre> 2680 * 2681 * <code>bool fill_oauth_scope = 5;</code> 2682 */ 2683 public Builder clearFillOauthScope() { 2684 2685 fillOauthScope_ = false; 2686 onChanged(); 2687 return this; 2688 } 2689 2690 private com.google.protobuf.BoolValue responseCompressed_ = null; 2691 private com.google.protobuf.SingleFieldBuilderV3< 2692 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> responseCompressedBuilder_; 2693 /** 2694 * <pre> 2695 * Whether to request the server to compress the response. This field is 2696 * "nullable" in order to interoperate seamlessly with clients not able to 2697 * implement the full compression tests by introspecting the call to verify 2698 * the response's compression status. 2699 * </pre> 2700 * 2701 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2702 */ 2703 public boolean hasResponseCompressed() { 2704 return responseCompressedBuilder_ != null || responseCompressed_ != null; 2705 } 2706 /** 2707 * <pre> 2708 * Whether to request the server to compress the response. This field is 2709 * "nullable" in order to interoperate seamlessly with clients not able to 2710 * implement the full compression tests by introspecting the call to verify 2711 * the response's compression status. 2712 * </pre> 2713 * 2714 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2715 */ 2716 public com.google.protobuf.BoolValue getResponseCompressed() { 2717 if (responseCompressedBuilder_ == null) { 2718 return responseCompressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : responseCompressed_; 2719 } else { 2720 return responseCompressedBuilder_.getMessage(); 2721 } 2722 } 2723 /** 2724 * <pre> 2725 * Whether to request the server to compress the response. This field is 2726 * "nullable" in order to interoperate seamlessly with clients not able to 2727 * implement the full compression tests by introspecting the call to verify 2728 * the response's compression status. 2729 * </pre> 2730 * 2731 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2732 */ 2733 public Builder setResponseCompressed(com.google.protobuf.BoolValue value) { 2734 if (responseCompressedBuilder_ == null) { 2735 if (value == null) { 2736 throw new NullPointerException(); 2737 } 2738 responseCompressed_ = value; 2739 onChanged(); 2740 } else { 2741 responseCompressedBuilder_.setMessage(value); 2742 } 2743 2744 return this; 2745 } 2746 /** 2747 * <pre> 2748 * Whether to request the server to compress the response. This field is 2749 * "nullable" in order to interoperate seamlessly with clients not able to 2750 * implement the full compression tests by introspecting the call to verify 2751 * the response's compression status. 2752 * </pre> 2753 * 2754 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2755 */ 2756 public Builder setResponseCompressed( 2757 com.google.protobuf.BoolValue.Builder builderForValue) { 2758 if (responseCompressedBuilder_ == null) { 2759 responseCompressed_ = builderForValue.build(); 2760 onChanged(); 2761 } else { 2762 responseCompressedBuilder_.setMessage(builderForValue.build()); 2763 } 2764 2765 return this; 2766 } 2767 /** 2768 * <pre> 2769 * Whether to request the server to compress the response. This field is 2770 * "nullable" in order to interoperate seamlessly with clients not able to 2771 * implement the full compression tests by introspecting the call to verify 2772 * the response's compression status. 2773 * </pre> 2774 * 2775 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2776 */ 2777 public Builder mergeResponseCompressed(com.google.protobuf.BoolValue value) { 2778 if (responseCompressedBuilder_ == null) { 2779 if (responseCompressed_ != null) { 2780 responseCompressed_ = 2781 com.google.protobuf.BoolValue.newBuilder(responseCompressed_).mergeFrom(value).buildPartial(); 2782 } else { 2783 responseCompressed_ = value; 2784 } 2785 onChanged(); 2786 } else { 2787 responseCompressedBuilder_.mergeFrom(value); 2788 } 2789 2790 return this; 2791 } 2792 /** 2793 * <pre> 2794 * Whether to request the server to compress the response. This field is 2795 * "nullable" in order to interoperate seamlessly with clients not able to 2796 * implement the full compression tests by introspecting the call to verify 2797 * the response's compression status. 2798 * </pre> 2799 * 2800 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2801 */ 2802 public Builder clearResponseCompressed() { 2803 if (responseCompressedBuilder_ == null) { 2804 responseCompressed_ = null; 2805 onChanged(); 2806 } else { 2807 responseCompressed_ = null; 2808 responseCompressedBuilder_ = null; 2809 } 2810 2811 return this; 2812 } 2813 /** 2814 * <pre> 2815 * Whether to request the server to compress the response. This field is 2816 * "nullable" in order to interoperate seamlessly with clients not able to 2817 * implement the full compression tests by introspecting the call to verify 2818 * the response's compression status. 2819 * </pre> 2820 * 2821 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2822 */ 2823 public com.google.protobuf.BoolValue.Builder getResponseCompressedBuilder() { 2824 2825 onChanged(); 2826 return getResponseCompressedFieldBuilder().getBuilder(); 2827 } 2828 /** 2829 * <pre> 2830 * Whether to request the server to compress the response. This field is 2831 * "nullable" in order to interoperate seamlessly with clients not able to 2832 * implement the full compression tests by introspecting the call to verify 2833 * the response's compression status. 2834 * </pre> 2835 * 2836 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2837 */ 2838 public com.google.protobuf.BoolValueOrBuilder getResponseCompressedOrBuilder() { 2839 if (responseCompressedBuilder_ != null) { 2840 return responseCompressedBuilder_.getMessageOrBuilder(); 2841 } else { 2842 return responseCompressed_ == null ? 2843 com.google.protobuf.BoolValue.getDefaultInstance() : responseCompressed_; 2844 } 2845 } 2846 /** 2847 * <pre> 2848 * Whether to request the server to compress the response. This field is 2849 * "nullable" in order to interoperate seamlessly with clients not able to 2850 * implement the full compression tests by introspecting the call to verify 2851 * the response's compression status. 2852 * </pre> 2853 * 2854 * <code>.google.protobuf.BoolValue response_compressed = 6;</code> 2855 */ 2856 private com.google.protobuf.SingleFieldBuilderV3< 2857 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 2858 getResponseCompressedFieldBuilder() { 2859 if (responseCompressedBuilder_ == null) { 2860 responseCompressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 2861 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( 2862 getResponseCompressed(), 2863 getParentForChildren(), 2864 isClean()); 2865 responseCompressed_ = null; 2866 } 2867 return responseCompressedBuilder_; 2868 } 2869 2870 private io.grpc.testing.integration.Messages.EchoStatus responseStatus_ = null; 2871 private com.google.protobuf.SingleFieldBuilderV3< 2872 io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> responseStatusBuilder_; 2873 /** 2874 * <pre> 2875 * Whether server should return a given status 2876 * </pre> 2877 * 2878 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2879 */ 2880 public boolean hasResponseStatus() { 2881 return responseStatusBuilder_ != null || responseStatus_ != null; 2882 } 2883 /** 2884 * <pre> 2885 * Whether server should return a given status 2886 * </pre> 2887 * 2888 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2889 */ 2890 public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { 2891 if (responseStatusBuilder_ == null) { 2892 return responseStatus_ == null ? io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; 2893 } else { 2894 return responseStatusBuilder_.getMessage(); 2895 } 2896 } 2897 /** 2898 * <pre> 2899 * Whether server should return a given status 2900 * </pre> 2901 * 2902 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2903 */ 2904 public Builder setResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { 2905 if (responseStatusBuilder_ == null) { 2906 if (value == null) { 2907 throw new NullPointerException(); 2908 } 2909 responseStatus_ = value; 2910 onChanged(); 2911 } else { 2912 responseStatusBuilder_.setMessage(value); 2913 } 2914 2915 return this; 2916 } 2917 /** 2918 * <pre> 2919 * Whether server should return a given status 2920 * </pre> 2921 * 2922 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2923 */ 2924 public Builder setResponseStatus( 2925 io.grpc.testing.integration.Messages.EchoStatus.Builder builderForValue) { 2926 if (responseStatusBuilder_ == null) { 2927 responseStatus_ = builderForValue.build(); 2928 onChanged(); 2929 } else { 2930 responseStatusBuilder_.setMessage(builderForValue.build()); 2931 } 2932 2933 return this; 2934 } 2935 /** 2936 * <pre> 2937 * Whether server should return a given status 2938 * </pre> 2939 * 2940 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2941 */ 2942 public Builder mergeResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { 2943 if (responseStatusBuilder_ == null) { 2944 if (responseStatus_ != null) { 2945 responseStatus_ = 2946 io.grpc.testing.integration.Messages.EchoStatus.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); 2947 } else { 2948 responseStatus_ = value; 2949 } 2950 onChanged(); 2951 } else { 2952 responseStatusBuilder_.mergeFrom(value); 2953 } 2954 2955 return this; 2956 } 2957 /** 2958 * <pre> 2959 * Whether server should return a given status 2960 * </pre> 2961 * 2962 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2963 */ 2964 public Builder clearResponseStatus() { 2965 if (responseStatusBuilder_ == null) { 2966 responseStatus_ = null; 2967 onChanged(); 2968 } else { 2969 responseStatus_ = null; 2970 responseStatusBuilder_ = null; 2971 } 2972 2973 return this; 2974 } 2975 /** 2976 * <pre> 2977 * Whether server should return a given status 2978 * </pre> 2979 * 2980 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2981 */ 2982 public io.grpc.testing.integration.Messages.EchoStatus.Builder getResponseStatusBuilder() { 2983 2984 onChanged(); 2985 return getResponseStatusFieldBuilder().getBuilder(); 2986 } 2987 /** 2988 * <pre> 2989 * Whether server should return a given status 2990 * </pre> 2991 * 2992 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 2993 */ 2994 public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { 2995 if (responseStatusBuilder_ != null) { 2996 return responseStatusBuilder_.getMessageOrBuilder(); 2997 } else { 2998 return responseStatus_ == null ? 2999 io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; 3000 } 3001 } 3002 /** 3003 * <pre> 3004 * Whether server should return a given status 3005 * </pre> 3006 * 3007 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 3008 */ 3009 private com.google.protobuf.SingleFieldBuilderV3< 3010 io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> 3011 getResponseStatusFieldBuilder() { 3012 if (responseStatusBuilder_ == null) { 3013 responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 3014 io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder>( 3015 getResponseStatus(), 3016 getParentForChildren(), 3017 isClean()); 3018 responseStatus_ = null; 3019 } 3020 return responseStatusBuilder_; 3021 } 3022 3023 private com.google.protobuf.BoolValue expectCompressed_ = null; 3024 private com.google.protobuf.SingleFieldBuilderV3< 3025 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> expectCompressedBuilder_; 3026 /** 3027 * <pre> 3028 * Whether the server should expect this request to be compressed. 3029 * </pre> 3030 * 3031 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3032 */ 3033 public boolean hasExpectCompressed() { 3034 return expectCompressedBuilder_ != null || expectCompressed_ != null; 3035 } 3036 /** 3037 * <pre> 3038 * Whether the server should expect this request to be compressed. 3039 * </pre> 3040 * 3041 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3042 */ 3043 public com.google.protobuf.BoolValue getExpectCompressed() { 3044 if (expectCompressedBuilder_ == null) { 3045 return expectCompressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectCompressed_; 3046 } else { 3047 return expectCompressedBuilder_.getMessage(); 3048 } 3049 } 3050 /** 3051 * <pre> 3052 * Whether the server should expect this request to be compressed. 3053 * </pre> 3054 * 3055 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3056 */ 3057 public Builder setExpectCompressed(com.google.protobuf.BoolValue value) { 3058 if (expectCompressedBuilder_ == null) { 3059 if (value == null) { 3060 throw new NullPointerException(); 3061 } 3062 expectCompressed_ = value; 3063 onChanged(); 3064 } else { 3065 expectCompressedBuilder_.setMessage(value); 3066 } 3067 3068 return this; 3069 } 3070 /** 3071 * <pre> 3072 * Whether the server should expect this request to be compressed. 3073 * </pre> 3074 * 3075 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3076 */ 3077 public Builder setExpectCompressed( 3078 com.google.protobuf.BoolValue.Builder builderForValue) { 3079 if (expectCompressedBuilder_ == null) { 3080 expectCompressed_ = builderForValue.build(); 3081 onChanged(); 3082 } else { 3083 expectCompressedBuilder_.setMessage(builderForValue.build()); 3084 } 3085 3086 return this; 3087 } 3088 /** 3089 * <pre> 3090 * Whether the server should expect this request to be compressed. 3091 * </pre> 3092 * 3093 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3094 */ 3095 public Builder mergeExpectCompressed(com.google.protobuf.BoolValue value) { 3096 if (expectCompressedBuilder_ == null) { 3097 if (expectCompressed_ != null) { 3098 expectCompressed_ = 3099 com.google.protobuf.BoolValue.newBuilder(expectCompressed_).mergeFrom(value).buildPartial(); 3100 } else { 3101 expectCompressed_ = value; 3102 } 3103 onChanged(); 3104 } else { 3105 expectCompressedBuilder_.mergeFrom(value); 3106 } 3107 3108 return this; 3109 } 3110 /** 3111 * <pre> 3112 * Whether the server should expect this request to be compressed. 3113 * </pre> 3114 * 3115 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3116 */ 3117 public Builder clearExpectCompressed() { 3118 if (expectCompressedBuilder_ == null) { 3119 expectCompressed_ = null; 3120 onChanged(); 3121 } else { 3122 expectCompressed_ = null; 3123 expectCompressedBuilder_ = null; 3124 } 3125 3126 return this; 3127 } 3128 /** 3129 * <pre> 3130 * Whether the server should expect this request to be compressed. 3131 * </pre> 3132 * 3133 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3134 */ 3135 public com.google.protobuf.BoolValue.Builder getExpectCompressedBuilder() { 3136 3137 onChanged(); 3138 return getExpectCompressedFieldBuilder().getBuilder(); 3139 } 3140 /** 3141 * <pre> 3142 * Whether the server should expect this request to be compressed. 3143 * </pre> 3144 * 3145 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3146 */ 3147 public com.google.protobuf.BoolValueOrBuilder getExpectCompressedOrBuilder() { 3148 if (expectCompressedBuilder_ != null) { 3149 return expectCompressedBuilder_.getMessageOrBuilder(); 3150 } else { 3151 return expectCompressed_ == null ? 3152 com.google.protobuf.BoolValue.getDefaultInstance() : expectCompressed_; 3153 } 3154 } 3155 /** 3156 * <pre> 3157 * Whether the server should expect this request to be compressed. 3158 * </pre> 3159 * 3160 * <code>.google.protobuf.BoolValue expect_compressed = 8;</code> 3161 */ 3162 private com.google.protobuf.SingleFieldBuilderV3< 3163 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 3164 getExpectCompressedFieldBuilder() { 3165 if (expectCompressedBuilder_ == null) { 3166 expectCompressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 3167 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( 3168 getExpectCompressed(), 3169 getParentForChildren(), 3170 isClean()); 3171 expectCompressed_ = null; 3172 } 3173 return expectCompressedBuilder_; 3174 } 3175 public final Builder setUnknownFields( 3176 final com.google.protobuf.UnknownFieldSet unknownFields) { 3177 return super.setUnknownFieldsProto3(unknownFields); 3178 } 3179 3180 public final Builder mergeUnknownFields( 3181 final com.google.protobuf.UnknownFieldSet unknownFields) { 3182 return super.mergeUnknownFields(unknownFields); 3183 } 3184 3185 3186 // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleRequest) 3187 } 3188 3189 // @@protoc_insertion_point(class_scope:grpc.testing.SimpleRequest) 3190 private static final io.grpc.testing.integration.Messages.SimpleRequest DEFAULT_INSTANCE; 3191 static { 3192 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.SimpleRequest(); 3193 } 3194 3195 public static io.grpc.testing.integration.Messages.SimpleRequest getDefaultInstance() { 3196 return DEFAULT_INSTANCE; 3197 } 3198 3199 private static final com.google.protobuf.Parser<SimpleRequest> 3200 PARSER = new com.google.protobuf.AbstractParser<SimpleRequest>() { 3201 public SimpleRequest parsePartialFrom( 3202 com.google.protobuf.CodedInputStream input, 3203 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3204 throws com.google.protobuf.InvalidProtocolBufferException { 3205 return new SimpleRequest(input, extensionRegistry); 3206 } 3207 }; 3208 3209 public static com.google.protobuf.Parser<SimpleRequest> parser() { 3210 return PARSER; 3211 } 3212 3213 @java.lang.Override 3214 public com.google.protobuf.Parser<SimpleRequest> getParserForType() { 3215 return PARSER; 3216 } 3217 3218 public io.grpc.testing.integration.Messages.SimpleRequest getDefaultInstanceForType() { 3219 return DEFAULT_INSTANCE; 3220 } 3221 3222 } 3223 3224 public interface SimpleResponseOrBuilder extends 3225 // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleResponse) 3226 com.google.protobuf.MessageOrBuilder { 3227 3228 /** 3229 * <pre> 3230 * Payload to increase message size. 3231 * </pre> 3232 * 3233 * <code>.grpc.testing.Payload payload = 1;</code> 3234 */ 3235 boolean hasPayload(); 3236 /** 3237 * <pre> 3238 * Payload to increase message size. 3239 * </pre> 3240 * 3241 * <code>.grpc.testing.Payload payload = 1;</code> 3242 */ 3243 io.grpc.testing.integration.Messages.Payload getPayload(); 3244 /** 3245 * <pre> 3246 * Payload to increase message size. 3247 * </pre> 3248 * 3249 * <code>.grpc.testing.Payload payload = 1;</code> 3250 */ 3251 io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); 3252 3253 /** 3254 * <pre> 3255 * The user the request came from, for verifying authentication was 3256 * successful when the client expected it. 3257 * </pre> 3258 * 3259 * <code>string username = 2;</code> 3260 */ 3261 java.lang.String getUsername(); 3262 /** 3263 * <pre> 3264 * The user the request came from, for verifying authentication was 3265 * successful when the client expected it. 3266 * </pre> 3267 * 3268 * <code>string username = 2;</code> 3269 */ 3270 com.google.protobuf.ByteString 3271 getUsernameBytes(); 3272 3273 /** 3274 * <pre> 3275 * OAuth scope. 3276 * </pre> 3277 * 3278 * <code>string oauth_scope = 3;</code> 3279 */ 3280 java.lang.String getOauthScope(); 3281 /** 3282 * <pre> 3283 * OAuth scope. 3284 * </pre> 3285 * 3286 * <code>string oauth_scope = 3;</code> 3287 */ 3288 com.google.protobuf.ByteString 3289 getOauthScopeBytes(); 3290 } 3291 /** 3292 * <pre> 3293 * Unary response, as configured by the request. 3294 * </pre> 3295 * 3296 * Protobuf type {@code grpc.testing.SimpleResponse} 3297 */ 3298 public static final class SimpleResponse extends 3299 com.google.protobuf.GeneratedMessageV3 implements 3300 // @@protoc_insertion_point(message_implements:grpc.testing.SimpleResponse) 3301 SimpleResponseOrBuilder { 3302 private static final long serialVersionUID = 0L; 3303 // Use SimpleResponse.newBuilder() to construct. 3304 private SimpleResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 3305 super(builder); 3306 } 3307 private SimpleResponse() { 3308 username_ = ""; 3309 oauthScope_ = ""; 3310 } 3311 3312 @java.lang.Override 3313 public final com.google.protobuf.UnknownFieldSet 3314 getUnknownFields() { 3315 return this.unknownFields; 3316 } 3317 private SimpleResponse( 3318 com.google.protobuf.CodedInputStream input, 3319 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3320 throws com.google.protobuf.InvalidProtocolBufferException { 3321 this(); 3322 if (extensionRegistry == null) { 3323 throw new java.lang.NullPointerException(); 3324 } 3325 int mutable_bitField0_ = 0; 3326 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 3327 com.google.protobuf.UnknownFieldSet.newBuilder(); 3328 try { 3329 boolean done = false; 3330 while (!done) { 3331 int tag = input.readTag(); 3332 switch (tag) { 3333 case 0: 3334 done = true; 3335 break; 3336 default: { 3337 if (!parseUnknownFieldProto3( 3338 input, unknownFields, extensionRegistry, tag)) { 3339 done = true; 3340 } 3341 break; 3342 } 3343 case 10: { 3344 io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; 3345 if (payload_ != null) { 3346 subBuilder = payload_.toBuilder(); 3347 } 3348 payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.parser(), extensionRegistry); 3349 if (subBuilder != null) { 3350 subBuilder.mergeFrom(payload_); 3351 payload_ = subBuilder.buildPartial(); 3352 } 3353 3354 break; 3355 } 3356 case 18: { 3357 java.lang.String s = input.readStringRequireUtf8(); 3358 3359 username_ = s; 3360 break; 3361 } 3362 case 26: { 3363 java.lang.String s = input.readStringRequireUtf8(); 3364 3365 oauthScope_ = s; 3366 break; 3367 } 3368 } 3369 } 3370 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3371 throw e.setUnfinishedMessage(this); 3372 } catch (java.io.IOException e) { 3373 throw new com.google.protobuf.InvalidProtocolBufferException( 3374 e).setUnfinishedMessage(this); 3375 } finally { 3376 this.unknownFields = unknownFields.build(); 3377 makeExtensionsImmutable(); 3378 } 3379 } 3380 public static final com.google.protobuf.Descriptors.Descriptor 3381 getDescriptor() { 3382 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; 3383 } 3384 3385 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 3386 internalGetFieldAccessorTable() { 3387 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable 3388 .ensureFieldAccessorsInitialized( 3389 io.grpc.testing.integration.Messages.SimpleResponse.class, io.grpc.testing.integration.Messages.SimpleResponse.Builder.class); 3390 } 3391 3392 public static final int PAYLOAD_FIELD_NUMBER = 1; 3393 private io.grpc.testing.integration.Messages.Payload payload_; 3394 /** 3395 * <pre> 3396 * Payload to increase message size. 3397 * </pre> 3398 * 3399 * <code>.grpc.testing.Payload payload = 1;</code> 3400 */ 3401 public boolean hasPayload() { 3402 return payload_ != null; 3403 } 3404 /** 3405 * <pre> 3406 * Payload to increase message size. 3407 * </pre> 3408 * 3409 * <code>.grpc.testing.Payload payload = 1;</code> 3410 */ 3411 public io.grpc.testing.integration.Messages.Payload getPayload() { 3412 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 3413 } 3414 /** 3415 * <pre> 3416 * Payload to increase message size. 3417 * </pre> 3418 * 3419 * <code>.grpc.testing.Payload payload = 1;</code> 3420 */ 3421 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 3422 return getPayload(); 3423 } 3424 3425 public static final int USERNAME_FIELD_NUMBER = 2; 3426 private volatile java.lang.Object username_; 3427 /** 3428 * <pre> 3429 * The user the request came from, for verifying authentication was 3430 * successful when the client expected it. 3431 * </pre> 3432 * 3433 * <code>string username = 2;</code> 3434 */ 3435 public java.lang.String getUsername() { 3436 java.lang.Object ref = username_; 3437 if (ref instanceof java.lang.String) { 3438 return (java.lang.String) ref; 3439 } else { 3440 com.google.protobuf.ByteString bs = 3441 (com.google.protobuf.ByteString) ref; 3442 java.lang.String s = bs.toStringUtf8(); 3443 username_ = s; 3444 return s; 3445 } 3446 } 3447 /** 3448 * <pre> 3449 * The user the request came from, for verifying authentication was 3450 * successful when the client expected it. 3451 * </pre> 3452 * 3453 * <code>string username = 2;</code> 3454 */ 3455 public com.google.protobuf.ByteString 3456 getUsernameBytes() { 3457 java.lang.Object ref = username_; 3458 if (ref instanceof java.lang.String) { 3459 com.google.protobuf.ByteString b = 3460 com.google.protobuf.ByteString.copyFromUtf8( 3461 (java.lang.String) ref); 3462 username_ = b; 3463 return b; 3464 } else { 3465 return (com.google.protobuf.ByteString) ref; 3466 } 3467 } 3468 3469 public static final int OAUTH_SCOPE_FIELD_NUMBER = 3; 3470 private volatile java.lang.Object oauthScope_; 3471 /** 3472 * <pre> 3473 * OAuth scope. 3474 * </pre> 3475 * 3476 * <code>string oauth_scope = 3;</code> 3477 */ 3478 public java.lang.String getOauthScope() { 3479 java.lang.Object ref = oauthScope_; 3480 if (ref instanceof java.lang.String) { 3481 return (java.lang.String) ref; 3482 } else { 3483 com.google.protobuf.ByteString bs = 3484 (com.google.protobuf.ByteString) ref; 3485 java.lang.String s = bs.toStringUtf8(); 3486 oauthScope_ = s; 3487 return s; 3488 } 3489 } 3490 /** 3491 * <pre> 3492 * OAuth scope. 3493 * </pre> 3494 * 3495 * <code>string oauth_scope = 3;</code> 3496 */ 3497 public com.google.protobuf.ByteString 3498 getOauthScopeBytes() { 3499 java.lang.Object ref = oauthScope_; 3500 if (ref instanceof java.lang.String) { 3501 com.google.protobuf.ByteString b = 3502 com.google.protobuf.ByteString.copyFromUtf8( 3503 (java.lang.String) ref); 3504 oauthScope_ = b; 3505 return b; 3506 } else { 3507 return (com.google.protobuf.ByteString) ref; 3508 } 3509 } 3510 3511 private byte memoizedIsInitialized = -1; 3512 public final boolean isInitialized() { 3513 byte isInitialized = memoizedIsInitialized; 3514 if (isInitialized == 1) return true; 3515 if (isInitialized == 0) return false; 3516 3517 memoizedIsInitialized = 1; 3518 return true; 3519 } 3520 3521 public void writeTo(com.google.protobuf.CodedOutputStream output) 3522 throws java.io.IOException { 3523 if (payload_ != null) { 3524 output.writeMessage(1, getPayload()); 3525 } 3526 if (!getUsernameBytes().isEmpty()) { 3527 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); 3528 } 3529 if (!getOauthScopeBytes().isEmpty()) { 3530 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScope_); 3531 } 3532 unknownFields.writeTo(output); 3533 } 3534 3535 public int getSerializedSize() { 3536 int size = memoizedSize; 3537 if (size != -1) return size; 3538 3539 size = 0; 3540 if (payload_ != null) { 3541 size += com.google.protobuf.CodedOutputStream 3542 .computeMessageSize(1, getPayload()); 3543 } 3544 if (!getUsernameBytes().isEmpty()) { 3545 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); 3546 } 3547 if (!getOauthScopeBytes().isEmpty()) { 3548 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauthScope_); 3549 } 3550 size += unknownFields.getSerializedSize(); 3551 memoizedSize = size; 3552 return size; 3553 } 3554 3555 @java.lang.Override 3556 public boolean equals(final java.lang.Object obj) { 3557 if (obj == this) { 3558 return true; 3559 } 3560 if (!(obj instanceof io.grpc.testing.integration.Messages.SimpleResponse)) { 3561 return super.equals(obj); 3562 } 3563 io.grpc.testing.integration.Messages.SimpleResponse other = (io.grpc.testing.integration.Messages.SimpleResponse) obj; 3564 3565 boolean result = true; 3566 result = result && (hasPayload() == other.hasPayload()); 3567 if (hasPayload()) { 3568 result = result && getPayload() 3569 .equals(other.getPayload()); 3570 } 3571 result = result && getUsername() 3572 .equals(other.getUsername()); 3573 result = result && getOauthScope() 3574 .equals(other.getOauthScope()); 3575 result = result && unknownFields.equals(other.unknownFields); 3576 return result; 3577 } 3578 3579 @java.lang.Override 3580 public int hashCode() { 3581 if (memoizedHashCode != 0) { 3582 return memoizedHashCode; 3583 } 3584 int hash = 41; 3585 hash = (19 * hash) + getDescriptor().hashCode(); 3586 if (hasPayload()) { 3587 hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; 3588 hash = (53 * hash) + getPayload().hashCode(); 3589 } 3590 hash = (37 * hash) + USERNAME_FIELD_NUMBER; 3591 hash = (53 * hash) + getUsername().hashCode(); 3592 hash = (37 * hash) + OAUTH_SCOPE_FIELD_NUMBER; 3593 hash = (53 * hash) + getOauthScope().hashCode(); 3594 hash = (29 * hash) + unknownFields.hashCode(); 3595 memoizedHashCode = hash; 3596 return hash; 3597 } 3598 3599 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3600 java.nio.ByteBuffer data) 3601 throws com.google.protobuf.InvalidProtocolBufferException { 3602 return PARSER.parseFrom(data); 3603 } 3604 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3605 java.nio.ByteBuffer data, 3606 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3607 throws com.google.protobuf.InvalidProtocolBufferException { 3608 return PARSER.parseFrom(data, extensionRegistry); 3609 } 3610 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3611 com.google.protobuf.ByteString data) 3612 throws com.google.protobuf.InvalidProtocolBufferException { 3613 return PARSER.parseFrom(data); 3614 } 3615 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3616 com.google.protobuf.ByteString data, 3617 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3618 throws com.google.protobuf.InvalidProtocolBufferException { 3619 return PARSER.parseFrom(data, extensionRegistry); 3620 } 3621 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(byte[] data) 3622 throws com.google.protobuf.InvalidProtocolBufferException { 3623 return PARSER.parseFrom(data); 3624 } 3625 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3626 byte[] data, 3627 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3628 throws com.google.protobuf.InvalidProtocolBufferException { 3629 return PARSER.parseFrom(data, extensionRegistry); 3630 } 3631 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(java.io.InputStream input) 3632 throws java.io.IOException { 3633 return com.google.protobuf.GeneratedMessageV3 3634 .parseWithIOException(PARSER, input); 3635 } 3636 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3637 java.io.InputStream input, 3638 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3639 throws java.io.IOException { 3640 return com.google.protobuf.GeneratedMessageV3 3641 .parseWithIOException(PARSER, input, extensionRegistry); 3642 } 3643 public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) 3644 throws java.io.IOException { 3645 return com.google.protobuf.GeneratedMessageV3 3646 .parseDelimitedWithIOException(PARSER, input); 3647 } 3648 public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom( 3649 java.io.InputStream input, 3650 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3651 throws java.io.IOException { 3652 return com.google.protobuf.GeneratedMessageV3 3653 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 3654 } 3655 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3656 com.google.protobuf.CodedInputStream input) 3657 throws java.io.IOException { 3658 return com.google.protobuf.GeneratedMessageV3 3659 .parseWithIOException(PARSER, input); 3660 } 3661 public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( 3662 com.google.protobuf.CodedInputStream input, 3663 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3664 throws java.io.IOException { 3665 return com.google.protobuf.GeneratedMessageV3 3666 .parseWithIOException(PARSER, input, extensionRegistry); 3667 } 3668 3669 public Builder newBuilderForType() { return newBuilder(); } 3670 public static Builder newBuilder() { 3671 return DEFAULT_INSTANCE.toBuilder(); 3672 } 3673 public static Builder newBuilder(io.grpc.testing.integration.Messages.SimpleResponse prototype) { 3674 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3675 } 3676 public Builder toBuilder() { 3677 return this == DEFAULT_INSTANCE 3678 ? new Builder() : new Builder().mergeFrom(this); 3679 } 3680 3681 @java.lang.Override 3682 protected Builder newBuilderForType( 3683 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3684 Builder builder = new Builder(parent); 3685 return builder; 3686 } 3687 /** 3688 * <pre> 3689 * Unary response, as configured by the request. 3690 * </pre> 3691 * 3692 * Protobuf type {@code grpc.testing.SimpleResponse} 3693 */ 3694 public static final class Builder extends 3695 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 3696 // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleResponse) 3697 io.grpc.testing.integration.Messages.SimpleResponseOrBuilder { 3698 public static final com.google.protobuf.Descriptors.Descriptor 3699 getDescriptor() { 3700 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; 3701 } 3702 3703 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 3704 internalGetFieldAccessorTable() { 3705 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable 3706 .ensureFieldAccessorsInitialized( 3707 io.grpc.testing.integration.Messages.SimpleResponse.class, io.grpc.testing.integration.Messages.SimpleResponse.Builder.class); 3708 } 3709 3710 // Construct using io.grpc.testing.integration.Messages.SimpleResponse.newBuilder() 3711 private Builder() { 3712 maybeForceBuilderInitialization(); 3713 } 3714 3715 private Builder( 3716 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3717 super(parent); 3718 maybeForceBuilderInitialization(); 3719 } 3720 private void maybeForceBuilderInitialization() { 3721 if (com.google.protobuf.GeneratedMessageV3 3722 .alwaysUseFieldBuilders) { 3723 } 3724 } 3725 public Builder clear() { 3726 super.clear(); 3727 if (payloadBuilder_ == null) { 3728 payload_ = null; 3729 } else { 3730 payload_ = null; 3731 payloadBuilder_ = null; 3732 } 3733 username_ = ""; 3734 3735 oauthScope_ = ""; 3736 3737 return this; 3738 } 3739 3740 public com.google.protobuf.Descriptors.Descriptor 3741 getDescriptorForType() { 3742 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; 3743 } 3744 3745 public io.grpc.testing.integration.Messages.SimpleResponse getDefaultInstanceForType() { 3746 return io.grpc.testing.integration.Messages.SimpleResponse.getDefaultInstance(); 3747 } 3748 3749 public io.grpc.testing.integration.Messages.SimpleResponse build() { 3750 io.grpc.testing.integration.Messages.SimpleResponse result = buildPartial(); 3751 if (!result.isInitialized()) { 3752 throw newUninitializedMessageException(result); 3753 } 3754 return result; 3755 } 3756 3757 public io.grpc.testing.integration.Messages.SimpleResponse buildPartial() { 3758 io.grpc.testing.integration.Messages.SimpleResponse result = new io.grpc.testing.integration.Messages.SimpleResponse(this); 3759 if (payloadBuilder_ == null) { 3760 result.payload_ = payload_; 3761 } else { 3762 result.payload_ = payloadBuilder_.build(); 3763 } 3764 result.username_ = username_; 3765 result.oauthScope_ = oauthScope_; 3766 onBuilt(); 3767 return result; 3768 } 3769 3770 public Builder clone() { 3771 return (Builder) super.clone(); 3772 } 3773 public Builder setField( 3774 com.google.protobuf.Descriptors.FieldDescriptor field, 3775 java.lang.Object value) { 3776 return (Builder) super.setField(field, value); 3777 } 3778 public Builder clearField( 3779 com.google.protobuf.Descriptors.FieldDescriptor field) { 3780 return (Builder) super.clearField(field); 3781 } 3782 public Builder clearOneof( 3783 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3784 return (Builder) super.clearOneof(oneof); 3785 } 3786 public Builder setRepeatedField( 3787 com.google.protobuf.Descriptors.FieldDescriptor field, 3788 int index, java.lang.Object value) { 3789 return (Builder) super.setRepeatedField(field, index, value); 3790 } 3791 public Builder addRepeatedField( 3792 com.google.protobuf.Descriptors.FieldDescriptor field, 3793 java.lang.Object value) { 3794 return (Builder) super.addRepeatedField(field, value); 3795 } 3796 public Builder mergeFrom(com.google.protobuf.Message other) { 3797 if (other instanceof io.grpc.testing.integration.Messages.SimpleResponse) { 3798 return mergeFrom((io.grpc.testing.integration.Messages.SimpleResponse)other); 3799 } else { 3800 super.mergeFrom(other); 3801 return this; 3802 } 3803 } 3804 3805 public Builder mergeFrom(io.grpc.testing.integration.Messages.SimpleResponse other) { 3806 if (other == io.grpc.testing.integration.Messages.SimpleResponse.getDefaultInstance()) return this; 3807 if (other.hasPayload()) { 3808 mergePayload(other.getPayload()); 3809 } 3810 if (!other.getUsername().isEmpty()) { 3811 username_ = other.username_; 3812 onChanged(); 3813 } 3814 if (!other.getOauthScope().isEmpty()) { 3815 oauthScope_ = other.oauthScope_; 3816 onChanged(); 3817 } 3818 this.mergeUnknownFields(other.unknownFields); 3819 onChanged(); 3820 return this; 3821 } 3822 3823 public final boolean isInitialized() { 3824 return true; 3825 } 3826 3827 public Builder mergeFrom( 3828 com.google.protobuf.CodedInputStream input, 3829 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3830 throws java.io.IOException { 3831 io.grpc.testing.integration.Messages.SimpleResponse parsedMessage = null; 3832 try { 3833 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3834 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3835 parsedMessage = (io.grpc.testing.integration.Messages.SimpleResponse) e.getUnfinishedMessage(); 3836 throw e.unwrapIOException(); 3837 } finally { 3838 if (parsedMessage != null) { 3839 mergeFrom(parsedMessage); 3840 } 3841 } 3842 return this; 3843 } 3844 3845 private io.grpc.testing.integration.Messages.Payload payload_ = null; 3846 private com.google.protobuf.SingleFieldBuilderV3< 3847 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; 3848 /** 3849 * <pre> 3850 * Payload to increase message size. 3851 * </pre> 3852 * 3853 * <code>.grpc.testing.Payload payload = 1;</code> 3854 */ 3855 public boolean hasPayload() { 3856 return payloadBuilder_ != null || payload_ != null; 3857 } 3858 /** 3859 * <pre> 3860 * Payload to increase message size. 3861 * </pre> 3862 * 3863 * <code>.grpc.testing.Payload payload = 1;</code> 3864 */ 3865 public io.grpc.testing.integration.Messages.Payload getPayload() { 3866 if (payloadBuilder_ == null) { 3867 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 3868 } else { 3869 return payloadBuilder_.getMessage(); 3870 } 3871 } 3872 /** 3873 * <pre> 3874 * Payload to increase message size. 3875 * </pre> 3876 * 3877 * <code>.grpc.testing.Payload payload = 1;</code> 3878 */ 3879 public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { 3880 if (payloadBuilder_ == null) { 3881 if (value == null) { 3882 throw new NullPointerException(); 3883 } 3884 payload_ = value; 3885 onChanged(); 3886 } else { 3887 payloadBuilder_.setMessage(value); 3888 } 3889 3890 return this; 3891 } 3892 /** 3893 * <pre> 3894 * Payload to increase message size. 3895 * </pre> 3896 * 3897 * <code>.grpc.testing.Payload payload = 1;</code> 3898 */ 3899 public Builder setPayload( 3900 io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { 3901 if (payloadBuilder_ == null) { 3902 payload_ = builderForValue.build(); 3903 onChanged(); 3904 } else { 3905 payloadBuilder_.setMessage(builderForValue.build()); 3906 } 3907 3908 return this; 3909 } 3910 /** 3911 * <pre> 3912 * Payload to increase message size. 3913 * </pre> 3914 * 3915 * <code>.grpc.testing.Payload payload = 1;</code> 3916 */ 3917 public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { 3918 if (payloadBuilder_ == null) { 3919 if (payload_ != null) { 3920 payload_ = 3921 io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); 3922 } else { 3923 payload_ = value; 3924 } 3925 onChanged(); 3926 } else { 3927 payloadBuilder_.mergeFrom(value); 3928 } 3929 3930 return this; 3931 } 3932 /** 3933 * <pre> 3934 * Payload to increase message size. 3935 * </pre> 3936 * 3937 * <code>.grpc.testing.Payload payload = 1;</code> 3938 */ 3939 public Builder clearPayload() { 3940 if (payloadBuilder_ == null) { 3941 payload_ = null; 3942 onChanged(); 3943 } else { 3944 payload_ = null; 3945 payloadBuilder_ = null; 3946 } 3947 3948 return this; 3949 } 3950 /** 3951 * <pre> 3952 * Payload to increase message size. 3953 * </pre> 3954 * 3955 * <code>.grpc.testing.Payload payload = 1;</code> 3956 */ 3957 public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { 3958 3959 onChanged(); 3960 return getPayloadFieldBuilder().getBuilder(); 3961 } 3962 /** 3963 * <pre> 3964 * Payload to increase message size. 3965 * </pre> 3966 * 3967 * <code>.grpc.testing.Payload payload = 1;</code> 3968 */ 3969 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 3970 if (payloadBuilder_ != null) { 3971 return payloadBuilder_.getMessageOrBuilder(); 3972 } else { 3973 return payload_ == null ? 3974 io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 3975 } 3976 } 3977 /** 3978 * <pre> 3979 * Payload to increase message size. 3980 * </pre> 3981 * 3982 * <code>.grpc.testing.Payload payload = 1;</code> 3983 */ 3984 private com.google.protobuf.SingleFieldBuilderV3< 3985 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> 3986 getPayloadFieldBuilder() { 3987 if (payloadBuilder_ == null) { 3988 payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 3989 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( 3990 getPayload(), 3991 getParentForChildren(), 3992 isClean()); 3993 payload_ = null; 3994 } 3995 return payloadBuilder_; 3996 } 3997 3998 private java.lang.Object username_ = ""; 3999 /** 4000 * <pre> 4001 * The user the request came from, for verifying authentication was 4002 * successful when the client expected it. 4003 * </pre> 4004 * 4005 * <code>string username = 2;</code> 4006 */ 4007 public java.lang.String getUsername() { 4008 java.lang.Object ref = username_; 4009 if (!(ref instanceof java.lang.String)) { 4010 com.google.protobuf.ByteString bs = 4011 (com.google.protobuf.ByteString) ref; 4012 java.lang.String s = bs.toStringUtf8(); 4013 username_ = s; 4014 return s; 4015 } else { 4016 return (java.lang.String) ref; 4017 } 4018 } 4019 /** 4020 * <pre> 4021 * The user the request came from, for verifying authentication was 4022 * successful when the client expected it. 4023 * </pre> 4024 * 4025 * <code>string username = 2;</code> 4026 */ 4027 public com.google.protobuf.ByteString 4028 getUsernameBytes() { 4029 java.lang.Object ref = username_; 4030 if (ref instanceof String) { 4031 com.google.protobuf.ByteString b = 4032 com.google.protobuf.ByteString.copyFromUtf8( 4033 (java.lang.String) ref); 4034 username_ = b; 4035 return b; 4036 } else { 4037 return (com.google.protobuf.ByteString) ref; 4038 } 4039 } 4040 /** 4041 * <pre> 4042 * The user the request came from, for verifying authentication was 4043 * successful when the client expected it. 4044 * </pre> 4045 * 4046 * <code>string username = 2;</code> 4047 */ 4048 public Builder setUsername( 4049 java.lang.String value) { 4050 if (value == null) { 4051 throw new NullPointerException(); 4052 } 4053 4054 username_ = value; 4055 onChanged(); 4056 return this; 4057 } 4058 /** 4059 * <pre> 4060 * The user the request came from, for verifying authentication was 4061 * successful when the client expected it. 4062 * </pre> 4063 * 4064 * <code>string username = 2;</code> 4065 */ 4066 public Builder clearUsername() { 4067 4068 username_ = getDefaultInstance().getUsername(); 4069 onChanged(); 4070 return this; 4071 } 4072 /** 4073 * <pre> 4074 * The user the request came from, for verifying authentication was 4075 * successful when the client expected it. 4076 * </pre> 4077 * 4078 * <code>string username = 2;</code> 4079 */ 4080 public Builder setUsernameBytes( 4081 com.google.protobuf.ByteString value) { 4082 if (value == null) { 4083 throw new NullPointerException(); 4084 } 4085 checkByteStringIsUtf8(value); 4086 4087 username_ = value; 4088 onChanged(); 4089 return this; 4090 } 4091 4092 private java.lang.Object oauthScope_ = ""; 4093 /** 4094 * <pre> 4095 * OAuth scope. 4096 * </pre> 4097 * 4098 * <code>string oauth_scope = 3;</code> 4099 */ 4100 public java.lang.String getOauthScope() { 4101 java.lang.Object ref = oauthScope_; 4102 if (!(ref instanceof java.lang.String)) { 4103 com.google.protobuf.ByteString bs = 4104 (com.google.protobuf.ByteString) ref; 4105 java.lang.String s = bs.toStringUtf8(); 4106 oauthScope_ = s; 4107 return s; 4108 } else { 4109 return (java.lang.String) ref; 4110 } 4111 } 4112 /** 4113 * <pre> 4114 * OAuth scope. 4115 * </pre> 4116 * 4117 * <code>string oauth_scope = 3;</code> 4118 */ 4119 public com.google.protobuf.ByteString 4120 getOauthScopeBytes() { 4121 java.lang.Object ref = oauthScope_; 4122 if (ref instanceof String) { 4123 com.google.protobuf.ByteString b = 4124 com.google.protobuf.ByteString.copyFromUtf8( 4125 (java.lang.String) ref); 4126 oauthScope_ = b; 4127 return b; 4128 } else { 4129 return (com.google.protobuf.ByteString) ref; 4130 } 4131 } 4132 /** 4133 * <pre> 4134 * OAuth scope. 4135 * </pre> 4136 * 4137 * <code>string oauth_scope = 3;</code> 4138 */ 4139 public Builder setOauthScope( 4140 java.lang.String value) { 4141 if (value == null) { 4142 throw new NullPointerException(); 4143 } 4144 4145 oauthScope_ = value; 4146 onChanged(); 4147 return this; 4148 } 4149 /** 4150 * <pre> 4151 * OAuth scope. 4152 * </pre> 4153 * 4154 * <code>string oauth_scope = 3;</code> 4155 */ 4156 public Builder clearOauthScope() { 4157 4158 oauthScope_ = getDefaultInstance().getOauthScope(); 4159 onChanged(); 4160 return this; 4161 } 4162 /** 4163 * <pre> 4164 * OAuth scope. 4165 * </pre> 4166 * 4167 * <code>string oauth_scope = 3;</code> 4168 */ 4169 public Builder setOauthScopeBytes( 4170 com.google.protobuf.ByteString value) { 4171 if (value == null) { 4172 throw new NullPointerException(); 4173 } 4174 checkByteStringIsUtf8(value); 4175 4176 oauthScope_ = value; 4177 onChanged(); 4178 return this; 4179 } 4180 public final Builder setUnknownFields( 4181 final com.google.protobuf.UnknownFieldSet unknownFields) { 4182 return super.setUnknownFieldsProto3(unknownFields); 4183 } 4184 4185 public final Builder mergeUnknownFields( 4186 final com.google.protobuf.UnknownFieldSet unknownFields) { 4187 return super.mergeUnknownFields(unknownFields); 4188 } 4189 4190 4191 // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleResponse) 4192 } 4193 4194 // @@protoc_insertion_point(class_scope:grpc.testing.SimpleResponse) 4195 private static final io.grpc.testing.integration.Messages.SimpleResponse DEFAULT_INSTANCE; 4196 static { 4197 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.SimpleResponse(); 4198 } 4199 4200 public static io.grpc.testing.integration.Messages.SimpleResponse getDefaultInstance() { 4201 return DEFAULT_INSTANCE; 4202 } 4203 4204 private static final com.google.protobuf.Parser<SimpleResponse> 4205 PARSER = new com.google.protobuf.AbstractParser<SimpleResponse>() { 4206 public SimpleResponse parsePartialFrom( 4207 com.google.protobuf.CodedInputStream input, 4208 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4209 throws com.google.protobuf.InvalidProtocolBufferException { 4210 return new SimpleResponse(input, extensionRegistry); 4211 } 4212 }; 4213 4214 public static com.google.protobuf.Parser<SimpleResponse> parser() { 4215 return PARSER; 4216 } 4217 4218 @java.lang.Override 4219 public com.google.protobuf.Parser<SimpleResponse> getParserForType() { 4220 return PARSER; 4221 } 4222 4223 public io.grpc.testing.integration.Messages.SimpleResponse getDefaultInstanceForType() { 4224 return DEFAULT_INSTANCE; 4225 } 4226 4227 } 4228 4229 public interface SimpleContextOrBuilder extends 4230 // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleContext) 4231 com.google.protobuf.MessageOrBuilder { 4232 4233 /** 4234 * <code>string value = 1;</code> 4235 */ 4236 java.lang.String getValue(); 4237 /** 4238 * <code>string value = 1;</code> 4239 */ 4240 com.google.protobuf.ByteString 4241 getValueBytes(); 4242 } 4243 /** 4244 * Protobuf type {@code grpc.testing.SimpleContext} 4245 */ 4246 public static final class SimpleContext extends 4247 com.google.protobuf.GeneratedMessageV3 implements 4248 // @@protoc_insertion_point(message_implements:grpc.testing.SimpleContext) 4249 SimpleContextOrBuilder { 4250 private static final long serialVersionUID = 0L; 4251 // Use SimpleContext.newBuilder() to construct. 4252 private SimpleContext(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4253 super(builder); 4254 } 4255 private SimpleContext() { 4256 value_ = ""; 4257 } 4258 4259 @java.lang.Override 4260 public final com.google.protobuf.UnknownFieldSet 4261 getUnknownFields() { 4262 return this.unknownFields; 4263 } 4264 private SimpleContext( 4265 com.google.protobuf.CodedInputStream input, 4266 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4267 throws com.google.protobuf.InvalidProtocolBufferException { 4268 this(); 4269 if (extensionRegistry == null) { 4270 throw new java.lang.NullPointerException(); 4271 } 4272 int mutable_bitField0_ = 0; 4273 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4274 com.google.protobuf.UnknownFieldSet.newBuilder(); 4275 try { 4276 boolean done = false; 4277 while (!done) { 4278 int tag = input.readTag(); 4279 switch (tag) { 4280 case 0: 4281 done = true; 4282 break; 4283 default: { 4284 if (!parseUnknownFieldProto3( 4285 input, unknownFields, extensionRegistry, tag)) { 4286 done = true; 4287 } 4288 break; 4289 } 4290 case 10: { 4291 java.lang.String s = input.readStringRequireUtf8(); 4292 4293 value_ = s; 4294 break; 4295 } 4296 } 4297 } 4298 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4299 throw e.setUnfinishedMessage(this); 4300 } catch (java.io.IOException e) { 4301 throw new com.google.protobuf.InvalidProtocolBufferException( 4302 e).setUnfinishedMessage(this); 4303 } finally { 4304 this.unknownFields = unknownFields.build(); 4305 makeExtensionsImmutable(); 4306 } 4307 } 4308 public static final com.google.protobuf.Descriptors.Descriptor 4309 getDescriptor() { 4310 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_descriptor; 4311 } 4312 4313 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 4314 internalGetFieldAccessorTable() { 4315 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_fieldAccessorTable 4316 .ensureFieldAccessorsInitialized( 4317 io.grpc.testing.integration.Messages.SimpleContext.class, io.grpc.testing.integration.Messages.SimpleContext.Builder.class); 4318 } 4319 4320 public static final int VALUE_FIELD_NUMBER = 1; 4321 private volatile java.lang.Object value_; 4322 /** 4323 * <code>string value = 1;</code> 4324 */ 4325 public java.lang.String getValue() { 4326 java.lang.Object ref = value_; 4327 if (ref instanceof java.lang.String) { 4328 return (java.lang.String) ref; 4329 } else { 4330 com.google.protobuf.ByteString bs = 4331 (com.google.protobuf.ByteString) ref; 4332 java.lang.String s = bs.toStringUtf8(); 4333 value_ = s; 4334 return s; 4335 } 4336 } 4337 /** 4338 * <code>string value = 1;</code> 4339 */ 4340 public com.google.protobuf.ByteString 4341 getValueBytes() { 4342 java.lang.Object ref = value_; 4343 if (ref instanceof java.lang.String) { 4344 com.google.protobuf.ByteString b = 4345 com.google.protobuf.ByteString.copyFromUtf8( 4346 (java.lang.String) ref); 4347 value_ = b; 4348 return b; 4349 } else { 4350 return (com.google.protobuf.ByteString) ref; 4351 } 4352 } 4353 4354 private byte memoizedIsInitialized = -1; 4355 public final boolean isInitialized() { 4356 byte isInitialized = memoizedIsInitialized; 4357 if (isInitialized == 1) return true; 4358 if (isInitialized == 0) return false; 4359 4360 memoizedIsInitialized = 1; 4361 return true; 4362 } 4363 4364 public void writeTo(com.google.protobuf.CodedOutputStream output) 4365 throws java.io.IOException { 4366 if (!getValueBytes().isEmpty()) { 4367 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); 4368 } 4369 unknownFields.writeTo(output); 4370 } 4371 4372 public int getSerializedSize() { 4373 int size = memoizedSize; 4374 if (size != -1) return size; 4375 4376 size = 0; 4377 if (!getValueBytes().isEmpty()) { 4378 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); 4379 } 4380 size += unknownFields.getSerializedSize(); 4381 memoizedSize = size; 4382 return size; 4383 } 4384 4385 @java.lang.Override 4386 public boolean equals(final java.lang.Object obj) { 4387 if (obj == this) { 4388 return true; 4389 } 4390 if (!(obj instanceof io.grpc.testing.integration.Messages.SimpleContext)) { 4391 return super.equals(obj); 4392 } 4393 io.grpc.testing.integration.Messages.SimpleContext other = (io.grpc.testing.integration.Messages.SimpleContext) obj; 4394 4395 boolean result = true; 4396 result = result && getValue() 4397 .equals(other.getValue()); 4398 result = result && unknownFields.equals(other.unknownFields); 4399 return result; 4400 } 4401 4402 @java.lang.Override 4403 public int hashCode() { 4404 if (memoizedHashCode != 0) { 4405 return memoizedHashCode; 4406 } 4407 int hash = 41; 4408 hash = (19 * hash) + getDescriptor().hashCode(); 4409 hash = (37 * hash) + VALUE_FIELD_NUMBER; 4410 hash = (53 * hash) + getValue().hashCode(); 4411 hash = (29 * hash) + unknownFields.hashCode(); 4412 memoizedHashCode = hash; 4413 return hash; 4414 } 4415 4416 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4417 java.nio.ByteBuffer data) 4418 throws com.google.protobuf.InvalidProtocolBufferException { 4419 return PARSER.parseFrom(data); 4420 } 4421 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4422 java.nio.ByteBuffer data, 4423 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4424 throws com.google.protobuf.InvalidProtocolBufferException { 4425 return PARSER.parseFrom(data, extensionRegistry); 4426 } 4427 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4428 com.google.protobuf.ByteString data) 4429 throws com.google.protobuf.InvalidProtocolBufferException { 4430 return PARSER.parseFrom(data); 4431 } 4432 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4433 com.google.protobuf.ByteString data, 4434 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4435 throws com.google.protobuf.InvalidProtocolBufferException { 4436 return PARSER.parseFrom(data, extensionRegistry); 4437 } 4438 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(byte[] data) 4439 throws com.google.protobuf.InvalidProtocolBufferException { 4440 return PARSER.parseFrom(data); 4441 } 4442 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4443 byte[] data, 4444 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4445 throws com.google.protobuf.InvalidProtocolBufferException { 4446 return PARSER.parseFrom(data, extensionRegistry); 4447 } 4448 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(java.io.InputStream input) 4449 throws java.io.IOException { 4450 return com.google.protobuf.GeneratedMessageV3 4451 .parseWithIOException(PARSER, input); 4452 } 4453 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4454 java.io.InputStream input, 4455 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4456 throws java.io.IOException { 4457 return com.google.protobuf.GeneratedMessageV3 4458 .parseWithIOException(PARSER, input, extensionRegistry); 4459 } 4460 public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom(java.io.InputStream input) 4461 throws java.io.IOException { 4462 return com.google.protobuf.GeneratedMessageV3 4463 .parseDelimitedWithIOException(PARSER, input); 4464 } 4465 public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom( 4466 java.io.InputStream input, 4467 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4468 throws java.io.IOException { 4469 return com.google.protobuf.GeneratedMessageV3 4470 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 4471 } 4472 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4473 com.google.protobuf.CodedInputStream input) 4474 throws java.io.IOException { 4475 return com.google.protobuf.GeneratedMessageV3 4476 .parseWithIOException(PARSER, input); 4477 } 4478 public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( 4479 com.google.protobuf.CodedInputStream input, 4480 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4481 throws java.io.IOException { 4482 return com.google.protobuf.GeneratedMessageV3 4483 .parseWithIOException(PARSER, input, extensionRegistry); 4484 } 4485 4486 public Builder newBuilderForType() { return newBuilder(); } 4487 public static Builder newBuilder() { 4488 return DEFAULT_INSTANCE.toBuilder(); 4489 } 4490 public static Builder newBuilder(io.grpc.testing.integration.Messages.SimpleContext prototype) { 4491 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4492 } 4493 public Builder toBuilder() { 4494 return this == DEFAULT_INSTANCE 4495 ? new Builder() : new Builder().mergeFrom(this); 4496 } 4497 4498 @java.lang.Override 4499 protected Builder newBuilderForType( 4500 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4501 Builder builder = new Builder(parent); 4502 return builder; 4503 } 4504 /** 4505 * Protobuf type {@code grpc.testing.SimpleContext} 4506 */ 4507 public static final class Builder extends 4508 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 4509 // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleContext) 4510 io.grpc.testing.integration.Messages.SimpleContextOrBuilder { 4511 public static final com.google.protobuf.Descriptors.Descriptor 4512 getDescriptor() { 4513 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_descriptor; 4514 } 4515 4516 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 4517 internalGetFieldAccessorTable() { 4518 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_fieldAccessorTable 4519 .ensureFieldAccessorsInitialized( 4520 io.grpc.testing.integration.Messages.SimpleContext.class, io.grpc.testing.integration.Messages.SimpleContext.Builder.class); 4521 } 4522 4523 // Construct using io.grpc.testing.integration.Messages.SimpleContext.newBuilder() 4524 private Builder() { 4525 maybeForceBuilderInitialization(); 4526 } 4527 4528 private Builder( 4529 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4530 super(parent); 4531 maybeForceBuilderInitialization(); 4532 } 4533 private void maybeForceBuilderInitialization() { 4534 if (com.google.protobuf.GeneratedMessageV3 4535 .alwaysUseFieldBuilders) { 4536 } 4537 } 4538 public Builder clear() { 4539 super.clear(); 4540 value_ = ""; 4541 4542 return this; 4543 } 4544 4545 public com.google.protobuf.Descriptors.Descriptor 4546 getDescriptorForType() { 4547 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_descriptor; 4548 } 4549 4550 public io.grpc.testing.integration.Messages.SimpleContext getDefaultInstanceForType() { 4551 return io.grpc.testing.integration.Messages.SimpleContext.getDefaultInstance(); 4552 } 4553 4554 public io.grpc.testing.integration.Messages.SimpleContext build() { 4555 io.grpc.testing.integration.Messages.SimpleContext result = buildPartial(); 4556 if (!result.isInitialized()) { 4557 throw newUninitializedMessageException(result); 4558 } 4559 return result; 4560 } 4561 4562 public io.grpc.testing.integration.Messages.SimpleContext buildPartial() { 4563 io.grpc.testing.integration.Messages.SimpleContext result = new io.grpc.testing.integration.Messages.SimpleContext(this); 4564 result.value_ = value_; 4565 onBuilt(); 4566 return result; 4567 } 4568 4569 public Builder clone() { 4570 return (Builder) super.clone(); 4571 } 4572 public Builder setField( 4573 com.google.protobuf.Descriptors.FieldDescriptor field, 4574 java.lang.Object value) { 4575 return (Builder) super.setField(field, value); 4576 } 4577 public Builder clearField( 4578 com.google.protobuf.Descriptors.FieldDescriptor field) { 4579 return (Builder) super.clearField(field); 4580 } 4581 public Builder clearOneof( 4582 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 4583 return (Builder) super.clearOneof(oneof); 4584 } 4585 public Builder setRepeatedField( 4586 com.google.protobuf.Descriptors.FieldDescriptor field, 4587 int index, java.lang.Object value) { 4588 return (Builder) super.setRepeatedField(field, index, value); 4589 } 4590 public Builder addRepeatedField( 4591 com.google.protobuf.Descriptors.FieldDescriptor field, 4592 java.lang.Object value) { 4593 return (Builder) super.addRepeatedField(field, value); 4594 } 4595 public Builder mergeFrom(com.google.protobuf.Message other) { 4596 if (other instanceof io.grpc.testing.integration.Messages.SimpleContext) { 4597 return mergeFrom((io.grpc.testing.integration.Messages.SimpleContext)other); 4598 } else { 4599 super.mergeFrom(other); 4600 return this; 4601 } 4602 } 4603 4604 public Builder mergeFrom(io.grpc.testing.integration.Messages.SimpleContext other) { 4605 if (other == io.grpc.testing.integration.Messages.SimpleContext.getDefaultInstance()) return this; 4606 if (!other.getValue().isEmpty()) { 4607 value_ = other.value_; 4608 onChanged(); 4609 } 4610 this.mergeUnknownFields(other.unknownFields); 4611 onChanged(); 4612 return this; 4613 } 4614 4615 public final boolean isInitialized() { 4616 return true; 4617 } 4618 4619 public Builder mergeFrom( 4620 com.google.protobuf.CodedInputStream input, 4621 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4622 throws java.io.IOException { 4623 io.grpc.testing.integration.Messages.SimpleContext parsedMessage = null; 4624 try { 4625 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4626 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4627 parsedMessage = (io.grpc.testing.integration.Messages.SimpleContext) e.getUnfinishedMessage(); 4628 throw e.unwrapIOException(); 4629 } finally { 4630 if (parsedMessage != null) { 4631 mergeFrom(parsedMessage); 4632 } 4633 } 4634 return this; 4635 } 4636 4637 private java.lang.Object value_ = ""; 4638 /** 4639 * <code>string value = 1;</code> 4640 */ 4641 public java.lang.String getValue() { 4642 java.lang.Object ref = value_; 4643 if (!(ref instanceof java.lang.String)) { 4644 com.google.protobuf.ByteString bs = 4645 (com.google.protobuf.ByteString) ref; 4646 java.lang.String s = bs.toStringUtf8(); 4647 value_ = s; 4648 return s; 4649 } else { 4650 return (java.lang.String) ref; 4651 } 4652 } 4653 /** 4654 * <code>string value = 1;</code> 4655 */ 4656 public com.google.protobuf.ByteString 4657 getValueBytes() { 4658 java.lang.Object ref = value_; 4659 if (ref instanceof String) { 4660 com.google.protobuf.ByteString b = 4661 com.google.protobuf.ByteString.copyFromUtf8( 4662 (java.lang.String) ref); 4663 value_ = b; 4664 return b; 4665 } else { 4666 return (com.google.protobuf.ByteString) ref; 4667 } 4668 } 4669 /** 4670 * <code>string value = 1;</code> 4671 */ 4672 public Builder setValue( 4673 java.lang.String value) { 4674 if (value == null) { 4675 throw new NullPointerException(); 4676 } 4677 4678 value_ = value; 4679 onChanged(); 4680 return this; 4681 } 4682 /** 4683 * <code>string value = 1;</code> 4684 */ 4685 public Builder clearValue() { 4686 4687 value_ = getDefaultInstance().getValue(); 4688 onChanged(); 4689 return this; 4690 } 4691 /** 4692 * <code>string value = 1;</code> 4693 */ 4694 public Builder setValueBytes( 4695 com.google.protobuf.ByteString value) { 4696 if (value == null) { 4697 throw new NullPointerException(); 4698 } 4699 checkByteStringIsUtf8(value); 4700 4701 value_ = value; 4702 onChanged(); 4703 return this; 4704 } 4705 public final Builder setUnknownFields( 4706 final com.google.protobuf.UnknownFieldSet unknownFields) { 4707 return super.setUnknownFieldsProto3(unknownFields); 4708 } 4709 4710 public final Builder mergeUnknownFields( 4711 final com.google.protobuf.UnknownFieldSet unknownFields) { 4712 return super.mergeUnknownFields(unknownFields); 4713 } 4714 4715 4716 // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleContext) 4717 } 4718 4719 // @@protoc_insertion_point(class_scope:grpc.testing.SimpleContext) 4720 private static final io.grpc.testing.integration.Messages.SimpleContext DEFAULT_INSTANCE; 4721 static { 4722 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.SimpleContext(); 4723 } 4724 4725 public static io.grpc.testing.integration.Messages.SimpleContext getDefaultInstance() { 4726 return DEFAULT_INSTANCE; 4727 } 4728 4729 private static final com.google.protobuf.Parser<SimpleContext> 4730 PARSER = new com.google.protobuf.AbstractParser<SimpleContext>() { 4731 public SimpleContext parsePartialFrom( 4732 com.google.protobuf.CodedInputStream input, 4733 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4734 throws com.google.protobuf.InvalidProtocolBufferException { 4735 return new SimpleContext(input, extensionRegistry); 4736 } 4737 }; 4738 4739 public static com.google.protobuf.Parser<SimpleContext> parser() { 4740 return PARSER; 4741 } 4742 4743 @java.lang.Override 4744 public com.google.protobuf.Parser<SimpleContext> getParserForType() { 4745 return PARSER; 4746 } 4747 4748 public io.grpc.testing.integration.Messages.SimpleContext getDefaultInstanceForType() { 4749 return DEFAULT_INSTANCE; 4750 } 4751 4752 } 4753 4754 public interface StreamingInputCallRequestOrBuilder extends 4755 // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingInputCallRequest) 4756 com.google.protobuf.MessageOrBuilder { 4757 4758 /** 4759 * <pre> 4760 * Optional input payload sent along with the request. 4761 * </pre> 4762 * 4763 * <code>.grpc.testing.Payload payload = 1;</code> 4764 */ 4765 boolean hasPayload(); 4766 /** 4767 * <pre> 4768 * Optional input payload sent along with the request. 4769 * </pre> 4770 * 4771 * <code>.grpc.testing.Payload payload = 1;</code> 4772 */ 4773 io.grpc.testing.integration.Messages.Payload getPayload(); 4774 /** 4775 * <pre> 4776 * Optional input payload sent along with the request. 4777 * </pre> 4778 * 4779 * <code>.grpc.testing.Payload payload = 1;</code> 4780 */ 4781 io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); 4782 4783 /** 4784 * <pre> 4785 * Whether the server should expect this request to be compressed. This field 4786 * is "nullable" in order to interoperate seamlessly with servers not able to 4787 * implement the full compression tests by introspecting the call to verify 4788 * the request's compression status. 4789 * </pre> 4790 * 4791 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 4792 */ 4793 boolean hasExpectCompressed(); 4794 /** 4795 * <pre> 4796 * Whether the server should expect this request to be compressed. This field 4797 * is "nullable" in order to interoperate seamlessly with servers not able to 4798 * implement the full compression tests by introspecting the call to verify 4799 * the request's compression status. 4800 * </pre> 4801 * 4802 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 4803 */ 4804 com.google.protobuf.BoolValue getExpectCompressed(); 4805 /** 4806 * <pre> 4807 * Whether the server should expect this request to be compressed. This field 4808 * is "nullable" in order to interoperate seamlessly with servers not able to 4809 * implement the full compression tests by introspecting the call to verify 4810 * the request's compression status. 4811 * </pre> 4812 * 4813 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 4814 */ 4815 com.google.protobuf.BoolValueOrBuilder getExpectCompressedOrBuilder(); 4816 } 4817 /** 4818 * <pre> 4819 * Client-streaming request. 4820 * </pre> 4821 * 4822 * Protobuf type {@code grpc.testing.StreamingInputCallRequest} 4823 */ 4824 public static final class StreamingInputCallRequest extends 4825 com.google.protobuf.GeneratedMessageV3 implements 4826 // @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallRequest) 4827 StreamingInputCallRequestOrBuilder { 4828 private static final long serialVersionUID = 0L; 4829 // Use StreamingInputCallRequest.newBuilder() to construct. 4830 private StreamingInputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4831 super(builder); 4832 } 4833 private StreamingInputCallRequest() { 4834 } 4835 4836 @java.lang.Override 4837 public final com.google.protobuf.UnknownFieldSet 4838 getUnknownFields() { 4839 return this.unknownFields; 4840 } 4841 private StreamingInputCallRequest( 4842 com.google.protobuf.CodedInputStream input, 4843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4844 throws com.google.protobuf.InvalidProtocolBufferException { 4845 this(); 4846 if (extensionRegistry == null) { 4847 throw new java.lang.NullPointerException(); 4848 } 4849 int mutable_bitField0_ = 0; 4850 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4851 com.google.protobuf.UnknownFieldSet.newBuilder(); 4852 try { 4853 boolean done = false; 4854 while (!done) { 4855 int tag = input.readTag(); 4856 switch (tag) { 4857 case 0: 4858 done = true; 4859 break; 4860 default: { 4861 if (!parseUnknownFieldProto3( 4862 input, unknownFields, extensionRegistry, tag)) { 4863 done = true; 4864 } 4865 break; 4866 } 4867 case 10: { 4868 io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; 4869 if (payload_ != null) { 4870 subBuilder = payload_.toBuilder(); 4871 } 4872 payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.parser(), extensionRegistry); 4873 if (subBuilder != null) { 4874 subBuilder.mergeFrom(payload_); 4875 payload_ = subBuilder.buildPartial(); 4876 } 4877 4878 break; 4879 } 4880 case 18: { 4881 com.google.protobuf.BoolValue.Builder subBuilder = null; 4882 if (expectCompressed_ != null) { 4883 subBuilder = expectCompressed_.toBuilder(); 4884 } 4885 expectCompressed_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); 4886 if (subBuilder != null) { 4887 subBuilder.mergeFrom(expectCompressed_); 4888 expectCompressed_ = subBuilder.buildPartial(); 4889 } 4890 4891 break; 4892 } 4893 } 4894 } 4895 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4896 throw e.setUnfinishedMessage(this); 4897 } catch (java.io.IOException e) { 4898 throw new com.google.protobuf.InvalidProtocolBufferException( 4899 e).setUnfinishedMessage(this); 4900 } finally { 4901 this.unknownFields = unknownFields.build(); 4902 makeExtensionsImmutable(); 4903 } 4904 } 4905 public static final com.google.protobuf.Descriptors.Descriptor 4906 getDescriptor() { 4907 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; 4908 } 4909 4910 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 4911 internalGetFieldAccessorTable() { 4912 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable 4913 .ensureFieldAccessorsInitialized( 4914 io.grpc.testing.integration.Messages.StreamingInputCallRequest.class, io.grpc.testing.integration.Messages.StreamingInputCallRequest.Builder.class); 4915 } 4916 4917 public static final int PAYLOAD_FIELD_NUMBER = 1; 4918 private io.grpc.testing.integration.Messages.Payload payload_; 4919 /** 4920 * <pre> 4921 * Optional input payload sent along with the request. 4922 * </pre> 4923 * 4924 * <code>.grpc.testing.Payload payload = 1;</code> 4925 */ 4926 public boolean hasPayload() { 4927 return payload_ != null; 4928 } 4929 /** 4930 * <pre> 4931 * Optional input payload sent along with the request. 4932 * </pre> 4933 * 4934 * <code>.grpc.testing.Payload payload = 1;</code> 4935 */ 4936 public io.grpc.testing.integration.Messages.Payload getPayload() { 4937 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 4938 } 4939 /** 4940 * <pre> 4941 * Optional input payload sent along with the request. 4942 * </pre> 4943 * 4944 * <code>.grpc.testing.Payload payload = 1;</code> 4945 */ 4946 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 4947 return getPayload(); 4948 } 4949 4950 public static final int EXPECT_COMPRESSED_FIELD_NUMBER = 2; 4951 private com.google.protobuf.BoolValue expectCompressed_; 4952 /** 4953 * <pre> 4954 * Whether the server should expect this request to be compressed. This field 4955 * is "nullable" in order to interoperate seamlessly with servers not able to 4956 * implement the full compression tests by introspecting the call to verify 4957 * the request's compression status. 4958 * </pre> 4959 * 4960 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 4961 */ 4962 public boolean hasExpectCompressed() { 4963 return expectCompressed_ != null; 4964 } 4965 /** 4966 * <pre> 4967 * Whether the server should expect this request to be compressed. This field 4968 * is "nullable" in order to interoperate seamlessly with servers not able to 4969 * implement the full compression tests by introspecting the call to verify 4970 * the request's compression status. 4971 * </pre> 4972 * 4973 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 4974 */ 4975 public com.google.protobuf.BoolValue getExpectCompressed() { 4976 return expectCompressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectCompressed_; 4977 } 4978 /** 4979 * <pre> 4980 * Whether the server should expect this request to be compressed. This field 4981 * is "nullable" in order to interoperate seamlessly with servers not able to 4982 * implement the full compression tests by introspecting the call to verify 4983 * the request's compression status. 4984 * </pre> 4985 * 4986 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 4987 */ 4988 public com.google.protobuf.BoolValueOrBuilder getExpectCompressedOrBuilder() { 4989 return getExpectCompressed(); 4990 } 4991 4992 private byte memoizedIsInitialized = -1; 4993 public final boolean isInitialized() { 4994 byte isInitialized = memoizedIsInitialized; 4995 if (isInitialized == 1) return true; 4996 if (isInitialized == 0) return false; 4997 4998 memoizedIsInitialized = 1; 4999 return true; 5000 } 5001 5002 public void writeTo(com.google.protobuf.CodedOutputStream output) 5003 throws java.io.IOException { 5004 if (payload_ != null) { 5005 output.writeMessage(1, getPayload()); 5006 } 5007 if (expectCompressed_ != null) { 5008 output.writeMessage(2, getExpectCompressed()); 5009 } 5010 unknownFields.writeTo(output); 5011 } 5012 5013 public int getSerializedSize() { 5014 int size = memoizedSize; 5015 if (size != -1) return size; 5016 5017 size = 0; 5018 if (payload_ != null) { 5019 size += com.google.protobuf.CodedOutputStream 5020 .computeMessageSize(1, getPayload()); 5021 } 5022 if (expectCompressed_ != null) { 5023 size += com.google.protobuf.CodedOutputStream 5024 .computeMessageSize(2, getExpectCompressed()); 5025 } 5026 size += unknownFields.getSerializedSize(); 5027 memoizedSize = size; 5028 return size; 5029 } 5030 5031 @java.lang.Override 5032 public boolean equals(final java.lang.Object obj) { 5033 if (obj == this) { 5034 return true; 5035 } 5036 if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingInputCallRequest)) { 5037 return super.equals(obj); 5038 } 5039 io.grpc.testing.integration.Messages.StreamingInputCallRequest other = (io.grpc.testing.integration.Messages.StreamingInputCallRequest) obj; 5040 5041 boolean result = true; 5042 result = result && (hasPayload() == other.hasPayload()); 5043 if (hasPayload()) { 5044 result = result && getPayload() 5045 .equals(other.getPayload()); 5046 } 5047 result = result && (hasExpectCompressed() == other.hasExpectCompressed()); 5048 if (hasExpectCompressed()) { 5049 result = result && getExpectCompressed() 5050 .equals(other.getExpectCompressed()); 5051 } 5052 result = result && unknownFields.equals(other.unknownFields); 5053 return result; 5054 } 5055 5056 @java.lang.Override 5057 public int hashCode() { 5058 if (memoizedHashCode != 0) { 5059 return memoizedHashCode; 5060 } 5061 int hash = 41; 5062 hash = (19 * hash) + getDescriptor().hashCode(); 5063 if (hasPayload()) { 5064 hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; 5065 hash = (53 * hash) + getPayload().hashCode(); 5066 } 5067 if (hasExpectCompressed()) { 5068 hash = (37 * hash) + EXPECT_COMPRESSED_FIELD_NUMBER; 5069 hash = (53 * hash) + getExpectCompressed().hashCode(); 5070 } 5071 hash = (29 * hash) + unknownFields.hashCode(); 5072 memoizedHashCode = hash; 5073 return hash; 5074 } 5075 5076 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5077 java.nio.ByteBuffer data) 5078 throws com.google.protobuf.InvalidProtocolBufferException { 5079 return PARSER.parseFrom(data); 5080 } 5081 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5082 java.nio.ByteBuffer data, 5083 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5084 throws com.google.protobuf.InvalidProtocolBufferException { 5085 return PARSER.parseFrom(data, extensionRegistry); 5086 } 5087 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5088 com.google.protobuf.ByteString data) 5089 throws com.google.protobuf.InvalidProtocolBufferException { 5090 return PARSER.parseFrom(data); 5091 } 5092 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5093 com.google.protobuf.ByteString data, 5094 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5095 throws com.google.protobuf.InvalidProtocolBufferException { 5096 return PARSER.parseFrom(data, extensionRegistry); 5097 } 5098 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(byte[] data) 5099 throws com.google.protobuf.InvalidProtocolBufferException { 5100 return PARSER.parseFrom(data); 5101 } 5102 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5103 byte[] data, 5104 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5105 throws com.google.protobuf.InvalidProtocolBufferException { 5106 return PARSER.parseFrom(data, extensionRegistry); 5107 } 5108 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input) 5109 throws java.io.IOException { 5110 return com.google.protobuf.GeneratedMessageV3 5111 .parseWithIOException(PARSER, input); 5112 } 5113 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5114 java.io.InputStream input, 5115 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5116 throws java.io.IOException { 5117 return com.google.protobuf.GeneratedMessageV3 5118 .parseWithIOException(PARSER, input, extensionRegistry); 5119 } 5120 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input) 5121 throws java.io.IOException { 5122 return com.google.protobuf.GeneratedMessageV3 5123 .parseDelimitedWithIOException(PARSER, input); 5124 } 5125 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom( 5126 java.io.InputStream input, 5127 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5128 throws java.io.IOException { 5129 return com.google.protobuf.GeneratedMessageV3 5130 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 5131 } 5132 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5133 com.google.protobuf.CodedInputStream input) 5134 throws java.io.IOException { 5135 return com.google.protobuf.GeneratedMessageV3 5136 .parseWithIOException(PARSER, input); 5137 } 5138 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( 5139 com.google.protobuf.CodedInputStream input, 5140 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5141 throws java.io.IOException { 5142 return com.google.protobuf.GeneratedMessageV3 5143 .parseWithIOException(PARSER, input, extensionRegistry); 5144 } 5145 5146 public Builder newBuilderForType() { return newBuilder(); } 5147 public static Builder newBuilder() { 5148 return DEFAULT_INSTANCE.toBuilder(); 5149 } 5150 public static Builder newBuilder(io.grpc.testing.integration.Messages.StreamingInputCallRequest prototype) { 5151 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5152 } 5153 public Builder toBuilder() { 5154 return this == DEFAULT_INSTANCE 5155 ? new Builder() : new Builder().mergeFrom(this); 5156 } 5157 5158 @java.lang.Override 5159 protected Builder newBuilderForType( 5160 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5161 Builder builder = new Builder(parent); 5162 return builder; 5163 } 5164 /** 5165 * <pre> 5166 * Client-streaming request. 5167 * </pre> 5168 * 5169 * Protobuf type {@code grpc.testing.StreamingInputCallRequest} 5170 */ 5171 public static final class Builder extends 5172 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 5173 // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallRequest) 5174 io.grpc.testing.integration.Messages.StreamingInputCallRequestOrBuilder { 5175 public static final com.google.protobuf.Descriptors.Descriptor 5176 getDescriptor() { 5177 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; 5178 } 5179 5180 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 5181 internalGetFieldAccessorTable() { 5182 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable 5183 .ensureFieldAccessorsInitialized( 5184 io.grpc.testing.integration.Messages.StreamingInputCallRequest.class, io.grpc.testing.integration.Messages.StreamingInputCallRequest.Builder.class); 5185 } 5186 5187 // Construct using io.grpc.testing.integration.Messages.StreamingInputCallRequest.newBuilder() 5188 private Builder() { 5189 maybeForceBuilderInitialization(); 5190 } 5191 5192 private Builder( 5193 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5194 super(parent); 5195 maybeForceBuilderInitialization(); 5196 } 5197 private void maybeForceBuilderInitialization() { 5198 if (com.google.protobuf.GeneratedMessageV3 5199 .alwaysUseFieldBuilders) { 5200 } 5201 } 5202 public Builder clear() { 5203 super.clear(); 5204 if (payloadBuilder_ == null) { 5205 payload_ = null; 5206 } else { 5207 payload_ = null; 5208 payloadBuilder_ = null; 5209 } 5210 if (expectCompressedBuilder_ == null) { 5211 expectCompressed_ = null; 5212 } else { 5213 expectCompressed_ = null; 5214 expectCompressedBuilder_ = null; 5215 } 5216 return this; 5217 } 5218 5219 public com.google.protobuf.Descriptors.Descriptor 5220 getDescriptorForType() { 5221 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; 5222 } 5223 5224 public io.grpc.testing.integration.Messages.StreamingInputCallRequest getDefaultInstanceForType() { 5225 return io.grpc.testing.integration.Messages.StreamingInputCallRequest.getDefaultInstance(); 5226 } 5227 5228 public io.grpc.testing.integration.Messages.StreamingInputCallRequest build() { 5229 io.grpc.testing.integration.Messages.StreamingInputCallRequest result = buildPartial(); 5230 if (!result.isInitialized()) { 5231 throw newUninitializedMessageException(result); 5232 } 5233 return result; 5234 } 5235 5236 public io.grpc.testing.integration.Messages.StreamingInputCallRequest buildPartial() { 5237 io.grpc.testing.integration.Messages.StreamingInputCallRequest result = new io.grpc.testing.integration.Messages.StreamingInputCallRequest(this); 5238 if (payloadBuilder_ == null) { 5239 result.payload_ = payload_; 5240 } else { 5241 result.payload_ = payloadBuilder_.build(); 5242 } 5243 if (expectCompressedBuilder_ == null) { 5244 result.expectCompressed_ = expectCompressed_; 5245 } else { 5246 result.expectCompressed_ = expectCompressedBuilder_.build(); 5247 } 5248 onBuilt(); 5249 return result; 5250 } 5251 5252 public Builder clone() { 5253 return (Builder) super.clone(); 5254 } 5255 public Builder setField( 5256 com.google.protobuf.Descriptors.FieldDescriptor field, 5257 java.lang.Object value) { 5258 return (Builder) super.setField(field, value); 5259 } 5260 public Builder clearField( 5261 com.google.protobuf.Descriptors.FieldDescriptor field) { 5262 return (Builder) super.clearField(field); 5263 } 5264 public Builder clearOneof( 5265 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 5266 return (Builder) super.clearOneof(oneof); 5267 } 5268 public Builder setRepeatedField( 5269 com.google.protobuf.Descriptors.FieldDescriptor field, 5270 int index, java.lang.Object value) { 5271 return (Builder) super.setRepeatedField(field, index, value); 5272 } 5273 public Builder addRepeatedField( 5274 com.google.protobuf.Descriptors.FieldDescriptor field, 5275 java.lang.Object value) { 5276 return (Builder) super.addRepeatedField(field, value); 5277 } 5278 public Builder mergeFrom(com.google.protobuf.Message other) { 5279 if (other instanceof io.grpc.testing.integration.Messages.StreamingInputCallRequest) { 5280 return mergeFrom((io.grpc.testing.integration.Messages.StreamingInputCallRequest)other); 5281 } else { 5282 super.mergeFrom(other); 5283 return this; 5284 } 5285 } 5286 5287 public Builder mergeFrom(io.grpc.testing.integration.Messages.StreamingInputCallRequest other) { 5288 if (other == io.grpc.testing.integration.Messages.StreamingInputCallRequest.getDefaultInstance()) return this; 5289 if (other.hasPayload()) { 5290 mergePayload(other.getPayload()); 5291 } 5292 if (other.hasExpectCompressed()) { 5293 mergeExpectCompressed(other.getExpectCompressed()); 5294 } 5295 this.mergeUnknownFields(other.unknownFields); 5296 onChanged(); 5297 return this; 5298 } 5299 5300 public final boolean isInitialized() { 5301 return true; 5302 } 5303 5304 public Builder mergeFrom( 5305 com.google.protobuf.CodedInputStream input, 5306 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5307 throws java.io.IOException { 5308 io.grpc.testing.integration.Messages.StreamingInputCallRequest parsedMessage = null; 5309 try { 5310 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5311 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5312 parsedMessage = (io.grpc.testing.integration.Messages.StreamingInputCallRequest) e.getUnfinishedMessage(); 5313 throw e.unwrapIOException(); 5314 } finally { 5315 if (parsedMessage != null) { 5316 mergeFrom(parsedMessage); 5317 } 5318 } 5319 return this; 5320 } 5321 5322 private io.grpc.testing.integration.Messages.Payload payload_ = null; 5323 private com.google.protobuf.SingleFieldBuilderV3< 5324 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; 5325 /** 5326 * <pre> 5327 * Optional input payload sent along with the request. 5328 * </pre> 5329 * 5330 * <code>.grpc.testing.Payload payload = 1;</code> 5331 */ 5332 public boolean hasPayload() { 5333 return payloadBuilder_ != null || payload_ != null; 5334 } 5335 /** 5336 * <pre> 5337 * Optional input payload sent along with the request. 5338 * </pre> 5339 * 5340 * <code>.grpc.testing.Payload payload = 1;</code> 5341 */ 5342 public io.grpc.testing.integration.Messages.Payload getPayload() { 5343 if (payloadBuilder_ == null) { 5344 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 5345 } else { 5346 return payloadBuilder_.getMessage(); 5347 } 5348 } 5349 /** 5350 * <pre> 5351 * Optional input payload sent along with the request. 5352 * </pre> 5353 * 5354 * <code>.grpc.testing.Payload payload = 1;</code> 5355 */ 5356 public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { 5357 if (payloadBuilder_ == null) { 5358 if (value == null) { 5359 throw new NullPointerException(); 5360 } 5361 payload_ = value; 5362 onChanged(); 5363 } else { 5364 payloadBuilder_.setMessage(value); 5365 } 5366 5367 return this; 5368 } 5369 /** 5370 * <pre> 5371 * Optional input payload sent along with the request. 5372 * </pre> 5373 * 5374 * <code>.grpc.testing.Payload payload = 1;</code> 5375 */ 5376 public Builder setPayload( 5377 io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { 5378 if (payloadBuilder_ == null) { 5379 payload_ = builderForValue.build(); 5380 onChanged(); 5381 } else { 5382 payloadBuilder_.setMessage(builderForValue.build()); 5383 } 5384 5385 return this; 5386 } 5387 /** 5388 * <pre> 5389 * Optional input payload sent along with the request. 5390 * </pre> 5391 * 5392 * <code>.grpc.testing.Payload payload = 1;</code> 5393 */ 5394 public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { 5395 if (payloadBuilder_ == null) { 5396 if (payload_ != null) { 5397 payload_ = 5398 io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); 5399 } else { 5400 payload_ = value; 5401 } 5402 onChanged(); 5403 } else { 5404 payloadBuilder_.mergeFrom(value); 5405 } 5406 5407 return this; 5408 } 5409 /** 5410 * <pre> 5411 * Optional input payload sent along with the request. 5412 * </pre> 5413 * 5414 * <code>.grpc.testing.Payload payload = 1;</code> 5415 */ 5416 public Builder clearPayload() { 5417 if (payloadBuilder_ == null) { 5418 payload_ = null; 5419 onChanged(); 5420 } else { 5421 payload_ = null; 5422 payloadBuilder_ = null; 5423 } 5424 5425 return this; 5426 } 5427 /** 5428 * <pre> 5429 * Optional input payload sent along with the request. 5430 * </pre> 5431 * 5432 * <code>.grpc.testing.Payload payload = 1;</code> 5433 */ 5434 public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { 5435 5436 onChanged(); 5437 return getPayloadFieldBuilder().getBuilder(); 5438 } 5439 /** 5440 * <pre> 5441 * Optional input payload sent along with the request. 5442 * </pre> 5443 * 5444 * <code>.grpc.testing.Payload payload = 1;</code> 5445 */ 5446 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 5447 if (payloadBuilder_ != null) { 5448 return payloadBuilder_.getMessageOrBuilder(); 5449 } else { 5450 return payload_ == null ? 5451 io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 5452 } 5453 } 5454 /** 5455 * <pre> 5456 * Optional input payload sent along with the request. 5457 * </pre> 5458 * 5459 * <code>.grpc.testing.Payload payload = 1;</code> 5460 */ 5461 private com.google.protobuf.SingleFieldBuilderV3< 5462 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> 5463 getPayloadFieldBuilder() { 5464 if (payloadBuilder_ == null) { 5465 payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 5466 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( 5467 getPayload(), 5468 getParentForChildren(), 5469 isClean()); 5470 payload_ = null; 5471 } 5472 return payloadBuilder_; 5473 } 5474 5475 private com.google.protobuf.BoolValue expectCompressed_ = null; 5476 private com.google.protobuf.SingleFieldBuilderV3< 5477 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> expectCompressedBuilder_; 5478 /** 5479 * <pre> 5480 * Whether the server should expect this request to be compressed. This field 5481 * is "nullable" in order to interoperate seamlessly with servers not able to 5482 * implement the full compression tests by introspecting the call to verify 5483 * the request's compression status. 5484 * </pre> 5485 * 5486 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5487 */ 5488 public boolean hasExpectCompressed() { 5489 return expectCompressedBuilder_ != null || expectCompressed_ != null; 5490 } 5491 /** 5492 * <pre> 5493 * Whether the server should expect this request to be compressed. This field 5494 * is "nullable" in order to interoperate seamlessly with servers not able to 5495 * implement the full compression tests by introspecting the call to verify 5496 * the request's compression status. 5497 * </pre> 5498 * 5499 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5500 */ 5501 public com.google.protobuf.BoolValue getExpectCompressed() { 5502 if (expectCompressedBuilder_ == null) { 5503 return expectCompressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectCompressed_; 5504 } else { 5505 return expectCompressedBuilder_.getMessage(); 5506 } 5507 } 5508 /** 5509 * <pre> 5510 * Whether the server should expect this request to be compressed. This field 5511 * is "nullable" in order to interoperate seamlessly with servers not able to 5512 * implement the full compression tests by introspecting the call to verify 5513 * the request's compression status. 5514 * </pre> 5515 * 5516 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5517 */ 5518 public Builder setExpectCompressed(com.google.protobuf.BoolValue value) { 5519 if (expectCompressedBuilder_ == null) { 5520 if (value == null) { 5521 throw new NullPointerException(); 5522 } 5523 expectCompressed_ = value; 5524 onChanged(); 5525 } else { 5526 expectCompressedBuilder_.setMessage(value); 5527 } 5528 5529 return this; 5530 } 5531 /** 5532 * <pre> 5533 * Whether the server should expect this request to be compressed. This field 5534 * is "nullable" in order to interoperate seamlessly with servers not able to 5535 * implement the full compression tests by introspecting the call to verify 5536 * the request's compression status. 5537 * </pre> 5538 * 5539 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5540 */ 5541 public Builder setExpectCompressed( 5542 com.google.protobuf.BoolValue.Builder builderForValue) { 5543 if (expectCompressedBuilder_ == null) { 5544 expectCompressed_ = builderForValue.build(); 5545 onChanged(); 5546 } else { 5547 expectCompressedBuilder_.setMessage(builderForValue.build()); 5548 } 5549 5550 return this; 5551 } 5552 /** 5553 * <pre> 5554 * Whether the server should expect this request to be compressed. This field 5555 * is "nullable" in order to interoperate seamlessly with servers not able to 5556 * implement the full compression tests by introspecting the call to verify 5557 * the request's compression status. 5558 * </pre> 5559 * 5560 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5561 */ 5562 public Builder mergeExpectCompressed(com.google.protobuf.BoolValue value) { 5563 if (expectCompressedBuilder_ == null) { 5564 if (expectCompressed_ != null) { 5565 expectCompressed_ = 5566 com.google.protobuf.BoolValue.newBuilder(expectCompressed_).mergeFrom(value).buildPartial(); 5567 } else { 5568 expectCompressed_ = value; 5569 } 5570 onChanged(); 5571 } else { 5572 expectCompressedBuilder_.mergeFrom(value); 5573 } 5574 5575 return this; 5576 } 5577 /** 5578 * <pre> 5579 * Whether the server should expect this request to be compressed. This field 5580 * is "nullable" in order to interoperate seamlessly with servers not able to 5581 * implement the full compression tests by introspecting the call to verify 5582 * the request's compression status. 5583 * </pre> 5584 * 5585 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5586 */ 5587 public Builder clearExpectCompressed() { 5588 if (expectCompressedBuilder_ == null) { 5589 expectCompressed_ = null; 5590 onChanged(); 5591 } else { 5592 expectCompressed_ = null; 5593 expectCompressedBuilder_ = null; 5594 } 5595 5596 return this; 5597 } 5598 /** 5599 * <pre> 5600 * Whether the server should expect this request to be compressed. This field 5601 * is "nullable" in order to interoperate seamlessly with servers not able to 5602 * implement the full compression tests by introspecting the call to verify 5603 * the request's compression status. 5604 * </pre> 5605 * 5606 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5607 */ 5608 public com.google.protobuf.BoolValue.Builder getExpectCompressedBuilder() { 5609 5610 onChanged(); 5611 return getExpectCompressedFieldBuilder().getBuilder(); 5612 } 5613 /** 5614 * <pre> 5615 * Whether the server should expect this request to be compressed. This field 5616 * is "nullable" in order to interoperate seamlessly with servers not able to 5617 * implement the full compression tests by introspecting the call to verify 5618 * the request's compression status. 5619 * </pre> 5620 * 5621 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5622 */ 5623 public com.google.protobuf.BoolValueOrBuilder getExpectCompressedOrBuilder() { 5624 if (expectCompressedBuilder_ != null) { 5625 return expectCompressedBuilder_.getMessageOrBuilder(); 5626 } else { 5627 return expectCompressed_ == null ? 5628 com.google.protobuf.BoolValue.getDefaultInstance() : expectCompressed_; 5629 } 5630 } 5631 /** 5632 * <pre> 5633 * Whether the server should expect this request to be compressed. This field 5634 * is "nullable" in order to interoperate seamlessly with servers not able to 5635 * implement the full compression tests by introspecting the call to verify 5636 * the request's compression status. 5637 * </pre> 5638 * 5639 * <code>.google.protobuf.BoolValue expect_compressed = 2;</code> 5640 */ 5641 private com.google.protobuf.SingleFieldBuilderV3< 5642 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 5643 getExpectCompressedFieldBuilder() { 5644 if (expectCompressedBuilder_ == null) { 5645 expectCompressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 5646 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( 5647 getExpectCompressed(), 5648 getParentForChildren(), 5649 isClean()); 5650 expectCompressed_ = null; 5651 } 5652 return expectCompressedBuilder_; 5653 } 5654 public final Builder setUnknownFields( 5655 final com.google.protobuf.UnknownFieldSet unknownFields) { 5656 return super.setUnknownFieldsProto3(unknownFields); 5657 } 5658 5659 public final Builder mergeUnknownFields( 5660 final com.google.protobuf.UnknownFieldSet unknownFields) { 5661 return super.mergeUnknownFields(unknownFields); 5662 } 5663 5664 5665 // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingInputCallRequest) 5666 } 5667 5668 // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallRequest) 5669 private static final io.grpc.testing.integration.Messages.StreamingInputCallRequest DEFAULT_INSTANCE; 5670 static { 5671 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.StreamingInputCallRequest(); 5672 } 5673 5674 public static io.grpc.testing.integration.Messages.StreamingInputCallRequest getDefaultInstance() { 5675 return DEFAULT_INSTANCE; 5676 } 5677 5678 private static final com.google.protobuf.Parser<StreamingInputCallRequest> 5679 PARSER = new com.google.protobuf.AbstractParser<StreamingInputCallRequest>() { 5680 public StreamingInputCallRequest parsePartialFrom( 5681 com.google.protobuf.CodedInputStream input, 5682 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5683 throws com.google.protobuf.InvalidProtocolBufferException { 5684 return new StreamingInputCallRequest(input, extensionRegistry); 5685 } 5686 }; 5687 5688 public static com.google.protobuf.Parser<StreamingInputCallRequest> parser() { 5689 return PARSER; 5690 } 5691 5692 @java.lang.Override 5693 public com.google.protobuf.Parser<StreamingInputCallRequest> getParserForType() { 5694 return PARSER; 5695 } 5696 5697 public io.grpc.testing.integration.Messages.StreamingInputCallRequest getDefaultInstanceForType() { 5698 return DEFAULT_INSTANCE; 5699 } 5700 5701 } 5702 5703 public interface StreamingInputCallResponseOrBuilder extends 5704 // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingInputCallResponse) 5705 com.google.protobuf.MessageOrBuilder { 5706 5707 /** 5708 * <pre> 5709 * Aggregated size of payloads received from the client. 5710 * </pre> 5711 * 5712 * <code>int32 aggregated_payload_size = 1;</code> 5713 */ 5714 int getAggregatedPayloadSize(); 5715 } 5716 /** 5717 * <pre> 5718 * Client-streaming response. 5719 * </pre> 5720 * 5721 * Protobuf type {@code grpc.testing.StreamingInputCallResponse} 5722 */ 5723 public static final class StreamingInputCallResponse extends 5724 com.google.protobuf.GeneratedMessageV3 implements 5725 // @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallResponse) 5726 StreamingInputCallResponseOrBuilder { 5727 private static final long serialVersionUID = 0L; 5728 // Use StreamingInputCallResponse.newBuilder() to construct. 5729 private StreamingInputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 5730 super(builder); 5731 } 5732 private StreamingInputCallResponse() { 5733 aggregatedPayloadSize_ = 0; 5734 } 5735 5736 @java.lang.Override 5737 public final com.google.protobuf.UnknownFieldSet 5738 getUnknownFields() { 5739 return this.unknownFields; 5740 } 5741 private StreamingInputCallResponse( 5742 com.google.protobuf.CodedInputStream input, 5743 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5744 throws com.google.protobuf.InvalidProtocolBufferException { 5745 this(); 5746 if (extensionRegistry == null) { 5747 throw new java.lang.NullPointerException(); 5748 } 5749 int mutable_bitField0_ = 0; 5750 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 5751 com.google.protobuf.UnknownFieldSet.newBuilder(); 5752 try { 5753 boolean done = false; 5754 while (!done) { 5755 int tag = input.readTag(); 5756 switch (tag) { 5757 case 0: 5758 done = true; 5759 break; 5760 default: { 5761 if (!parseUnknownFieldProto3( 5762 input, unknownFields, extensionRegistry, tag)) { 5763 done = true; 5764 } 5765 break; 5766 } 5767 case 8: { 5768 5769 aggregatedPayloadSize_ = input.readInt32(); 5770 break; 5771 } 5772 } 5773 } 5774 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5775 throw e.setUnfinishedMessage(this); 5776 } catch (java.io.IOException e) { 5777 throw new com.google.protobuf.InvalidProtocolBufferException( 5778 e).setUnfinishedMessage(this); 5779 } finally { 5780 this.unknownFields = unknownFields.build(); 5781 makeExtensionsImmutable(); 5782 } 5783 } 5784 public static final com.google.protobuf.Descriptors.Descriptor 5785 getDescriptor() { 5786 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; 5787 } 5788 5789 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 5790 internalGetFieldAccessorTable() { 5791 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable 5792 .ensureFieldAccessorsInitialized( 5793 io.grpc.testing.integration.Messages.StreamingInputCallResponse.class, io.grpc.testing.integration.Messages.StreamingInputCallResponse.Builder.class); 5794 } 5795 5796 public static final int AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER = 1; 5797 private int aggregatedPayloadSize_; 5798 /** 5799 * <pre> 5800 * Aggregated size of payloads received from the client. 5801 * </pre> 5802 * 5803 * <code>int32 aggregated_payload_size = 1;</code> 5804 */ 5805 public int getAggregatedPayloadSize() { 5806 return aggregatedPayloadSize_; 5807 } 5808 5809 private byte memoizedIsInitialized = -1; 5810 public final boolean isInitialized() { 5811 byte isInitialized = memoizedIsInitialized; 5812 if (isInitialized == 1) return true; 5813 if (isInitialized == 0) return false; 5814 5815 memoizedIsInitialized = 1; 5816 return true; 5817 } 5818 5819 public void writeTo(com.google.protobuf.CodedOutputStream output) 5820 throws java.io.IOException { 5821 if (aggregatedPayloadSize_ != 0) { 5822 output.writeInt32(1, aggregatedPayloadSize_); 5823 } 5824 unknownFields.writeTo(output); 5825 } 5826 5827 public int getSerializedSize() { 5828 int size = memoizedSize; 5829 if (size != -1) return size; 5830 5831 size = 0; 5832 if (aggregatedPayloadSize_ != 0) { 5833 size += com.google.protobuf.CodedOutputStream 5834 .computeInt32Size(1, aggregatedPayloadSize_); 5835 } 5836 size += unknownFields.getSerializedSize(); 5837 memoizedSize = size; 5838 return size; 5839 } 5840 5841 @java.lang.Override 5842 public boolean equals(final java.lang.Object obj) { 5843 if (obj == this) { 5844 return true; 5845 } 5846 if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingInputCallResponse)) { 5847 return super.equals(obj); 5848 } 5849 io.grpc.testing.integration.Messages.StreamingInputCallResponse other = (io.grpc.testing.integration.Messages.StreamingInputCallResponse) obj; 5850 5851 boolean result = true; 5852 result = result && (getAggregatedPayloadSize() 5853 == other.getAggregatedPayloadSize()); 5854 result = result && unknownFields.equals(other.unknownFields); 5855 return result; 5856 } 5857 5858 @java.lang.Override 5859 public int hashCode() { 5860 if (memoizedHashCode != 0) { 5861 return memoizedHashCode; 5862 } 5863 int hash = 41; 5864 hash = (19 * hash) + getDescriptor().hashCode(); 5865 hash = (37 * hash) + AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER; 5866 hash = (53 * hash) + getAggregatedPayloadSize(); 5867 hash = (29 * hash) + unknownFields.hashCode(); 5868 memoizedHashCode = hash; 5869 return hash; 5870 } 5871 5872 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5873 java.nio.ByteBuffer data) 5874 throws com.google.protobuf.InvalidProtocolBufferException { 5875 return PARSER.parseFrom(data); 5876 } 5877 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5878 java.nio.ByteBuffer data, 5879 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5880 throws com.google.protobuf.InvalidProtocolBufferException { 5881 return PARSER.parseFrom(data, extensionRegistry); 5882 } 5883 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5884 com.google.protobuf.ByteString data) 5885 throws com.google.protobuf.InvalidProtocolBufferException { 5886 return PARSER.parseFrom(data); 5887 } 5888 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5889 com.google.protobuf.ByteString data, 5890 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5891 throws com.google.protobuf.InvalidProtocolBufferException { 5892 return PARSER.parseFrom(data, extensionRegistry); 5893 } 5894 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(byte[] data) 5895 throws com.google.protobuf.InvalidProtocolBufferException { 5896 return PARSER.parseFrom(data); 5897 } 5898 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5899 byte[] data, 5900 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5901 throws com.google.protobuf.InvalidProtocolBufferException { 5902 return PARSER.parseFrom(data, extensionRegistry); 5903 } 5904 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input) 5905 throws java.io.IOException { 5906 return com.google.protobuf.GeneratedMessageV3 5907 .parseWithIOException(PARSER, input); 5908 } 5909 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5910 java.io.InputStream input, 5911 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5912 throws java.io.IOException { 5913 return com.google.protobuf.GeneratedMessageV3 5914 .parseWithIOException(PARSER, input, extensionRegistry); 5915 } 5916 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input) 5917 throws java.io.IOException { 5918 return com.google.protobuf.GeneratedMessageV3 5919 .parseDelimitedWithIOException(PARSER, input); 5920 } 5921 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom( 5922 java.io.InputStream input, 5923 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5924 throws java.io.IOException { 5925 return com.google.protobuf.GeneratedMessageV3 5926 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 5927 } 5928 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5929 com.google.protobuf.CodedInputStream input) 5930 throws java.io.IOException { 5931 return com.google.protobuf.GeneratedMessageV3 5932 .parseWithIOException(PARSER, input); 5933 } 5934 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( 5935 com.google.protobuf.CodedInputStream input, 5936 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5937 throws java.io.IOException { 5938 return com.google.protobuf.GeneratedMessageV3 5939 .parseWithIOException(PARSER, input, extensionRegistry); 5940 } 5941 5942 public Builder newBuilderForType() { return newBuilder(); } 5943 public static Builder newBuilder() { 5944 return DEFAULT_INSTANCE.toBuilder(); 5945 } 5946 public static Builder newBuilder(io.grpc.testing.integration.Messages.StreamingInputCallResponse prototype) { 5947 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5948 } 5949 public Builder toBuilder() { 5950 return this == DEFAULT_INSTANCE 5951 ? new Builder() : new Builder().mergeFrom(this); 5952 } 5953 5954 @java.lang.Override 5955 protected Builder newBuilderForType( 5956 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5957 Builder builder = new Builder(parent); 5958 return builder; 5959 } 5960 /** 5961 * <pre> 5962 * Client-streaming response. 5963 * </pre> 5964 * 5965 * Protobuf type {@code grpc.testing.StreamingInputCallResponse} 5966 */ 5967 public static final class Builder extends 5968 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 5969 // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallResponse) 5970 io.grpc.testing.integration.Messages.StreamingInputCallResponseOrBuilder { 5971 public static final com.google.protobuf.Descriptors.Descriptor 5972 getDescriptor() { 5973 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; 5974 } 5975 5976 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 5977 internalGetFieldAccessorTable() { 5978 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable 5979 .ensureFieldAccessorsInitialized( 5980 io.grpc.testing.integration.Messages.StreamingInputCallResponse.class, io.grpc.testing.integration.Messages.StreamingInputCallResponse.Builder.class); 5981 } 5982 5983 // Construct using io.grpc.testing.integration.Messages.StreamingInputCallResponse.newBuilder() 5984 private Builder() { 5985 maybeForceBuilderInitialization(); 5986 } 5987 5988 private Builder( 5989 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5990 super(parent); 5991 maybeForceBuilderInitialization(); 5992 } 5993 private void maybeForceBuilderInitialization() { 5994 if (com.google.protobuf.GeneratedMessageV3 5995 .alwaysUseFieldBuilders) { 5996 } 5997 } 5998 public Builder clear() { 5999 super.clear(); 6000 aggregatedPayloadSize_ = 0; 6001 6002 return this; 6003 } 6004 6005 public com.google.protobuf.Descriptors.Descriptor 6006 getDescriptorForType() { 6007 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; 6008 } 6009 6010 public io.grpc.testing.integration.Messages.StreamingInputCallResponse getDefaultInstanceForType() { 6011 return io.grpc.testing.integration.Messages.StreamingInputCallResponse.getDefaultInstance(); 6012 } 6013 6014 public io.grpc.testing.integration.Messages.StreamingInputCallResponse build() { 6015 io.grpc.testing.integration.Messages.StreamingInputCallResponse result = buildPartial(); 6016 if (!result.isInitialized()) { 6017 throw newUninitializedMessageException(result); 6018 } 6019 return result; 6020 } 6021 6022 public io.grpc.testing.integration.Messages.StreamingInputCallResponse buildPartial() { 6023 io.grpc.testing.integration.Messages.StreamingInputCallResponse result = new io.grpc.testing.integration.Messages.StreamingInputCallResponse(this); 6024 result.aggregatedPayloadSize_ = aggregatedPayloadSize_; 6025 onBuilt(); 6026 return result; 6027 } 6028 6029 public Builder clone() { 6030 return (Builder) super.clone(); 6031 } 6032 public Builder setField( 6033 com.google.protobuf.Descriptors.FieldDescriptor field, 6034 java.lang.Object value) { 6035 return (Builder) super.setField(field, value); 6036 } 6037 public Builder clearField( 6038 com.google.protobuf.Descriptors.FieldDescriptor field) { 6039 return (Builder) super.clearField(field); 6040 } 6041 public Builder clearOneof( 6042 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 6043 return (Builder) super.clearOneof(oneof); 6044 } 6045 public Builder setRepeatedField( 6046 com.google.protobuf.Descriptors.FieldDescriptor field, 6047 int index, java.lang.Object value) { 6048 return (Builder) super.setRepeatedField(field, index, value); 6049 } 6050 public Builder addRepeatedField( 6051 com.google.protobuf.Descriptors.FieldDescriptor field, 6052 java.lang.Object value) { 6053 return (Builder) super.addRepeatedField(field, value); 6054 } 6055 public Builder mergeFrom(com.google.protobuf.Message other) { 6056 if (other instanceof io.grpc.testing.integration.Messages.StreamingInputCallResponse) { 6057 return mergeFrom((io.grpc.testing.integration.Messages.StreamingInputCallResponse)other); 6058 } else { 6059 super.mergeFrom(other); 6060 return this; 6061 } 6062 } 6063 6064 public Builder mergeFrom(io.grpc.testing.integration.Messages.StreamingInputCallResponse other) { 6065 if (other == io.grpc.testing.integration.Messages.StreamingInputCallResponse.getDefaultInstance()) return this; 6066 if (other.getAggregatedPayloadSize() != 0) { 6067 setAggregatedPayloadSize(other.getAggregatedPayloadSize()); 6068 } 6069 this.mergeUnknownFields(other.unknownFields); 6070 onChanged(); 6071 return this; 6072 } 6073 6074 public final boolean isInitialized() { 6075 return true; 6076 } 6077 6078 public Builder mergeFrom( 6079 com.google.protobuf.CodedInputStream input, 6080 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6081 throws java.io.IOException { 6082 io.grpc.testing.integration.Messages.StreamingInputCallResponse parsedMessage = null; 6083 try { 6084 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 6085 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6086 parsedMessage = (io.grpc.testing.integration.Messages.StreamingInputCallResponse) e.getUnfinishedMessage(); 6087 throw e.unwrapIOException(); 6088 } finally { 6089 if (parsedMessage != null) { 6090 mergeFrom(parsedMessage); 6091 } 6092 } 6093 return this; 6094 } 6095 6096 private int aggregatedPayloadSize_ ; 6097 /** 6098 * <pre> 6099 * Aggregated size of payloads received from the client. 6100 * </pre> 6101 * 6102 * <code>int32 aggregated_payload_size = 1;</code> 6103 */ 6104 public int getAggregatedPayloadSize() { 6105 return aggregatedPayloadSize_; 6106 } 6107 /** 6108 * <pre> 6109 * Aggregated size of payloads received from the client. 6110 * </pre> 6111 * 6112 * <code>int32 aggregated_payload_size = 1;</code> 6113 */ 6114 public Builder setAggregatedPayloadSize(int value) { 6115 6116 aggregatedPayloadSize_ = value; 6117 onChanged(); 6118 return this; 6119 } 6120 /** 6121 * <pre> 6122 * Aggregated size of payloads received from the client. 6123 * </pre> 6124 * 6125 * <code>int32 aggregated_payload_size = 1;</code> 6126 */ 6127 public Builder clearAggregatedPayloadSize() { 6128 6129 aggregatedPayloadSize_ = 0; 6130 onChanged(); 6131 return this; 6132 } 6133 public final Builder setUnknownFields( 6134 final com.google.protobuf.UnknownFieldSet unknownFields) { 6135 return super.setUnknownFieldsProto3(unknownFields); 6136 } 6137 6138 public final Builder mergeUnknownFields( 6139 final com.google.protobuf.UnknownFieldSet unknownFields) { 6140 return super.mergeUnknownFields(unknownFields); 6141 } 6142 6143 6144 // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingInputCallResponse) 6145 } 6146 6147 // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallResponse) 6148 private static final io.grpc.testing.integration.Messages.StreamingInputCallResponse DEFAULT_INSTANCE; 6149 static { 6150 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.StreamingInputCallResponse(); 6151 } 6152 6153 public static io.grpc.testing.integration.Messages.StreamingInputCallResponse getDefaultInstance() { 6154 return DEFAULT_INSTANCE; 6155 } 6156 6157 private static final com.google.protobuf.Parser<StreamingInputCallResponse> 6158 PARSER = new com.google.protobuf.AbstractParser<StreamingInputCallResponse>() { 6159 public StreamingInputCallResponse parsePartialFrom( 6160 com.google.protobuf.CodedInputStream input, 6161 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6162 throws com.google.protobuf.InvalidProtocolBufferException { 6163 return new StreamingInputCallResponse(input, extensionRegistry); 6164 } 6165 }; 6166 6167 public static com.google.protobuf.Parser<StreamingInputCallResponse> parser() { 6168 return PARSER; 6169 } 6170 6171 @java.lang.Override 6172 public com.google.protobuf.Parser<StreamingInputCallResponse> getParserForType() { 6173 return PARSER; 6174 } 6175 6176 public io.grpc.testing.integration.Messages.StreamingInputCallResponse getDefaultInstanceForType() { 6177 return DEFAULT_INSTANCE; 6178 } 6179 6180 } 6181 6182 public interface ResponseParametersOrBuilder extends 6183 // @@protoc_insertion_point(interface_extends:grpc.testing.ResponseParameters) 6184 com.google.protobuf.MessageOrBuilder { 6185 6186 /** 6187 * <pre> 6188 * Desired payload sizes in responses from the server. 6189 * </pre> 6190 * 6191 * <code>int32 size = 1;</code> 6192 */ 6193 int getSize(); 6194 6195 /** 6196 * <pre> 6197 * Desired interval between consecutive responses in the response stream in 6198 * microseconds. 6199 * </pre> 6200 * 6201 * <code>int32 interval_us = 2;</code> 6202 */ 6203 int getIntervalUs(); 6204 6205 /** 6206 * <pre> 6207 * Whether to request the server to compress the response. This field is 6208 * "nullable" in order to interoperate seamlessly with clients not able to 6209 * implement the full compression tests by introspecting the call to verify 6210 * the response's compression status. 6211 * </pre> 6212 * 6213 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6214 */ 6215 boolean hasCompressed(); 6216 /** 6217 * <pre> 6218 * Whether to request the server to compress the response. This field is 6219 * "nullable" in order to interoperate seamlessly with clients not able to 6220 * implement the full compression tests by introspecting the call to verify 6221 * the response's compression status. 6222 * </pre> 6223 * 6224 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6225 */ 6226 com.google.protobuf.BoolValue getCompressed(); 6227 /** 6228 * <pre> 6229 * Whether to request the server to compress the response. This field is 6230 * "nullable" in order to interoperate seamlessly with clients not able to 6231 * implement the full compression tests by introspecting the call to verify 6232 * the response's compression status. 6233 * </pre> 6234 * 6235 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6236 */ 6237 com.google.protobuf.BoolValueOrBuilder getCompressedOrBuilder(); 6238 } 6239 /** 6240 * <pre> 6241 * Configuration for a particular response. 6242 * </pre> 6243 * 6244 * Protobuf type {@code grpc.testing.ResponseParameters} 6245 */ 6246 public static final class ResponseParameters extends 6247 com.google.protobuf.GeneratedMessageV3 implements 6248 // @@protoc_insertion_point(message_implements:grpc.testing.ResponseParameters) 6249 ResponseParametersOrBuilder { 6250 private static final long serialVersionUID = 0L; 6251 // Use ResponseParameters.newBuilder() to construct. 6252 private ResponseParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 6253 super(builder); 6254 } 6255 private ResponseParameters() { 6256 size_ = 0; 6257 intervalUs_ = 0; 6258 } 6259 6260 @java.lang.Override 6261 public final com.google.protobuf.UnknownFieldSet 6262 getUnknownFields() { 6263 return this.unknownFields; 6264 } 6265 private ResponseParameters( 6266 com.google.protobuf.CodedInputStream input, 6267 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6268 throws com.google.protobuf.InvalidProtocolBufferException { 6269 this(); 6270 if (extensionRegistry == null) { 6271 throw new java.lang.NullPointerException(); 6272 } 6273 int mutable_bitField0_ = 0; 6274 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 6275 com.google.protobuf.UnknownFieldSet.newBuilder(); 6276 try { 6277 boolean done = false; 6278 while (!done) { 6279 int tag = input.readTag(); 6280 switch (tag) { 6281 case 0: 6282 done = true; 6283 break; 6284 default: { 6285 if (!parseUnknownFieldProto3( 6286 input, unknownFields, extensionRegistry, tag)) { 6287 done = true; 6288 } 6289 break; 6290 } 6291 case 8: { 6292 6293 size_ = input.readInt32(); 6294 break; 6295 } 6296 case 16: { 6297 6298 intervalUs_ = input.readInt32(); 6299 break; 6300 } 6301 case 26: { 6302 com.google.protobuf.BoolValue.Builder subBuilder = null; 6303 if (compressed_ != null) { 6304 subBuilder = compressed_.toBuilder(); 6305 } 6306 compressed_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); 6307 if (subBuilder != null) { 6308 subBuilder.mergeFrom(compressed_); 6309 compressed_ = subBuilder.buildPartial(); 6310 } 6311 6312 break; 6313 } 6314 } 6315 } 6316 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6317 throw e.setUnfinishedMessage(this); 6318 } catch (java.io.IOException e) { 6319 throw new com.google.protobuf.InvalidProtocolBufferException( 6320 e).setUnfinishedMessage(this); 6321 } finally { 6322 this.unknownFields = unknownFields.build(); 6323 makeExtensionsImmutable(); 6324 } 6325 } 6326 public static final com.google.protobuf.Descriptors.Descriptor 6327 getDescriptor() { 6328 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; 6329 } 6330 6331 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 6332 internalGetFieldAccessorTable() { 6333 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable 6334 .ensureFieldAccessorsInitialized( 6335 io.grpc.testing.integration.Messages.ResponseParameters.class, io.grpc.testing.integration.Messages.ResponseParameters.Builder.class); 6336 } 6337 6338 public static final int SIZE_FIELD_NUMBER = 1; 6339 private int size_; 6340 /** 6341 * <pre> 6342 * Desired payload sizes in responses from the server. 6343 * </pre> 6344 * 6345 * <code>int32 size = 1;</code> 6346 */ 6347 public int getSize() { 6348 return size_; 6349 } 6350 6351 public static final int INTERVAL_US_FIELD_NUMBER = 2; 6352 private int intervalUs_; 6353 /** 6354 * <pre> 6355 * Desired interval between consecutive responses in the response stream in 6356 * microseconds. 6357 * </pre> 6358 * 6359 * <code>int32 interval_us = 2;</code> 6360 */ 6361 public int getIntervalUs() { 6362 return intervalUs_; 6363 } 6364 6365 public static final int COMPRESSED_FIELD_NUMBER = 3; 6366 private com.google.protobuf.BoolValue compressed_; 6367 /** 6368 * <pre> 6369 * Whether to request the server to compress the response. This field is 6370 * "nullable" in order to interoperate seamlessly with clients not able to 6371 * implement the full compression tests by introspecting the call to verify 6372 * the response's compression status. 6373 * </pre> 6374 * 6375 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6376 */ 6377 public boolean hasCompressed() { 6378 return compressed_ != null; 6379 } 6380 /** 6381 * <pre> 6382 * Whether to request the server to compress the response. This field is 6383 * "nullable" in order to interoperate seamlessly with clients not able to 6384 * implement the full compression tests by introspecting the call to verify 6385 * the response's compression status. 6386 * </pre> 6387 * 6388 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6389 */ 6390 public com.google.protobuf.BoolValue getCompressed() { 6391 return compressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : compressed_; 6392 } 6393 /** 6394 * <pre> 6395 * Whether to request the server to compress the response. This field is 6396 * "nullable" in order to interoperate seamlessly with clients not able to 6397 * implement the full compression tests by introspecting the call to verify 6398 * the response's compression status. 6399 * </pre> 6400 * 6401 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6402 */ 6403 public com.google.protobuf.BoolValueOrBuilder getCompressedOrBuilder() { 6404 return getCompressed(); 6405 } 6406 6407 private byte memoizedIsInitialized = -1; 6408 public final boolean isInitialized() { 6409 byte isInitialized = memoizedIsInitialized; 6410 if (isInitialized == 1) return true; 6411 if (isInitialized == 0) return false; 6412 6413 memoizedIsInitialized = 1; 6414 return true; 6415 } 6416 6417 public void writeTo(com.google.protobuf.CodedOutputStream output) 6418 throws java.io.IOException { 6419 if (size_ != 0) { 6420 output.writeInt32(1, size_); 6421 } 6422 if (intervalUs_ != 0) { 6423 output.writeInt32(2, intervalUs_); 6424 } 6425 if (compressed_ != null) { 6426 output.writeMessage(3, getCompressed()); 6427 } 6428 unknownFields.writeTo(output); 6429 } 6430 6431 public int getSerializedSize() { 6432 int size = memoizedSize; 6433 if (size != -1) return size; 6434 6435 size = 0; 6436 if (size_ != 0) { 6437 size += com.google.protobuf.CodedOutputStream 6438 .computeInt32Size(1, size_); 6439 } 6440 if (intervalUs_ != 0) { 6441 size += com.google.protobuf.CodedOutputStream 6442 .computeInt32Size(2, intervalUs_); 6443 } 6444 if (compressed_ != null) { 6445 size += com.google.protobuf.CodedOutputStream 6446 .computeMessageSize(3, getCompressed()); 6447 } 6448 size += unknownFields.getSerializedSize(); 6449 memoizedSize = size; 6450 return size; 6451 } 6452 6453 @java.lang.Override 6454 public boolean equals(final java.lang.Object obj) { 6455 if (obj == this) { 6456 return true; 6457 } 6458 if (!(obj instanceof io.grpc.testing.integration.Messages.ResponseParameters)) { 6459 return super.equals(obj); 6460 } 6461 io.grpc.testing.integration.Messages.ResponseParameters other = (io.grpc.testing.integration.Messages.ResponseParameters) obj; 6462 6463 boolean result = true; 6464 result = result && (getSize() 6465 == other.getSize()); 6466 result = result && (getIntervalUs() 6467 == other.getIntervalUs()); 6468 result = result && (hasCompressed() == other.hasCompressed()); 6469 if (hasCompressed()) { 6470 result = result && getCompressed() 6471 .equals(other.getCompressed()); 6472 } 6473 result = result && unknownFields.equals(other.unknownFields); 6474 return result; 6475 } 6476 6477 @java.lang.Override 6478 public int hashCode() { 6479 if (memoizedHashCode != 0) { 6480 return memoizedHashCode; 6481 } 6482 int hash = 41; 6483 hash = (19 * hash) + getDescriptor().hashCode(); 6484 hash = (37 * hash) + SIZE_FIELD_NUMBER; 6485 hash = (53 * hash) + getSize(); 6486 hash = (37 * hash) + INTERVAL_US_FIELD_NUMBER; 6487 hash = (53 * hash) + getIntervalUs(); 6488 if (hasCompressed()) { 6489 hash = (37 * hash) + COMPRESSED_FIELD_NUMBER; 6490 hash = (53 * hash) + getCompressed().hashCode(); 6491 } 6492 hash = (29 * hash) + unknownFields.hashCode(); 6493 memoizedHashCode = hash; 6494 return hash; 6495 } 6496 6497 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6498 java.nio.ByteBuffer data) 6499 throws com.google.protobuf.InvalidProtocolBufferException { 6500 return PARSER.parseFrom(data); 6501 } 6502 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6503 java.nio.ByteBuffer data, 6504 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6505 throws com.google.protobuf.InvalidProtocolBufferException { 6506 return PARSER.parseFrom(data, extensionRegistry); 6507 } 6508 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6509 com.google.protobuf.ByteString data) 6510 throws com.google.protobuf.InvalidProtocolBufferException { 6511 return PARSER.parseFrom(data); 6512 } 6513 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6514 com.google.protobuf.ByteString data, 6515 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6516 throws com.google.protobuf.InvalidProtocolBufferException { 6517 return PARSER.parseFrom(data, extensionRegistry); 6518 } 6519 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(byte[] data) 6520 throws com.google.protobuf.InvalidProtocolBufferException { 6521 return PARSER.parseFrom(data); 6522 } 6523 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6524 byte[] data, 6525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6526 throws com.google.protobuf.InvalidProtocolBufferException { 6527 return PARSER.parseFrom(data, extensionRegistry); 6528 } 6529 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(java.io.InputStream input) 6530 throws java.io.IOException { 6531 return com.google.protobuf.GeneratedMessageV3 6532 .parseWithIOException(PARSER, input); 6533 } 6534 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6535 java.io.InputStream input, 6536 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6537 throws java.io.IOException { 6538 return com.google.protobuf.GeneratedMessageV3 6539 .parseWithIOException(PARSER, input, extensionRegistry); 6540 } 6541 public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input) 6542 throws java.io.IOException { 6543 return com.google.protobuf.GeneratedMessageV3 6544 .parseDelimitedWithIOException(PARSER, input); 6545 } 6546 public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom( 6547 java.io.InputStream input, 6548 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6549 throws java.io.IOException { 6550 return com.google.protobuf.GeneratedMessageV3 6551 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 6552 } 6553 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6554 com.google.protobuf.CodedInputStream input) 6555 throws java.io.IOException { 6556 return com.google.protobuf.GeneratedMessageV3 6557 .parseWithIOException(PARSER, input); 6558 } 6559 public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( 6560 com.google.protobuf.CodedInputStream input, 6561 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6562 throws java.io.IOException { 6563 return com.google.protobuf.GeneratedMessageV3 6564 .parseWithIOException(PARSER, input, extensionRegistry); 6565 } 6566 6567 public Builder newBuilderForType() { return newBuilder(); } 6568 public static Builder newBuilder() { 6569 return DEFAULT_INSTANCE.toBuilder(); 6570 } 6571 public static Builder newBuilder(io.grpc.testing.integration.Messages.ResponseParameters prototype) { 6572 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6573 } 6574 public Builder toBuilder() { 6575 return this == DEFAULT_INSTANCE 6576 ? new Builder() : new Builder().mergeFrom(this); 6577 } 6578 6579 @java.lang.Override 6580 protected Builder newBuilderForType( 6581 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 6582 Builder builder = new Builder(parent); 6583 return builder; 6584 } 6585 /** 6586 * <pre> 6587 * Configuration for a particular response. 6588 * </pre> 6589 * 6590 * Protobuf type {@code grpc.testing.ResponseParameters} 6591 */ 6592 public static final class Builder extends 6593 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 6594 // @@protoc_insertion_point(builder_implements:grpc.testing.ResponseParameters) 6595 io.grpc.testing.integration.Messages.ResponseParametersOrBuilder { 6596 public static final com.google.protobuf.Descriptors.Descriptor 6597 getDescriptor() { 6598 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; 6599 } 6600 6601 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 6602 internalGetFieldAccessorTable() { 6603 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable 6604 .ensureFieldAccessorsInitialized( 6605 io.grpc.testing.integration.Messages.ResponseParameters.class, io.grpc.testing.integration.Messages.ResponseParameters.Builder.class); 6606 } 6607 6608 // Construct using io.grpc.testing.integration.Messages.ResponseParameters.newBuilder() 6609 private Builder() { 6610 maybeForceBuilderInitialization(); 6611 } 6612 6613 private Builder( 6614 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 6615 super(parent); 6616 maybeForceBuilderInitialization(); 6617 } 6618 private void maybeForceBuilderInitialization() { 6619 if (com.google.protobuf.GeneratedMessageV3 6620 .alwaysUseFieldBuilders) { 6621 } 6622 } 6623 public Builder clear() { 6624 super.clear(); 6625 size_ = 0; 6626 6627 intervalUs_ = 0; 6628 6629 if (compressedBuilder_ == null) { 6630 compressed_ = null; 6631 } else { 6632 compressed_ = null; 6633 compressedBuilder_ = null; 6634 } 6635 return this; 6636 } 6637 6638 public com.google.protobuf.Descriptors.Descriptor 6639 getDescriptorForType() { 6640 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; 6641 } 6642 6643 public io.grpc.testing.integration.Messages.ResponseParameters getDefaultInstanceForType() { 6644 return io.grpc.testing.integration.Messages.ResponseParameters.getDefaultInstance(); 6645 } 6646 6647 public io.grpc.testing.integration.Messages.ResponseParameters build() { 6648 io.grpc.testing.integration.Messages.ResponseParameters result = buildPartial(); 6649 if (!result.isInitialized()) { 6650 throw newUninitializedMessageException(result); 6651 } 6652 return result; 6653 } 6654 6655 public io.grpc.testing.integration.Messages.ResponseParameters buildPartial() { 6656 io.grpc.testing.integration.Messages.ResponseParameters result = new io.grpc.testing.integration.Messages.ResponseParameters(this); 6657 result.size_ = size_; 6658 result.intervalUs_ = intervalUs_; 6659 if (compressedBuilder_ == null) { 6660 result.compressed_ = compressed_; 6661 } else { 6662 result.compressed_ = compressedBuilder_.build(); 6663 } 6664 onBuilt(); 6665 return result; 6666 } 6667 6668 public Builder clone() { 6669 return (Builder) super.clone(); 6670 } 6671 public Builder setField( 6672 com.google.protobuf.Descriptors.FieldDescriptor field, 6673 java.lang.Object value) { 6674 return (Builder) super.setField(field, value); 6675 } 6676 public Builder clearField( 6677 com.google.protobuf.Descriptors.FieldDescriptor field) { 6678 return (Builder) super.clearField(field); 6679 } 6680 public Builder clearOneof( 6681 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 6682 return (Builder) super.clearOneof(oneof); 6683 } 6684 public Builder setRepeatedField( 6685 com.google.protobuf.Descriptors.FieldDescriptor field, 6686 int index, java.lang.Object value) { 6687 return (Builder) super.setRepeatedField(field, index, value); 6688 } 6689 public Builder addRepeatedField( 6690 com.google.protobuf.Descriptors.FieldDescriptor field, 6691 java.lang.Object value) { 6692 return (Builder) super.addRepeatedField(field, value); 6693 } 6694 public Builder mergeFrom(com.google.protobuf.Message other) { 6695 if (other instanceof io.grpc.testing.integration.Messages.ResponseParameters) { 6696 return mergeFrom((io.grpc.testing.integration.Messages.ResponseParameters)other); 6697 } else { 6698 super.mergeFrom(other); 6699 return this; 6700 } 6701 } 6702 6703 public Builder mergeFrom(io.grpc.testing.integration.Messages.ResponseParameters other) { 6704 if (other == io.grpc.testing.integration.Messages.ResponseParameters.getDefaultInstance()) return this; 6705 if (other.getSize() != 0) { 6706 setSize(other.getSize()); 6707 } 6708 if (other.getIntervalUs() != 0) { 6709 setIntervalUs(other.getIntervalUs()); 6710 } 6711 if (other.hasCompressed()) { 6712 mergeCompressed(other.getCompressed()); 6713 } 6714 this.mergeUnknownFields(other.unknownFields); 6715 onChanged(); 6716 return this; 6717 } 6718 6719 public final boolean isInitialized() { 6720 return true; 6721 } 6722 6723 public Builder mergeFrom( 6724 com.google.protobuf.CodedInputStream input, 6725 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6726 throws java.io.IOException { 6727 io.grpc.testing.integration.Messages.ResponseParameters parsedMessage = null; 6728 try { 6729 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 6730 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6731 parsedMessage = (io.grpc.testing.integration.Messages.ResponseParameters) e.getUnfinishedMessage(); 6732 throw e.unwrapIOException(); 6733 } finally { 6734 if (parsedMessage != null) { 6735 mergeFrom(parsedMessage); 6736 } 6737 } 6738 return this; 6739 } 6740 6741 private int size_ ; 6742 /** 6743 * <pre> 6744 * Desired payload sizes in responses from the server. 6745 * </pre> 6746 * 6747 * <code>int32 size = 1;</code> 6748 */ 6749 public int getSize() { 6750 return size_; 6751 } 6752 /** 6753 * <pre> 6754 * Desired payload sizes in responses from the server. 6755 * </pre> 6756 * 6757 * <code>int32 size = 1;</code> 6758 */ 6759 public Builder setSize(int value) { 6760 6761 size_ = value; 6762 onChanged(); 6763 return this; 6764 } 6765 /** 6766 * <pre> 6767 * Desired payload sizes in responses from the server. 6768 * </pre> 6769 * 6770 * <code>int32 size = 1;</code> 6771 */ 6772 public Builder clearSize() { 6773 6774 size_ = 0; 6775 onChanged(); 6776 return this; 6777 } 6778 6779 private int intervalUs_ ; 6780 /** 6781 * <pre> 6782 * Desired interval between consecutive responses in the response stream in 6783 * microseconds. 6784 * </pre> 6785 * 6786 * <code>int32 interval_us = 2;</code> 6787 */ 6788 public int getIntervalUs() { 6789 return intervalUs_; 6790 } 6791 /** 6792 * <pre> 6793 * Desired interval between consecutive responses in the response stream in 6794 * microseconds. 6795 * </pre> 6796 * 6797 * <code>int32 interval_us = 2;</code> 6798 */ 6799 public Builder setIntervalUs(int value) { 6800 6801 intervalUs_ = value; 6802 onChanged(); 6803 return this; 6804 } 6805 /** 6806 * <pre> 6807 * Desired interval between consecutive responses in the response stream in 6808 * microseconds. 6809 * </pre> 6810 * 6811 * <code>int32 interval_us = 2;</code> 6812 */ 6813 public Builder clearIntervalUs() { 6814 6815 intervalUs_ = 0; 6816 onChanged(); 6817 return this; 6818 } 6819 6820 private com.google.protobuf.BoolValue compressed_ = null; 6821 private com.google.protobuf.SingleFieldBuilderV3< 6822 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> compressedBuilder_; 6823 /** 6824 * <pre> 6825 * Whether to request the server to compress the response. This field is 6826 * "nullable" in order to interoperate seamlessly with clients not able to 6827 * implement the full compression tests by introspecting the call to verify 6828 * the response's compression status. 6829 * </pre> 6830 * 6831 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6832 */ 6833 public boolean hasCompressed() { 6834 return compressedBuilder_ != null || compressed_ != null; 6835 } 6836 /** 6837 * <pre> 6838 * Whether to request the server to compress the response. This field is 6839 * "nullable" in order to interoperate seamlessly with clients not able to 6840 * implement the full compression tests by introspecting the call to verify 6841 * the response's compression status. 6842 * </pre> 6843 * 6844 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6845 */ 6846 public com.google.protobuf.BoolValue getCompressed() { 6847 if (compressedBuilder_ == null) { 6848 return compressed_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : compressed_; 6849 } else { 6850 return compressedBuilder_.getMessage(); 6851 } 6852 } 6853 /** 6854 * <pre> 6855 * Whether to request the server to compress the response. This field is 6856 * "nullable" in order to interoperate seamlessly with clients not able to 6857 * implement the full compression tests by introspecting the call to verify 6858 * the response's compression status. 6859 * </pre> 6860 * 6861 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6862 */ 6863 public Builder setCompressed(com.google.protobuf.BoolValue value) { 6864 if (compressedBuilder_ == null) { 6865 if (value == null) { 6866 throw new NullPointerException(); 6867 } 6868 compressed_ = value; 6869 onChanged(); 6870 } else { 6871 compressedBuilder_.setMessage(value); 6872 } 6873 6874 return this; 6875 } 6876 /** 6877 * <pre> 6878 * Whether to request the server to compress the response. This field is 6879 * "nullable" in order to interoperate seamlessly with clients not able to 6880 * implement the full compression tests by introspecting the call to verify 6881 * the response's compression status. 6882 * </pre> 6883 * 6884 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6885 */ 6886 public Builder setCompressed( 6887 com.google.protobuf.BoolValue.Builder builderForValue) { 6888 if (compressedBuilder_ == null) { 6889 compressed_ = builderForValue.build(); 6890 onChanged(); 6891 } else { 6892 compressedBuilder_.setMessage(builderForValue.build()); 6893 } 6894 6895 return this; 6896 } 6897 /** 6898 * <pre> 6899 * Whether to request the server to compress the response. This field is 6900 * "nullable" in order to interoperate seamlessly with clients not able to 6901 * implement the full compression tests by introspecting the call to verify 6902 * the response's compression status. 6903 * </pre> 6904 * 6905 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6906 */ 6907 public Builder mergeCompressed(com.google.protobuf.BoolValue value) { 6908 if (compressedBuilder_ == null) { 6909 if (compressed_ != null) { 6910 compressed_ = 6911 com.google.protobuf.BoolValue.newBuilder(compressed_).mergeFrom(value).buildPartial(); 6912 } else { 6913 compressed_ = value; 6914 } 6915 onChanged(); 6916 } else { 6917 compressedBuilder_.mergeFrom(value); 6918 } 6919 6920 return this; 6921 } 6922 /** 6923 * <pre> 6924 * Whether to request the server to compress the response. This field is 6925 * "nullable" in order to interoperate seamlessly with clients not able to 6926 * implement the full compression tests by introspecting the call to verify 6927 * the response's compression status. 6928 * </pre> 6929 * 6930 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6931 */ 6932 public Builder clearCompressed() { 6933 if (compressedBuilder_ == null) { 6934 compressed_ = null; 6935 onChanged(); 6936 } else { 6937 compressed_ = null; 6938 compressedBuilder_ = null; 6939 } 6940 6941 return this; 6942 } 6943 /** 6944 * <pre> 6945 * Whether to request the server to compress the response. This field is 6946 * "nullable" in order to interoperate seamlessly with clients not able to 6947 * implement the full compression tests by introspecting the call to verify 6948 * the response's compression status. 6949 * </pre> 6950 * 6951 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6952 */ 6953 public com.google.protobuf.BoolValue.Builder getCompressedBuilder() { 6954 6955 onChanged(); 6956 return getCompressedFieldBuilder().getBuilder(); 6957 } 6958 /** 6959 * <pre> 6960 * Whether to request the server to compress the response. This field is 6961 * "nullable" in order to interoperate seamlessly with clients not able to 6962 * implement the full compression tests by introspecting the call to verify 6963 * the response's compression status. 6964 * </pre> 6965 * 6966 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6967 */ 6968 public com.google.protobuf.BoolValueOrBuilder getCompressedOrBuilder() { 6969 if (compressedBuilder_ != null) { 6970 return compressedBuilder_.getMessageOrBuilder(); 6971 } else { 6972 return compressed_ == null ? 6973 com.google.protobuf.BoolValue.getDefaultInstance() : compressed_; 6974 } 6975 } 6976 /** 6977 * <pre> 6978 * Whether to request the server to compress the response. This field is 6979 * "nullable" in order to interoperate seamlessly with clients not able to 6980 * implement the full compression tests by introspecting the call to verify 6981 * the response's compression status. 6982 * </pre> 6983 * 6984 * <code>.google.protobuf.BoolValue compressed = 3;</code> 6985 */ 6986 private com.google.protobuf.SingleFieldBuilderV3< 6987 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 6988 getCompressedFieldBuilder() { 6989 if (compressedBuilder_ == null) { 6990 compressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 6991 com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( 6992 getCompressed(), 6993 getParentForChildren(), 6994 isClean()); 6995 compressed_ = null; 6996 } 6997 return compressedBuilder_; 6998 } 6999 public final Builder setUnknownFields( 7000 final com.google.protobuf.UnknownFieldSet unknownFields) { 7001 return super.setUnknownFieldsProto3(unknownFields); 7002 } 7003 7004 public final Builder mergeUnknownFields( 7005 final com.google.protobuf.UnknownFieldSet unknownFields) { 7006 return super.mergeUnknownFields(unknownFields); 7007 } 7008 7009 7010 // @@protoc_insertion_point(builder_scope:grpc.testing.ResponseParameters) 7011 } 7012 7013 // @@protoc_insertion_point(class_scope:grpc.testing.ResponseParameters) 7014 private static final io.grpc.testing.integration.Messages.ResponseParameters DEFAULT_INSTANCE; 7015 static { 7016 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.ResponseParameters(); 7017 } 7018 7019 public static io.grpc.testing.integration.Messages.ResponseParameters getDefaultInstance() { 7020 return DEFAULT_INSTANCE; 7021 } 7022 7023 private static final com.google.protobuf.Parser<ResponseParameters> 7024 PARSER = new com.google.protobuf.AbstractParser<ResponseParameters>() { 7025 public ResponseParameters parsePartialFrom( 7026 com.google.protobuf.CodedInputStream input, 7027 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7028 throws com.google.protobuf.InvalidProtocolBufferException { 7029 return new ResponseParameters(input, extensionRegistry); 7030 } 7031 }; 7032 7033 public static com.google.protobuf.Parser<ResponseParameters> parser() { 7034 return PARSER; 7035 } 7036 7037 @java.lang.Override 7038 public com.google.protobuf.Parser<ResponseParameters> getParserForType() { 7039 return PARSER; 7040 } 7041 7042 public io.grpc.testing.integration.Messages.ResponseParameters getDefaultInstanceForType() { 7043 return DEFAULT_INSTANCE; 7044 } 7045 7046 } 7047 7048 public interface StreamingOutputCallRequestOrBuilder extends 7049 // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingOutputCallRequest) 7050 com.google.protobuf.MessageOrBuilder { 7051 7052 /** 7053 * <pre> 7054 * DEPRECATED, don't use. To be removed shortly. 7055 * Desired payload type in the response from the server. 7056 * If response_type is RANDOM, the payload from each response in the stream 7057 * might be of different types. This is to simulate a mixed type of payload 7058 * stream. 7059 * </pre> 7060 * 7061 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7062 */ 7063 int getResponseTypeValue(); 7064 /** 7065 * <pre> 7066 * DEPRECATED, don't use. To be removed shortly. 7067 * Desired payload type in the response from the server. 7068 * If response_type is RANDOM, the payload from each response in the stream 7069 * might be of different types. This is to simulate a mixed type of payload 7070 * stream. 7071 * </pre> 7072 * 7073 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7074 */ 7075 io.grpc.testing.integration.Messages.PayloadType getResponseType(); 7076 7077 /** 7078 * <pre> 7079 * Configuration for each expected response message. 7080 * </pre> 7081 * 7082 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7083 */ 7084 java.util.List<io.grpc.testing.integration.Messages.ResponseParameters> 7085 getResponseParametersList(); 7086 /** 7087 * <pre> 7088 * Configuration for each expected response message. 7089 * </pre> 7090 * 7091 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7092 */ 7093 io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index); 7094 /** 7095 * <pre> 7096 * Configuration for each expected response message. 7097 * </pre> 7098 * 7099 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7100 */ 7101 int getResponseParametersCount(); 7102 /** 7103 * <pre> 7104 * Configuration for each expected response message. 7105 * </pre> 7106 * 7107 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7108 */ 7109 java.util.List<? extends io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> 7110 getResponseParametersOrBuilderList(); 7111 /** 7112 * <pre> 7113 * Configuration for each expected response message. 7114 * </pre> 7115 * 7116 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7117 */ 7118 io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( 7119 int index); 7120 7121 /** 7122 * <pre> 7123 * Optional input payload sent along with the request. 7124 * </pre> 7125 * 7126 * <code>.grpc.testing.Payload payload = 3;</code> 7127 */ 7128 boolean hasPayload(); 7129 /** 7130 * <pre> 7131 * Optional input payload sent along with the request. 7132 * </pre> 7133 * 7134 * <code>.grpc.testing.Payload payload = 3;</code> 7135 */ 7136 io.grpc.testing.integration.Messages.Payload getPayload(); 7137 /** 7138 * <pre> 7139 * Optional input payload sent along with the request. 7140 * </pre> 7141 * 7142 * <code>.grpc.testing.Payload payload = 3;</code> 7143 */ 7144 io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); 7145 7146 /** 7147 * <pre> 7148 * Whether server should return a given status 7149 * </pre> 7150 * 7151 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 7152 */ 7153 boolean hasResponseStatus(); 7154 /** 7155 * <pre> 7156 * Whether server should return a given status 7157 * </pre> 7158 * 7159 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 7160 */ 7161 io.grpc.testing.integration.Messages.EchoStatus getResponseStatus(); 7162 /** 7163 * <pre> 7164 * Whether server should return a given status 7165 * </pre> 7166 * 7167 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 7168 */ 7169 io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); 7170 } 7171 /** 7172 * <pre> 7173 * Server-streaming request. 7174 * </pre> 7175 * 7176 * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} 7177 */ 7178 public static final class StreamingOutputCallRequest extends 7179 com.google.protobuf.GeneratedMessageV3 implements 7180 // @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallRequest) 7181 StreamingOutputCallRequestOrBuilder { 7182 private static final long serialVersionUID = 0L; 7183 // Use StreamingOutputCallRequest.newBuilder() to construct. 7184 private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 7185 super(builder); 7186 } 7187 private StreamingOutputCallRequest() { 7188 responseType_ = 0; 7189 responseParameters_ = java.util.Collections.emptyList(); 7190 } 7191 7192 @java.lang.Override 7193 public final com.google.protobuf.UnknownFieldSet 7194 getUnknownFields() { 7195 return this.unknownFields; 7196 } 7197 private StreamingOutputCallRequest( 7198 com.google.protobuf.CodedInputStream input, 7199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7200 throws com.google.protobuf.InvalidProtocolBufferException { 7201 this(); 7202 if (extensionRegistry == null) { 7203 throw new java.lang.NullPointerException(); 7204 } 7205 int mutable_bitField0_ = 0; 7206 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 7207 com.google.protobuf.UnknownFieldSet.newBuilder(); 7208 try { 7209 boolean done = false; 7210 while (!done) { 7211 int tag = input.readTag(); 7212 switch (tag) { 7213 case 0: 7214 done = true; 7215 break; 7216 default: { 7217 if (!parseUnknownFieldProto3( 7218 input, unknownFields, extensionRegistry, tag)) { 7219 done = true; 7220 } 7221 break; 7222 } 7223 case 8: { 7224 int rawValue = input.readEnum(); 7225 7226 responseType_ = rawValue; 7227 break; 7228 } 7229 case 18: { 7230 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 7231 responseParameters_ = new java.util.ArrayList<io.grpc.testing.integration.Messages.ResponseParameters>(); 7232 mutable_bitField0_ |= 0x00000002; 7233 } 7234 responseParameters_.add( 7235 input.readMessage(io.grpc.testing.integration.Messages.ResponseParameters.parser(), extensionRegistry)); 7236 break; 7237 } 7238 case 26: { 7239 io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; 7240 if (payload_ != null) { 7241 subBuilder = payload_.toBuilder(); 7242 } 7243 payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.parser(), extensionRegistry); 7244 if (subBuilder != null) { 7245 subBuilder.mergeFrom(payload_); 7246 payload_ = subBuilder.buildPartial(); 7247 } 7248 7249 break; 7250 } 7251 case 58: { 7252 io.grpc.testing.integration.Messages.EchoStatus.Builder subBuilder = null; 7253 if (responseStatus_ != null) { 7254 subBuilder = responseStatus_.toBuilder(); 7255 } 7256 responseStatus_ = input.readMessage(io.grpc.testing.integration.Messages.EchoStatus.parser(), extensionRegistry); 7257 if (subBuilder != null) { 7258 subBuilder.mergeFrom(responseStatus_); 7259 responseStatus_ = subBuilder.buildPartial(); 7260 } 7261 7262 break; 7263 } 7264 } 7265 } 7266 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7267 throw e.setUnfinishedMessage(this); 7268 } catch (java.io.IOException e) { 7269 throw new com.google.protobuf.InvalidProtocolBufferException( 7270 e).setUnfinishedMessage(this); 7271 } finally { 7272 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 7273 responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); 7274 } 7275 this.unknownFields = unknownFields.build(); 7276 makeExtensionsImmutable(); 7277 } 7278 } 7279 public static final com.google.protobuf.Descriptors.Descriptor 7280 getDescriptor() { 7281 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; 7282 } 7283 7284 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 7285 internalGetFieldAccessorTable() { 7286 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable 7287 .ensureFieldAccessorsInitialized( 7288 io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class, io.grpc.testing.integration.Messages.StreamingOutputCallRequest.Builder.class); 7289 } 7290 7291 private int bitField0_; 7292 public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; 7293 private int responseType_; 7294 /** 7295 * <pre> 7296 * DEPRECATED, don't use. To be removed shortly. 7297 * Desired payload type in the response from the server. 7298 * If response_type is RANDOM, the payload from each response in the stream 7299 * might be of different types. This is to simulate a mixed type of payload 7300 * stream. 7301 * </pre> 7302 * 7303 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7304 */ 7305 public int getResponseTypeValue() { 7306 return responseType_; 7307 } 7308 /** 7309 * <pre> 7310 * DEPRECATED, don't use. To be removed shortly. 7311 * Desired payload type in the response from the server. 7312 * If response_type is RANDOM, the payload from each response in the stream 7313 * might be of different types. This is to simulate a mixed type of payload 7314 * stream. 7315 * </pre> 7316 * 7317 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7318 */ 7319 public io.grpc.testing.integration.Messages.PayloadType getResponseType() { 7320 io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); 7321 return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; 7322 } 7323 7324 public static final int RESPONSE_PARAMETERS_FIELD_NUMBER = 2; 7325 private java.util.List<io.grpc.testing.integration.Messages.ResponseParameters> responseParameters_; 7326 /** 7327 * <pre> 7328 * Configuration for each expected response message. 7329 * </pre> 7330 * 7331 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7332 */ 7333 public java.util.List<io.grpc.testing.integration.Messages.ResponseParameters> getResponseParametersList() { 7334 return responseParameters_; 7335 } 7336 /** 7337 * <pre> 7338 * Configuration for each expected response message. 7339 * </pre> 7340 * 7341 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7342 */ 7343 public java.util.List<? extends io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> 7344 getResponseParametersOrBuilderList() { 7345 return responseParameters_; 7346 } 7347 /** 7348 * <pre> 7349 * Configuration for each expected response message. 7350 * </pre> 7351 * 7352 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7353 */ 7354 public int getResponseParametersCount() { 7355 return responseParameters_.size(); 7356 } 7357 /** 7358 * <pre> 7359 * Configuration for each expected response message. 7360 * </pre> 7361 * 7362 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7363 */ 7364 public io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index) { 7365 return responseParameters_.get(index); 7366 } 7367 /** 7368 * <pre> 7369 * Configuration for each expected response message. 7370 * </pre> 7371 * 7372 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7373 */ 7374 public io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( 7375 int index) { 7376 return responseParameters_.get(index); 7377 } 7378 7379 public static final int PAYLOAD_FIELD_NUMBER = 3; 7380 private io.grpc.testing.integration.Messages.Payload payload_; 7381 /** 7382 * <pre> 7383 * Optional input payload sent along with the request. 7384 * </pre> 7385 * 7386 * <code>.grpc.testing.Payload payload = 3;</code> 7387 */ 7388 public boolean hasPayload() { 7389 return payload_ != null; 7390 } 7391 /** 7392 * <pre> 7393 * Optional input payload sent along with the request. 7394 * </pre> 7395 * 7396 * <code>.grpc.testing.Payload payload = 3;</code> 7397 */ 7398 public io.grpc.testing.integration.Messages.Payload getPayload() { 7399 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 7400 } 7401 /** 7402 * <pre> 7403 * Optional input payload sent along with the request. 7404 * </pre> 7405 * 7406 * <code>.grpc.testing.Payload payload = 3;</code> 7407 */ 7408 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 7409 return getPayload(); 7410 } 7411 7412 public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; 7413 private io.grpc.testing.integration.Messages.EchoStatus responseStatus_; 7414 /** 7415 * <pre> 7416 * Whether server should return a given status 7417 * </pre> 7418 * 7419 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 7420 */ 7421 public boolean hasResponseStatus() { 7422 return responseStatus_ != null; 7423 } 7424 /** 7425 * <pre> 7426 * Whether server should return a given status 7427 * </pre> 7428 * 7429 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 7430 */ 7431 public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { 7432 return responseStatus_ == null ? io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; 7433 } 7434 /** 7435 * <pre> 7436 * Whether server should return a given status 7437 * </pre> 7438 * 7439 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 7440 */ 7441 public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { 7442 return getResponseStatus(); 7443 } 7444 7445 private byte memoizedIsInitialized = -1; 7446 public final boolean isInitialized() { 7447 byte isInitialized = memoizedIsInitialized; 7448 if (isInitialized == 1) return true; 7449 if (isInitialized == 0) return false; 7450 7451 memoizedIsInitialized = 1; 7452 return true; 7453 } 7454 7455 public void writeTo(com.google.protobuf.CodedOutputStream output) 7456 throws java.io.IOException { 7457 if (responseType_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { 7458 output.writeEnum(1, responseType_); 7459 } 7460 for (int i = 0; i < responseParameters_.size(); i++) { 7461 output.writeMessage(2, responseParameters_.get(i)); 7462 } 7463 if (payload_ != null) { 7464 output.writeMessage(3, getPayload()); 7465 } 7466 if (responseStatus_ != null) { 7467 output.writeMessage(7, getResponseStatus()); 7468 } 7469 unknownFields.writeTo(output); 7470 } 7471 7472 public int getSerializedSize() { 7473 int size = memoizedSize; 7474 if (size != -1) return size; 7475 7476 size = 0; 7477 if (responseType_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { 7478 size += com.google.protobuf.CodedOutputStream 7479 .computeEnumSize(1, responseType_); 7480 } 7481 for (int i = 0; i < responseParameters_.size(); i++) { 7482 size += com.google.protobuf.CodedOutputStream 7483 .computeMessageSize(2, responseParameters_.get(i)); 7484 } 7485 if (payload_ != null) { 7486 size += com.google.protobuf.CodedOutputStream 7487 .computeMessageSize(3, getPayload()); 7488 } 7489 if (responseStatus_ != null) { 7490 size += com.google.protobuf.CodedOutputStream 7491 .computeMessageSize(7, getResponseStatus()); 7492 } 7493 size += unknownFields.getSerializedSize(); 7494 memoizedSize = size; 7495 return size; 7496 } 7497 7498 @java.lang.Override 7499 public boolean equals(final java.lang.Object obj) { 7500 if (obj == this) { 7501 return true; 7502 } 7503 if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingOutputCallRequest)) { 7504 return super.equals(obj); 7505 } 7506 io.grpc.testing.integration.Messages.StreamingOutputCallRequest other = (io.grpc.testing.integration.Messages.StreamingOutputCallRequest) obj; 7507 7508 boolean result = true; 7509 result = result && responseType_ == other.responseType_; 7510 result = result && getResponseParametersList() 7511 .equals(other.getResponseParametersList()); 7512 result = result && (hasPayload() == other.hasPayload()); 7513 if (hasPayload()) { 7514 result = result && getPayload() 7515 .equals(other.getPayload()); 7516 } 7517 result = result && (hasResponseStatus() == other.hasResponseStatus()); 7518 if (hasResponseStatus()) { 7519 result = result && getResponseStatus() 7520 .equals(other.getResponseStatus()); 7521 } 7522 result = result && unknownFields.equals(other.unknownFields); 7523 return result; 7524 } 7525 7526 @java.lang.Override 7527 public int hashCode() { 7528 if (memoizedHashCode != 0) { 7529 return memoizedHashCode; 7530 } 7531 int hash = 41; 7532 hash = (19 * hash) + getDescriptor().hashCode(); 7533 hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER; 7534 hash = (53 * hash) + responseType_; 7535 if (getResponseParametersCount() > 0) { 7536 hash = (37 * hash) + RESPONSE_PARAMETERS_FIELD_NUMBER; 7537 hash = (53 * hash) + getResponseParametersList().hashCode(); 7538 } 7539 if (hasPayload()) { 7540 hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; 7541 hash = (53 * hash) + getPayload().hashCode(); 7542 } 7543 if (hasResponseStatus()) { 7544 hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; 7545 hash = (53 * hash) + getResponseStatus().hashCode(); 7546 } 7547 hash = (29 * hash) + unknownFields.hashCode(); 7548 memoizedHashCode = hash; 7549 return hash; 7550 } 7551 7552 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7553 java.nio.ByteBuffer data) 7554 throws com.google.protobuf.InvalidProtocolBufferException { 7555 return PARSER.parseFrom(data); 7556 } 7557 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7558 java.nio.ByteBuffer data, 7559 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7560 throws com.google.protobuf.InvalidProtocolBufferException { 7561 return PARSER.parseFrom(data, extensionRegistry); 7562 } 7563 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7564 com.google.protobuf.ByteString data) 7565 throws com.google.protobuf.InvalidProtocolBufferException { 7566 return PARSER.parseFrom(data); 7567 } 7568 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7569 com.google.protobuf.ByteString data, 7570 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7571 throws com.google.protobuf.InvalidProtocolBufferException { 7572 return PARSER.parseFrom(data, extensionRegistry); 7573 } 7574 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(byte[] data) 7575 throws com.google.protobuf.InvalidProtocolBufferException { 7576 return PARSER.parseFrom(data); 7577 } 7578 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7579 byte[] data, 7580 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7581 throws com.google.protobuf.InvalidProtocolBufferException { 7582 return PARSER.parseFrom(data, extensionRegistry); 7583 } 7584 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input) 7585 throws java.io.IOException { 7586 return com.google.protobuf.GeneratedMessageV3 7587 .parseWithIOException(PARSER, input); 7588 } 7589 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7590 java.io.InputStream input, 7591 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7592 throws java.io.IOException { 7593 return com.google.protobuf.GeneratedMessageV3 7594 .parseWithIOException(PARSER, input, extensionRegistry); 7595 } 7596 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input) 7597 throws java.io.IOException { 7598 return com.google.protobuf.GeneratedMessageV3 7599 .parseDelimitedWithIOException(PARSER, input); 7600 } 7601 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseDelimitedFrom( 7602 java.io.InputStream input, 7603 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7604 throws java.io.IOException { 7605 return com.google.protobuf.GeneratedMessageV3 7606 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 7607 } 7608 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7609 com.google.protobuf.CodedInputStream input) 7610 throws java.io.IOException { 7611 return com.google.protobuf.GeneratedMessageV3 7612 .parseWithIOException(PARSER, input); 7613 } 7614 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( 7615 com.google.protobuf.CodedInputStream input, 7616 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7617 throws java.io.IOException { 7618 return com.google.protobuf.GeneratedMessageV3 7619 .parseWithIOException(PARSER, input, extensionRegistry); 7620 } 7621 7622 public Builder newBuilderForType() { return newBuilder(); } 7623 public static Builder newBuilder() { 7624 return DEFAULT_INSTANCE.toBuilder(); 7625 } 7626 public static Builder newBuilder(io.grpc.testing.integration.Messages.StreamingOutputCallRequest prototype) { 7627 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 7628 } 7629 public Builder toBuilder() { 7630 return this == DEFAULT_INSTANCE 7631 ? new Builder() : new Builder().mergeFrom(this); 7632 } 7633 7634 @java.lang.Override 7635 protected Builder newBuilderForType( 7636 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 7637 Builder builder = new Builder(parent); 7638 return builder; 7639 } 7640 /** 7641 * <pre> 7642 * Server-streaming request. 7643 * </pre> 7644 * 7645 * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} 7646 */ 7647 public static final class Builder extends 7648 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 7649 // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallRequest) 7650 io.grpc.testing.integration.Messages.StreamingOutputCallRequestOrBuilder { 7651 public static final com.google.protobuf.Descriptors.Descriptor 7652 getDescriptor() { 7653 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; 7654 } 7655 7656 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 7657 internalGetFieldAccessorTable() { 7658 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable 7659 .ensureFieldAccessorsInitialized( 7660 io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class, io.grpc.testing.integration.Messages.StreamingOutputCallRequest.Builder.class); 7661 } 7662 7663 // Construct using io.grpc.testing.integration.Messages.StreamingOutputCallRequest.newBuilder() 7664 private Builder() { 7665 maybeForceBuilderInitialization(); 7666 } 7667 7668 private Builder( 7669 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 7670 super(parent); 7671 maybeForceBuilderInitialization(); 7672 } 7673 private void maybeForceBuilderInitialization() { 7674 if (com.google.protobuf.GeneratedMessageV3 7675 .alwaysUseFieldBuilders) { 7676 getResponseParametersFieldBuilder(); 7677 } 7678 } 7679 public Builder clear() { 7680 super.clear(); 7681 responseType_ = 0; 7682 7683 if (responseParametersBuilder_ == null) { 7684 responseParameters_ = java.util.Collections.emptyList(); 7685 bitField0_ = (bitField0_ & ~0x00000002); 7686 } else { 7687 responseParametersBuilder_.clear(); 7688 } 7689 if (payloadBuilder_ == null) { 7690 payload_ = null; 7691 } else { 7692 payload_ = null; 7693 payloadBuilder_ = null; 7694 } 7695 if (responseStatusBuilder_ == null) { 7696 responseStatus_ = null; 7697 } else { 7698 responseStatus_ = null; 7699 responseStatusBuilder_ = null; 7700 } 7701 return this; 7702 } 7703 7704 public com.google.protobuf.Descriptors.Descriptor 7705 getDescriptorForType() { 7706 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; 7707 } 7708 7709 public io.grpc.testing.integration.Messages.StreamingOutputCallRequest getDefaultInstanceForType() { 7710 return io.grpc.testing.integration.Messages.StreamingOutputCallRequest.getDefaultInstance(); 7711 } 7712 7713 public io.grpc.testing.integration.Messages.StreamingOutputCallRequest build() { 7714 io.grpc.testing.integration.Messages.StreamingOutputCallRequest result = buildPartial(); 7715 if (!result.isInitialized()) { 7716 throw newUninitializedMessageException(result); 7717 } 7718 return result; 7719 } 7720 7721 public io.grpc.testing.integration.Messages.StreamingOutputCallRequest buildPartial() { 7722 io.grpc.testing.integration.Messages.StreamingOutputCallRequest result = new io.grpc.testing.integration.Messages.StreamingOutputCallRequest(this); 7723 int from_bitField0_ = bitField0_; 7724 int to_bitField0_ = 0; 7725 result.responseType_ = responseType_; 7726 if (responseParametersBuilder_ == null) { 7727 if (((bitField0_ & 0x00000002) == 0x00000002)) { 7728 responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); 7729 bitField0_ = (bitField0_ & ~0x00000002); 7730 } 7731 result.responseParameters_ = responseParameters_; 7732 } else { 7733 result.responseParameters_ = responseParametersBuilder_.build(); 7734 } 7735 if (payloadBuilder_ == null) { 7736 result.payload_ = payload_; 7737 } else { 7738 result.payload_ = payloadBuilder_.build(); 7739 } 7740 if (responseStatusBuilder_ == null) { 7741 result.responseStatus_ = responseStatus_; 7742 } else { 7743 result.responseStatus_ = responseStatusBuilder_.build(); 7744 } 7745 result.bitField0_ = to_bitField0_; 7746 onBuilt(); 7747 return result; 7748 } 7749 7750 public Builder clone() { 7751 return (Builder) super.clone(); 7752 } 7753 public Builder setField( 7754 com.google.protobuf.Descriptors.FieldDescriptor field, 7755 java.lang.Object value) { 7756 return (Builder) super.setField(field, value); 7757 } 7758 public Builder clearField( 7759 com.google.protobuf.Descriptors.FieldDescriptor field) { 7760 return (Builder) super.clearField(field); 7761 } 7762 public Builder clearOneof( 7763 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 7764 return (Builder) super.clearOneof(oneof); 7765 } 7766 public Builder setRepeatedField( 7767 com.google.protobuf.Descriptors.FieldDescriptor field, 7768 int index, java.lang.Object value) { 7769 return (Builder) super.setRepeatedField(field, index, value); 7770 } 7771 public Builder addRepeatedField( 7772 com.google.protobuf.Descriptors.FieldDescriptor field, 7773 java.lang.Object value) { 7774 return (Builder) super.addRepeatedField(field, value); 7775 } 7776 public Builder mergeFrom(com.google.protobuf.Message other) { 7777 if (other instanceof io.grpc.testing.integration.Messages.StreamingOutputCallRequest) { 7778 return mergeFrom((io.grpc.testing.integration.Messages.StreamingOutputCallRequest)other); 7779 } else { 7780 super.mergeFrom(other); 7781 return this; 7782 } 7783 } 7784 7785 public Builder mergeFrom(io.grpc.testing.integration.Messages.StreamingOutputCallRequest other) { 7786 if (other == io.grpc.testing.integration.Messages.StreamingOutputCallRequest.getDefaultInstance()) return this; 7787 if (other.responseType_ != 0) { 7788 setResponseTypeValue(other.getResponseTypeValue()); 7789 } 7790 if (responseParametersBuilder_ == null) { 7791 if (!other.responseParameters_.isEmpty()) { 7792 if (responseParameters_.isEmpty()) { 7793 responseParameters_ = other.responseParameters_; 7794 bitField0_ = (bitField0_ & ~0x00000002); 7795 } else { 7796 ensureResponseParametersIsMutable(); 7797 responseParameters_.addAll(other.responseParameters_); 7798 } 7799 onChanged(); 7800 } 7801 } else { 7802 if (!other.responseParameters_.isEmpty()) { 7803 if (responseParametersBuilder_.isEmpty()) { 7804 responseParametersBuilder_.dispose(); 7805 responseParametersBuilder_ = null; 7806 responseParameters_ = other.responseParameters_; 7807 bitField0_ = (bitField0_ & ~0x00000002); 7808 responseParametersBuilder_ = 7809 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 7810 getResponseParametersFieldBuilder() : null; 7811 } else { 7812 responseParametersBuilder_.addAllMessages(other.responseParameters_); 7813 } 7814 } 7815 } 7816 if (other.hasPayload()) { 7817 mergePayload(other.getPayload()); 7818 } 7819 if (other.hasResponseStatus()) { 7820 mergeResponseStatus(other.getResponseStatus()); 7821 } 7822 this.mergeUnknownFields(other.unknownFields); 7823 onChanged(); 7824 return this; 7825 } 7826 7827 public final boolean isInitialized() { 7828 return true; 7829 } 7830 7831 public Builder mergeFrom( 7832 com.google.protobuf.CodedInputStream input, 7833 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7834 throws java.io.IOException { 7835 io.grpc.testing.integration.Messages.StreamingOutputCallRequest parsedMessage = null; 7836 try { 7837 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 7838 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7839 parsedMessage = (io.grpc.testing.integration.Messages.StreamingOutputCallRequest) e.getUnfinishedMessage(); 7840 throw e.unwrapIOException(); 7841 } finally { 7842 if (parsedMessage != null) { 7843 mergeFrom(parsedMessage); 7844 } 7845 } 7846 return this; 7847 } 7848 private int bitField0_; 7849 7850 private int responseType_ = 0; 7851 /** 7852 * <pre> 7853 * DEPRECATED, don't use. To be removed shortly. 7854 * Desired payload type in the response from the server. 7855 * If response_type is RANDOM, the payload from each response in the stream 7856 * might be of different types. This is to simulate a mixed type of payload 7857 * stream. 7858 * </pre> 7859 * 7860 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7861 */ 7862 public int getResponseTypeValue() { 7863 return responseType_; 7864 } 7865 /** 7866 * <pre> 7867 * DEPRECATED, don't use. To be removed shortly. 7868 * Desired payload type in the response from the server. 7869 * If response_type is RANDOM, the payload from each response in the stream 7870 * might be of different types. This is to simulate a mixed type of payload 7871 * stream. 7872 * </pre> 7873 * 7874 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7875 */ 7876 public Builder setResponseTypeValue(int value) { 7877 responseType_ = value; 7878 onChanged(); 7879 return this; 7880 } 7881 /** 7882 * <pre> 7883 * DEPRECATED, don't use. To be removed shortly. 7884 * Desired payload type in the response from the server. 7885 * If response_type is RANDOM, the payload from each response in the stream 7886 * might be of different types. This is to simulate a mixed type of payload 7887 * stream. 7888 * </pre> 7889 * 7890 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7891 */ 7892 public io.grpc.testing.integration.Messages.PayloadType getResponseType() { 7893 io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); 7894 return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; 7895 } 7896 /** 7897 * <pre> 7898 * DEPRECATED, don't use. To be removed shortly. 7899 * Desired payload type in the response from the server. 7900 * If response_type is RANDOM, the payload from each response in the stream 7901 * might be of different types. This is to simulate a mixed type of payload 7902 * stream. 7903 * </pre> 7904 * 7905 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7906 */ 7907 public Builder setResponseType(io.grpc.testing.integration.Messages.PayloadType value) { 7908 if (value == null) { 7909 throw new NullPointerException(); 7910 } 7911 7912 responseType_ = value.getNumber(); 7913 onChanged(); 7914 return this; 7915 } 7916 /** 7917 * <pre> 7918 * DEPRECATED, don't use. To be removed shortly. 7919 * Desired payload type in the response from the server. 7920 * If response_type is RANDOM, the payload from each response in the stream 7921 * might be of different types. This is to simulate a mixed type of payload 7922 * stream. 7923 * </pre> 7924 * 7925 * <code>.grpc.testing.PayloadType response_type = 1;</code> 7926 */ 7927 public Builder clearResponseType() { 7928 7929 responseType_ = 0; 7930 onChanged(); 7931 return this; 7932 } 7933 7934 private java.util.List<io.grpc.testing.integration.Messages.ResponseParameters> responseParameters_ = 7935 java.util.Collections.emptyList(); 7936 private void ensureResponseParametersIsMutable() { 7937 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 7938 responseParameters_ = new java.util.ArrayList<io.grpc.testing.integration.Messages.ResponseParameters>(responseParameters_); 7939 bitField0_ |= 0x00000002; 7940 } 7941 } 7942 7943 private com.google.protobuf.RepeatedFieldBuilderV3< 7944 io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> responseParametersBuilder_; 7945 7946 /** 7947 * <pre> 7948 * Configuration for each expected response message. 7949 * </pre> 7950 * 7951 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7952 */ 7953 public java.util.List<io.grpc.testing.integration.Messages.ResponseParameters> getResponseParametersList() { 7954 if (responseParametersBuilder_ == null) { 7955 return java.util.Collections.unmodifiableList(responseParameters_); 7956 } else { 7957 return responseParametersBuilder_.getMessageList(); 7958 } 7959 } 7960 /** 7961 * <pre> 7962 * Configuration for each expected response message. 7963 * </pre> 7964 * 7965 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7966 */ 7967 public int getResponseParametersCount() { 7968 if (responseParametersBuilder_ == null) { 7969 return responseParameters_.size(); 7970 } else { 7971 return responseParametersBuilder_.getCount(); 7972 } 7973 } 7974 /** 7975 * <pre> 7976 * Configuration for each expected response message. 7977 * </pre> 7978 * 7979 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7980 */ 7981 public io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index) { 7982 if (responseParametersBuilder_ == null) { 7983 return responseParameters_.get(index); 7984 } else { 7985 return responseParametersBuilder_.getMessage(index); 7986 } 7987 } 7988 /** 7989 * <pre> 7990 * Configuration for each expected response message. 7991 * </pre> 7992 * 7993 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 7994 */ 7995 public Builder setResponseParameters( 7996 int index, io.grpc.testing.integration.Messages.ResponseParameters value) { 7997 if (responseParametersBuilder_ == null) { 7998 if (value == null) { 7999 throw new NullPointerException(); 8000 } 8001 ensureResponseParametersIsMutable(); 8002 responseParameters_.set(index, value); 8003 onChanged(); 8004 } else { 8005 responseParametersBuilder_.setMessage(index, value); 8006 } 8007 return this; 8008 } 8009 /** 8010 * <pre> 8011 * Configuration for each expected response message. 8012 * </pre> 8013 * 8014 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8015 */ 8016 public Builder setResponseParameters( 8017 int index, io.grpc.testing.integration.Messages.ResponseParameters.Builder builderForValue) { 8018 if (responseParametersBuilder_ == null) { 8019 ensureResponseParametersIsMutable(); 8020 responseParameters_.set(index, builderForValue.build()); 8021 onChanged(); 8022 } else { 8023 responseParametersBuilder_.setMessage(index, builderForValue.build()); 8024 } 8025 return this; 8026 } 8027 /** 8028 * <pre> 8029 * Configuration for each expected response message. 8030 * </pre> 8031 * 8032 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8033 */ 8034 public Builder addResponseParameters(io.grpc.testing.integration.Messages.ResponseParameters value) { 8035 if (responseParametersBuilder_ == null) { 8036 if (value == null) { 8037 throw new NullPointerException(); 8038 } 8039 ensureResponseParametersIsMutable(); 8040 responseParameters_.add(value); 8041 onChanged(); 8042 } else { 8043 responseParametersBuilder_.addMessage(value); 8044 } 8045 return this; 8046 } 8047 /** 8048 * <pre> 8049 * Configuration for each expected response message. 8050 * </pre> 8051 * 8052 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8053 */ 8054 public Builder addResponseParameters( 8055 int index, io.grpc.testing.integration.Messages.ResponseParameters value) { 8056 if (responseParametersBuilder_ == null) { 8057 if (value == null) { 8058 throw new NullPointerException(); 8059 } 8060 ensureResponseParametersIsMutable(); 8061 responseParameters_.add(index, value); 8062 onChanged(); 8063 } else { 8064 responseParametersBuilder_.addMessage(index, value); 8065 } 8066 return this; 8067 } 8068 /** 8069 * <pre> 8070 * Configuration for each expected response message. 8071 * </pre> 8072 * 8073 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8074 */ 8075 public Builder addResponseParameters( 8076 io.grpc.testing.integration.Messages.ResponseParameters.Builder builderForValue) { 8077 if (responseParametersBuilder_ == null) { 8078 ensureResponseParametersIsMutable(); 8079 responseParameters_.add(builderForValue.build()); 8080 onChanged(); 8081 } else { 8082 responseParametersBuilder_.addMessage(builderForValue.build()); 8083 } 8084 return this; 8085 } 8086 /** 8087 * <pre> 8088 * Configuration for each expected response message. 8089 * </pre> 8090 * 8091 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8092 */ 8093 public Builder addResponseParameters( 8094 int index, io.grpc.testing.integration.Messages.ResponseParameters.Builder builderForValue) { 8095 if (responseParametersBuilder_ == null) { 8096 ensureResponseParametersIsMutable(); 8097 responseParameters_.add(index, builderForValue.build()); 8098 onChanged(); 8099 } else { 8100 responseParametersBuilder_.addMessage(index, builderForValue.build()); 8101 } 8102 return this; 8103 } 8104 /** 8105 * <pre> 8106 * Configuration for each expected response message. 8107 * </pre> 8108 * 8109 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8110 */ 8111 public Builder addAllResponseParameters( 8112 java.lang.Iterable<? extends io.grpc.testing.integration.Messages.ResponseParameters> values) { 8113 if (responseParametersBuilder_ == null) { 8114 ensureResponseParametersIsMutable(); 8115 com.google.protobuf.AbstractMessageLite.Builder.addAll( 8116 values, responseParameters_); 8117 onChanged(); 8118 } else { 8119 responseParametersBuilder_.addAllMessages(values); 8120 } 8121 return this; 8122 } 8123 /** 8124 * <pre> 8125 * Configuration for each expected response message. 8126 * </pre> 8127 * 8128 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8129 */ 8130 public Builder clearResponseParameters() { 8131 if (responseParametersBuilder_ == null) { 8132 responseParameters_ = java.util.Collections.emptyList(); 8133 bitField0_ = (bitField0_ & ~0x00000002); 8134 onChanged(); 8135 } else { 8136 responseParametersBuilder_.clear(); 8137 } 8138 return this; 8139 } 8140 /** 8141 * <pre> 8142 * Configuration for each expected response message. 8143 * </pre> 8144 * 8145 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8146 */ 8147 public Builder removeResponseParameters(int index) { 8148 if (responseParametersBuilder_ == null) { 8149 ensureResponseParametersIsMutable(); 8150 responseParameters_.remove(index); 8151 onChanged(); 8152 } else { 8153 responseParametersBuilder_.remove(index); 8154 } 8155 return this; 8156 } 8157 /** 8158 * <pre> 8159 * Configuration for each expected response message. 8160 * </pre> 8161 * 8162 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8163 */ 8164 public io.grpc.testing.integration.Messages.ResponseParameters.Builder getResponseParametersBuilder( 8165 int index) { 8166 return getResponseParametersFieldBuilder().getBuilder(index); 8167 } 8168 /** 8169 * <pre> 8170 * Configuration for each expected response message. 8171 * </pre> 8172 * 8173 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8174 */ 8175 public io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( 8176 int index) { 8177 if (responseParametersBuilder_ == null) { 8178 return responseParameters_.get(index); } else { 8179 return responseParametersBuilder_.getMessageOrBuilder(index); 8180 } 8181 } 8182 /** 8183 * <pre> 8184 * Configuration for each expected response message. 8185 * </pre> 8186 * 8187 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8188 */ 8189 public java.util.List<? extends io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> 8190 getResponseParametersOrBuilderList() { 8191 if (responseParametersBuilder_ != null) { 8192 return responseParametersBuilder_.getMessageOrBuilderList(); 8193 } else { 8194 return java.util.Collections.unmodifiableList(responseParameters_); 8195 } 8196 } 8197 /** 8198 * <pre> 8199 * Configuration for each expected response message. 8200 * </pre> 8201 * 8202 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8203 */ 8204 public io.grpc.testing.integration.Messages.ResponseParameters.Builder addResponseParametersBuilder() { 8205 return getResponseParametersFieldBuilder().addBuilder( 8206 io.grpc.testing.integration.Messages.ResponseParameters.getDefaultInstance()); 8207 } 8208 /** 8209 * <pre> 8210 * Configuration for each expected response message. 8211 * </pre> 8212 * 8213 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8214 */ 8215 public io.grpc.testing.integration.Messages.ResponseParameters.Builder addResponseParametersBuilder( 8216 int index) { 8217 return getResponseParametersFieldBuilder().addBuilder( 8218 index, io.grpc.testing.integration.Messages.ResponseParameters.getDefaultInstance()); 8219 } 8220 /** 8221 * <pre> 8222 * Configuration for each expected response message. 8223 * </pre> 8224 * 8225 * <code>repeated .grpc.testing.ResponseParameters response_parameters = 2;</code> 8226 */ 8227 public java.util.List<io.grpc.testing.integration.Messages.ResponseParameters.Builder> 8228 getResponseParametersBuilderList() { 8229 return getResponseParametersFieldBuilder().getBuilderList(); 8230 } 8231 private com.google.protobuf.RepeatedFieldBuilderV3< 8232 io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> 8233 getResponseParametersFieldBuilder() { 8234 if (responseParametersBuilder_ == null) { 8235 responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 8236 io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder>( 8237 responseParameters_, 8238 ((bitField0_ & 0x00000002) == 0x00000002), 8239 getParentForChildren(), 8240 isClean()); 8241 responseParameters_ = null; 8242 } 8243 return responseParametersBuilder_; 8244 } 8245 8246 private io.grpc.testing.integration.Messages.Payload payload_ = null; 8247 private com.google.protobuf.SingleFieldBuilderV3< 8248 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; 8249 /** 8250 * <pre> 8251 * Optional input payload sent along with the request. 8252 * </pre> 8253 * 8254 * <code>.grpc.testing.Payload payload = 3;</code> 8255 */ 8256 public boolean hasPayload() { 8257 return payloadBuilder_ != null || payload_ != null; 8258 } 8259 /** 8260 * <pre> 8261 * Optional input payload sent along with the request. 8262 * </pre> 8263 * 8264 * <code>.grpc.testing.Payload payload = 3;</code> 8265 */ 8266 public io.grpc.testing.integration.Messages.Payload getPayload() { 8267 if (payloadBuilder_ == null) { 8268 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 8269 } else { 8270 return payloadBuilder_.getMessage(); 8271 } 8272 } 8273 /** 8274 * <pre> 8275 * Optional input payload sent along with the request. 8276 * </pre> 8277 * 8278 * <code>.grpc.testing.Payload payload = 3;</code> 8279 */ 8280 public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { 8281 if (payloadBuilder_ == null) { 8282 if (value == null) { 8283 throw new NullPointerException(); 8284 } 8285 payload_ = value; 8286 onChanged(); 8287 } else { 8288 payloadBuilder_.setMessage(value); 8289 } 8290 8291 return this; 8292 } 8293 /** 8294 * <pre> 8295 * Optional input payload sent along with the request. 8296 * </pre> 8297 * 8298 * <code>.grpc.testing.Payload payload = 3;</code> 8299 */ 8300 public Builder setPayload( 8301 io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { 8302 if (payloadBuilder_ == null) { 8303 payload_ = builderForValue.build(); 8304 onChanged(); 8305 } else { 8306 payloadBuilder_.setMessage(builderForValue.build()); 8307 } 8308 8309 return this; 8310 } 8311 /** 8312 * <pre> 8313 * Optional input payload sent along with the request. 8314 * </pre> 8315 * 8316 * <code>.grpc.testing.Payload payload = 3;</code> 8317 */ 8318 public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { 8319 if (payloadBuilder_ == null) { 8320 if (payload_ != null) { 8321 payload_ = 8322 io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); 8323 } else { 8324 payload_ = value; 8325 } 8326 onChanged(); 8327 } else { 8328 payloadBuilder_.mergeFrom(value); 8329 } 8330 8331 return this; 8332 } 8333 /** 8334 * <pre> 8335 * Optional input payload sent along with the request. 8336 * </pre> 8337 * 8338 * <code>.grpc.testing.Payload payload = 3;</code> 8339 */ 8340 public Builder clearPayload() { 8341 if (payloadBuilder_ == null) { 8342 payload_ = null; 8343 onChanged(); 8344 } else { 8345 payload_ = null; 8346 payloadBuilder_ = null; 8347 } 8348 8349 return this; 8350 } 8351 /** 8352 * <pre> 8353 * Optional input payload sent along with the request. 8354 * </pre> 8355 * 8356 * <code>.grpc.testing.Payload payload = 3;</code> 8357 */ 8358 public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { 8359 8360 onChanged(); 8361 return getPayloadFieldBuilder().getBuilder(); 8362 } 8363 /** 8364 * <pre> 8365 * Optional input payload sent along with the request. 8366 * </pre> 8367 * 8368 * <code>.grpc.testing.Payload payload = 3;</code> 8369 */ 8370 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 8371 if (payloadBuilder_ != null) { 8372 return payloadBuilder_.getMessageOrBuilder(); 8373 } else { 8374 return payload_ == null ? 8375 io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 8376 } 8377 } 8378 /** 8379 * <pre> 8380 * Optional input payload sent along with the request. 8381 * </pre> 8382 * 8383 * <code>.grpc.testing.Payload payload = 3;</code> 8384 */ 8385 private com.google.protobuf.SingleFieldBuilderV3< 8386 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> 8387 getPayloadFieldBuilder() { 8388 if (payloadBuilder_ == null) { 8389 payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 8390 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( 8391 getPayload(), 8392 getParentForChildren(), 8393 isClean()); 8394 payload_ = null; 8395 } 8396 return payloadBuilder_; 8397 } 8398 8399 private io.grpc.testing.integration.Messages.EchoStatus responseStatus_ = null; 8400 private com.google.protobuf.SingleFieldBuilderV3< 8401 io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> responseStatusBuilder_; 8402 /** 8403 * <pre> 8404 * Whether server should return a given status 8405 * </pre> 8406 * 8407 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8408 */ 8409 public boolean hasResponseStatus() { 8410 return responseStatusBuilder_ != null || responseStatus_ != null; 8411 } 8412 /** 8413 * <pre> 8414 * Whether server should return a given status 8415 * </pre> 8416 * 8417 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8418 */ 8419 public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { 8420 if (responseStatusBuilder_ == null) { 8421 return responseStatus_ == null ? io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; 8422 } else { 8423 return responseStatusBuilder_.getMessage(); 8424 } 8425 } 8426 /** 8427 * <pre> 8428 * Whether server should return a given status 8429 * </pre> 8430 * 8431 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8432 */ 8433 public Builder setResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { 8434 if (responseStatusBuilder_ == null) { 8435 if (value == null) { 8436 throw new NullPointerException(); 8437 } 8438 responseStatus_ = value; 8439 onChanged(); 8440 } else { 8441 responseStatusBuilder_.setMessage(value); 8442 } 8443 8444 return this; 8445 } 8446 /** 8447 * <pre> 8448 * Whether server should return a given status 8449 * </pre> 8450 * 8451 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8452 */ 8453 public Builder setResponseStatus( 8454 io.grpc.testing.integration.Messages.EchoStatus.Builder builderForValue) { 8455 if (responseStatusBuilder_ == null) { 8456 responseStatus_ = builderForValue.build(); 8457 onChanged(); 8458 } else { 8459 responseStatusBuilder_.setMessage(builderForValue.build()); 8460 } 8461 8462 return this; 8463 } 8464 /** 8465 * <pre> 8466 * Whether server should return a given status 8467 * </pre> 8468 * 8469 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8470 */ 8471 public Builder mergeResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { 8472 if (responseStatusBuilder_ == null) { 8473 if (responseStatus_ != null) { 8474 responseStatus_ = 8475 io.grpc.testing.integration.Messages.EchoStatus.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); 8476 } else { 8477 responseStatus_ = value; 8478 } 8479 onChanged(); 8480 } else { 8481 responseStatusBuilder_.mergeFrom(value); 8482 } 8483 8484 return this; 8485 } 8486 /** 8487 * <pre> 8488 * Whether server should return a given status 8489 * </pre> 8490 * 8491 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8492 */ 8493 public Builder clearResponseStatus() { 8494 if (responseStatusBuilder_ == null) { 8495 responseStatus_ = null; 8496 onChanged(); 8497 } else { 8498 responseStatus_ = null; 8499 responseStatusBuilder_ = null; 8500 } 8501 8502 return this; 8503 } 8504 /** 8505 * <pre> 8506 * Whether server should return a given status 8507 * </pre> 8508 * 8509 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8510 */ 8511 public io.grpc.testing.integration.Messages.EchoStatus.Builder getResponseStatusBuilder() { 8512 8513 onChanged(); 8514 return getResponseStatusFieldBuilder().getBuilder(); 8515 } 8516 /** 8517 * <pre> 8518 * Whether server should return a given status 8519 * </pre> 8520 * 8521 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8522 */ 8523 public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { 8524 if (responseStatusBuilder_ != null) { 8525 return responseStatusBuilder_.getMessageOrBuilder(); 8526 } else { 8527 return responseStatus_ == null ? 8528 io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; 8529 } 8530 } 8531 /** 8532 * <pre> 8533 * Whether server should return a given status 8534 * </pre> 8535 * 8536 * <code>.grpc.testing.EchoStatus response_status = 7;</code> 8537 */ 8538 private com.google.protobuf.SingleFieldBuilderV3< 8539 io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> 8540 getResponseStatusFieldBuilder() { 8541 if (responseStatusBuilder_ == null) { 8542 responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 8543 io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder>( 8544 getResponseStatus(), 8545 getParentForChildren(), 8546 isClean()); 8547 responseStatus_ = null; 8548 } 8549 return responseStatusBuilder_; 8550 } 8551 public final Builder setUnknownFields( 8552 final com.google.protobuf.UnknownFieldSet unknownFields) { 8553 return super.setUnknownFieldsProto3(unknownFields); 8554 } 8555 8556 public final Builder mergeUnknownFields( 8557 final com.google.protobuf.UnknownFieldSet unknownFields) { 8558 return super.mergeUnknownFields(unknownFields); 8559 } 8560 8561 8562 // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingOutputCallRequest) 8563 } 8564 8565 // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallRequest) 8566 private static final io.grpc.testing.integration.Messages.StreamingOutputCallRequest DEFAULT_INSTANCE; 8567 static { 8568 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.StreamingOutputCallRequest(); 8569 } 8570 8571 public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest getDefaultInstance() { 8572 return DEFAULT_INSTANCE; 8573 } 8574 8575 private static final com.google.protobuf.Parser<StreamingOutputCallRequest> 8576 PARSER = new com.google.protobuf.AbstractParser<StreamingOutputCallRequest>() { 8577 public StreamingOutputCallRequest parsePartialFrom( 8578 com.google.protobuf.CodedInputStream input, 8579 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8580 throws com.google.protobuf.InvalidProtocolBufferException { 8581 return new StreamingOutputCallRequest(input, extensionRegistry); 8582 } 8583 }; 8584 8585 public static com.google.protobuf.Parser<StreamingOutputCallRequest> parser() { 8586 return PARSER; 8587 } 8588 8589 @java.lang.Override 8590 public com.google.protobuf.Parser<StreamingOutputCallRequest> getParserForType() { 8591 return PARSER; 8592 } 8593 8594 public io.grpc.testing.integration.Messages.StreamingOutputCallRequest getDefaultInstanceForType() { 8595 return DEFAULT_INSTANCE; 8596 } 8597 8598 } 8599 8600 public interface StreamingOutputCallResponseOrBuilder extends 8601 // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingOutputCallResponse) 8602 com.google.protobuf.MessageOrBuilder { 8603 8604 /** 8605 * <pre> 8606 * Payload to increase response size. 8607 * </pre> 8608 * 8609 * <code>.grpc.testing.Payload payload = 1;</code> 8610 */ 8611 boolean hasPayload(); 8612 /** 8613 * <pre> 8614 * Payload to increase response size. 8615 * </pre> 8616 * 8617 * <code>.grpc.testing.Payload payload = 1;</code> 8618 */ 8619 io.grpc.testing.integration.Messages.Payload getPayload(); 8620 /** 8621 * <pre> 8622 * Payload to increase response size. 8623 * </pre> 8624 * 8625 * <code>.grpc.testing.Payload payload = 1;</code> 8626 */ 8627 io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); 8628 } 8629 /** 8630 * <pre> 8631 * Server-streaming response, as configured by the request and parameters. 8632 * </pre> 8633 * 8634 * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} 8635 */ 8636 public static final class StreamingOutputCallResponse extends 8637 com.google.protobuf.GeneratedMessageV3 implements 8638 // @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallResponse) 8639 StreamingOutputCallResponseOrBuilder { 8640 private static final long serialVersionUID = 0L; 8641 // Use StreamingOutputCallResponse.newBuilder() to construct. 8642 private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 8643 super(builder); 8644 } 8645 private StreamingOutputCallResponse() { 8646 } 8647 8648 @java.lang.Override 8649 public final com.google.protobuf.UnknownFieldSet 8650 getUnknownFields() { 8651 return this.unknownFields; 8652 } 8653 private StreamingOutputCallResponse( 8654 com.google.protobuf.CodedInputStream input, 8655 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8656 throws com.google.protobuf.InvalidProtocolBufferException { 8657 this(); 8658 if (extensionRegistry == null) { 8659 throw new java.lang.NullPointerException(); 8660 } 8661 int mutable_bitField0_ = 0; 8662 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 8663 com.google.protobuf.UnknownFieldSet.newBuilder(); 8664 try { 8665 boolean done = false; 8666 while (!done) { 8667 int tag = input.readTag(); 8668 switch (tag) { 8669 case 0: 8670 done = true; 8671 break; 8672 default: { 8673 if (!parseUnknownFieldProto3( 8674 input, unknownFields, extensionRegistry, tag)) { 8675 done = true; 8676 } 8677 break; 8678 } 8679 case 10: { 8680 io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; 8681 if (payload_ != null) { 8682 subBuilder = payload_.toBuilder(); 8683 } 8684 payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.parser(), extensionRegistry); 8685 if (subBuilder != null) { 8686 subBuilder.mergeFrom(payload_); 8687 payload_ = subBuilder.buildPartial(); 8688 } 8689 8690 break; 8691 } 8692 } 8693 } 8694 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8695 throw e.setUnfinishedMessage(this); 8696 } catch (java.io.IOException e) { 8697 throw new com.google.protobuf.InvalidProtocolBufferException( 8698 e).setUnfinishedMessage(this); 8699 } finally { 8700 this.unknownFields = unknownFields.build(); 8701 makeExtensionsImmutable(); 8702 } 8703 } 8704 public static final com.google.protobuf.Descriptors.Descriptor 8705 getDescriptor() { 8706 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; 8707 } 8708 8709 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 8710 internalGetFieldAccessorTable() { 8711 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable 8712 .ensureFieldAccessorsInitialized( 8713 io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class, io.grpc.testing.integration.Messages.StreamingOutputCallResponse.Builder.class); 8714 } 8715 8716 public static final int PAYLOAD_FIELD_NUMBER = 1; 8717 private io.grpc.testing.integration.Messages.Payload payload_; 8718 /** 8719 * <pre> 8720 * Payload to increase response size. 8721 * </pre> 8722 * 8723 * <code>.grpc.testing.Payload payload = 1;</code> 8724 */ 8725 public boolean hasPayload() { 8726 return payload_ != null; 8727 } 8728 /** 8729 * <pre> 8730 * Payload to increase response size. 8731 * </pre> 8732 * 8733 * <code>.grpc.testing.Payload payload = 1;</code> 8734 */ 8735 public io.grpc.testing.integration.Messages.Payload getPayload() { 8736 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 8737 } 8738 /** 8739 * <pre> 8740 * Payload to increase response size. 8741 * </pre> 8742 * 8743 * <code>.grpc.testing.Payload payload = 1;</code> 8744 */ 8745 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 8746 return getPayload(); 8747 } 8748 8749 private byte memoizedIsInitialized = -1; 8750 public final boolean isInitialized() { 8751 byte isInitialized = memoizedIsInitialized; 8752 if (isInitialized == 1) return true; 8753 if (isInitialized == 0) return false; 8754 8755 memoizedIsInitialized = 1; 8756 return true; 8757 } 8758 8759 public void writeTo(com.google.protobuf.CodedOutputStream output) 8760 throws java.io.IOException { 8761 if (payload_ != null) { 8762 output.writeMessage(1, getPayload()); 8763 } 8764 unknownFields.writeTo(output); 8765 } 8766 8767 public int getSerializedSize() { 8768 int size = memoizedSize; 8769 if (size != -1) return size; 8770 8771 size = 0; 8772 if (payload_ != null) { 8773 size += com.google.protobuf.CodedOutputStream 8774 .computeMessageSize(1, getPayload()); 8775 } 8776 size += unknownFields.getSerializedSize(); 8777 memoizedSize = size; 8778 return size; 8779 } 8780 8781 @java.lang.Override 8782 public boolean equals(final java.lang.Object obj) { 8783 if (obj == this) { 8784 return true; 8785 } 8786 if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingOutputCallResponse)) { 8787 return super.equals(obj); 8788 } 8789 io.grpc.testing.integration.Messages.StreamingOutputCallResponse other = (io.grpc.testing.integration.Messages.StreamingOutputCallResponse) obj; 8790 8791 boolean result = true; 8792 result = result && (hasPayload() == other.hasPayload()); 8793 if (hasPayload()) { 8794 result = result && getPayload() 8795 .equals(other.getPayload()); 8796 } 8797 result = result && unknownFields.equals(other.unknownFields); 8798 return result; 8799 } 8800 8801 @java.lang.Override 8802 public int hashCode() { 8803 if (memoizedHashCode != 0) { 8804 return memoizedHashCode; 8805 } 8806 int hash = 41; 8807 hash = (19 * hash) + getDescriptor().hashCode(); 8808 if (hasPayload()) { 8809 hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; 8810 hash = (53 * hash) + getPayload().hashCode(); 8811 } 8812 hash = (29 * hash) + unknownFields.hashCode(); 8813 memoizedHashCode = hash; 8814 return hash; 8815 } 8816 8817 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8818 java.nio.ByteBuffer data) 8819 throws com.google.protobuf.InvalidProtocolBufferException { 8820 return PARSER.parseFrom(data); 8821 } 8822 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8823 java.nio.ByteBuffer data, 8824 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8825 throws com.google.protobuf.InvalidProtocolBufferException { 8826 return PARSER.parseFrom(data, extensionRegistry); 8827 } 8828 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8829 com.google.protobuf.ByteString data) 8830 throws com.google.protobuf.InvalidProtocolBufferException { 8831 return PARSER.parseFrom(data); 8832 } 8833 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8834 com.google.protobuf.ByteString data, 8835 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8836 throws com.google.protobuf.InvalidProtocolBufferException { 8837 return PARSER.parseFrom(data, extensionRegistry); 8838 } 8839 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(byte[] data) 8840 throws com.google.protobuf.InvalidProtocolBufferException { 8841 return PARSER.parseFrom(data); 8842 } 8843 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8844 byte[] data, 8845 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8846 throws com.google.protobuf.InvalidProtocolBufferException { 8847 return PARSER.parseFrom(data, extensionRegistry); 8848 } 8849 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input) 8850 throws java.io.IOException { 8851 return com.google.protobuf.GeneratedMessageV3 8852 .parseWithIOException(PARSER, input); 8853 } 8854 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8855 java.io.InputStream input, 8856 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8857 throws java.io.IOException { 8858 return com.google.protobuf.GeneratedMessageV3 8859 .parseWithIOException(PARSER, input, extensionRegistry); 8860 } 8861 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input) 8862 throws java.io.IOException { 8863 return com.google.protobuf.GeneratedMessageV3 8864 .parseDelimitedWithIOException(PARSER, input); 8865 } 8866 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseDelimitedFrom( 8867 java.io.InputStream input, 8868 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8869 throws java.io.IOException { 8870 return com.google.protobuf.GeneratedMessageV3 8871 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 8872 } 8873 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8874 com.google.protobuf.CodedInputStream input) 8875 throws java.io.IOException { 8876 return com.google.protobuf.GeneratedMessageV3 8877 .parseWithIOException(PARSER, input); 8878 } 8879 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( 8880 com.google.protobuf.CodedInputStream input, 8881 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8882 throws java.io.IOException { 8883 return com.google.protobuf.GeneratedMessageV3 8884 .parseWithIOException(PARSER, input, extensionRegistry); 8885 } 8886 8887 public Builder newBuilderForType() { return newBuilder(); } 8888 public static Builder newBuilder() { 8889 return DEFAULT_INSTANCE.toBuilder(); 8890 } 8891 public static Builder newBuilder(io.grpc.testing.integration.Messages.StreamingOutputCallResponse prototype) { 8892 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 8893 } 8894 public Builder toBuilder() { 8895 return this == DEFAULT_INSTANCE 8896 ? new Builder() : new Builder().mergeFrom(this); 8897 } 8898 8899 @java.lang.Override 8900 protected Builder newBuilderForType( 8901 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 8902 Builder builder = new Builder(parent); 8903 return builder; 8904 } 8905 /** 8906 * <pre> 8907 * Server-streaming response, as configured by the request and parameters. 8908 * </pre> 8909 * 8910 * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} 8911 */ 8912 public static final class Builder extends 8913 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 8914 // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallResponse) 8915 io.grpc.testing.integration.Messages.StreamingOutputCallResponseOrBuilder { 8916 public static final com.google.protobuf.Descriptors.Descriptor 8917 getDescriptor() { 8918 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; 8919 } 8920 8921 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 8922 internalGetFieldAccessorTable() { 8923 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable 8924 .ensureFieldAccessorsInitialized( 8925 io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class, io.grpc.testing.integration.Messages.StreamingOutputCallResponse.Builder.class); 8926 } 8927 8928 // Construct using io.grpc.testing.integration.Messages.StreamingOutputCallResponse.newBuilder() 8929 private Builder() { 8930 maybeForceBuilderInitialization(); 8931 } 8932 8933 private Builder( 8934 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 8935 super(parent); 8936 maybeForceBuilderInitialization(); 8937 } 8938 private void maybeForceBuilderInitialization() { 8939 if (com.google.protobuf.GeneratedMessageV3 8940 .alwaysUseFieldBuilders) { 8941 } 8942 } 8943 public Builder clear() { 8944 super.clear(); 8945 if (payloadBuilder_ == null) { 8946 payload_ = null; 8947 } else { 8948 payload_ = null; 8949 payloadBuilder_ = null; 8950 } 8951 return this; 8952 } 8953 8954 public com.google.protobuf.Descriptors.Descriptor 8955 getDescriptorForType() { 8956 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; 8957 } 8958 8959 public io.grpc.testing.integration.Messages.StreamingOutputCallResponse getDefaultInstanceForType() { 8960 return io.grpc.testing.integration.Messages.StreamingOutputCallResponse.getDefaultInstance(); 8961 } 8962 8963 public io.grpc.testing.integration.Messages.StreamingOutputCallResponse build() { 8964 io.grpc.testing.integration.Messages.StreamingOutputCallResponse result = buildPartial(); 8965 if (!result.isInitialized()) { 8966 throw newUninitializedMessageException(result); 8967 } 8968 return result; 8969 } 8970 8971 public io.grpc.testing.integration.Messages.StreamingOutputCallResponse buildPartial() { 8972 io.grpc.testing.integration.Messages.StreamingOutputCallResponse result = new io.grpc.testing.integration.Messages.StreamingOutputCallResponse(this); 8973 if (payloadBuilder_ == null) { 8974 result.payload_ = payload_; 8975 } else { 8976 result.payload_ = payloadBuilder_.build(); 8977 } 8978 onBuilt(); 8979 return result; 8980 } 8981 8982 public Builder clone() { 8983 return (Builder) super.clone(); 8984 } 8985 public Builder setField( 8986 com.google.protobuf.Descriptors.FieldDescriptor field, 8987 java.lang.Object value) { 8988 return (Builder) super.setField(field, value); 8989 } 8990 public Builder clearField( 8991 com.google.protobuf.Descriptors.FieldDescriptor field) { 8992 return (Builder) super.clearField(field); 8993 } 8994 public Builder clearOneof( 8995 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 8996 return (Builder) super.clearOneof(oneof); 8997 } 8998 public Builder setRepeatedField( 8999 com.google.protobuf.Descriptors.FieldDescriptor field, 9000 int index, java.lang.Object value) { 9001 return (Builder) super.setRepeatedField(field, index, value); 9002 } 9003 public Builder addRepeatedField( 9004 com.google.protobuf.Descriptors.FieldDescriptor field, 9005 java.lang.Object value) { 9006 return (Builder) super.addRepeatedField(field, value); 9007 } 9008 public Builder mergeFrom(com.google.protobuf.Message other) { 9009 if (other instanceof io.grpc.testing.integration.Messages.StreamingOutputCallResponse) { 9010 return mergeFrom((io.grpc.testing.integration.Messages.StreamingOutputCallResponse)other); 9011 } else { 9012 super.mergeFrom(other); 9013 return this; 9014 } 9015 } 9016 9017 public Builder mergeFrom(io.grpc.testing.integration.Messages.StreamingOutputCallResponse other) { 9018 if (other == io.grpc.testing.integration.Messages.StreamingOutputCallResponse.getDefaultInstance()) return this; 9019 if (other.hasPayload()) { 9020 mergePayload(other.getPayload()); 9021 } 9022 this.mergeUnknownFields(other.unknownFields); 9023 onChanged(); 9024 return this; 9025 } 9026 9027 public final boolean isInitialized() { 9028 return true; 9029 } 9030 9031 public Builder mergeFrom( 9032 com.google.protobuf.CodedInputStream input, 9033 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9034 throws java.io.IOException { 9035 io.grpc.testing.integration.Messages.StreamingOutputCallResponse parsedMessage = null; 9036 try { 9037 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 9038 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9039 parsedMessage = (io.grpc.testing.integration.Messages.StreamingOutputCallResponse) e.getUnfinishedMessage(); 9040 throw e.unwrapIOException(); 9041 } finally { 9042 if (parsedMessage != null) { 9043 mergeFrom(parsedMessage); 9044 } 9045 } 9046 return this; 9047 } 9048 9049 private io.grpc.testing.integration.Messages.Payload payload_ = null; 9050 private com.google.protobuf.SingleFieldBuilderV3< 9051 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; 9052 /** 9053 * <pre> 9054 * Payload to increase response size. 9055 * </pre> 9056 * 9057 * <code>.grpc.testing.Payload payload = 1;</code> 9058 */ 9059 public boolean hasPayload() { 9060 return payloadBuilder_ != null || payload_ != null; 9061 } 9062 /** 9063 * <pre> 9064 * Payload to increase response size. 9065 * </pre> 9066 * 9067 * <code>.grpc.testing.Payload payload = 1;</code> 9068 */ 9069 public io.grpc.testing.integration.Messages.Payload getPayload() { 9070 if (payloadBuilder_ == null) { 9071 return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 9072 } else { 9073 return payloadBuilder_.getMessage(); 9074 } 9075 } 9076 /** 9077 * <pre> 9078 * Payload to increase response size. 9079 * </pre> 9080 * 9081 * <code>.grpc.testing.Payload payload = 1;</code> 9082 */ 9083 public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { 9084 if (payloadBuilder_ == null) { 9085 if (value == null) { 9086 throw new NullPointerException(); 9087 } 9088 payload_ = value; 9089 onChanged(); 9090 } else { 9091 payloadBuilder_.setMessage(value); 9092 } 9093 9094 return this; 9095 } 9096 /** 9097 * <pre> 9098 * Payload to increase response size. 9099 * </pre> 9100 * 9101 * <code>.grpc.testing.Payload payload = 1;</code> 9102 */ 9103 public Builder setPayload( 9104 io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { 9105 if (payloadBuilder_ == null) { 9106 payload_ = builderForValue.build(); 9107 onChanged(); 9108 } else { 9109 payloadBuilder_.setMessage(builderForValue.build()); 9110 } 9111 9112 return this; 9113 } 9114 /** 9115 * <pre> 9116 * Payload to increase response size. 9117 * </pre> 9118 * 9119 * <code>.grpc.testing.Payload payload = 1;</code> 9120 */ 9121 public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { 9122 if (payloadBuilder_ == null) { 9123 if (payload_ != null) { 9124 payload_ = 9125 io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); 9126 } else { 9127 payload_ = value; 9128 } 9129 onChanged(); 9130 } else { 9131 payloadBuilder_.mergeFrom(value); 9132 } 9133 9134 return this; 9135 } 9136 /** 9137 * <pre> 9138 * Payload to increase response size. 9139 * </pre> 9140 * 9141 * <code>.grpc.testing.Payload payload = 1;</code> 9142 */ 9143 public Builder clearPayload() { 9144 if (payloadBuilder_ == null) { 9145 payload_ = null; 9146 onChanged(); 9147 } else { 9148 payload_ = null; 9149 payloadBuilder_ = null; 9150 } 9151 9152 return this; 9153 } 9154 /** 9155 * <pre> 9156 * Payload to increase response size. 9157 * </pre> 9158 * 9159 * <code>.grpc.testing.Payload payload = 1;</code> 9160 */ 9161 public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { 9162 9163 onChanged(); 9164 return getPayloadFieldBuilder().getBuilder(); 9165 } 9166 /** 9167 * <pre> 9168 * Payload to increase response size. 9169 * </pre> 9170 * 9171 * <code>.grpc.testing.Payload payload = 1;</code> 9172 */ 9173 public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { 9174 if (payloadBuilder_ != null) { 9175 return payloadBuilder_.getMessageOrBuilder(); 9176 } else { 9177 return payload_ == null ? 9178 io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; 9179 } 9180 } 9181 /** 9182 * <pre> 9183 * Payload to increase response size. 9184 * </pre> 9185 * 9186 * <code>.grpc.testing.Payload payload = 1;</code> 9187 */ 9188 private com.google.protobuf.SingleFieldBuilderV3< 9189 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> 9190 getPayloadFieldBuilder() { 9191 if (payloadBuilder_ == null) { 9192 payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 9193 io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( 9194 getPayload(), 9195 getParentForChildren(), 9196 isClean()); 9197 payload_ = null; 9198 } 9199 return payloadBuilder_; 9200 } 9201 public final Builder setUnknownFields( 9202 final com.google.protobuf.UnknownFieldSet unknownFields) { 9203 return super.setUnknownFieldsProto3(unknownFields); 9204 } 9205 9206 public final Builder mergeUnknownFields( 9207 final com.google.protobuf.UnknownFieldSet unknownFields) { 9208 return super.mergeUnknownFields(unknownFields); 9209 } 9210 9211 9212 // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingOutputCallResponse) 9213 } 9214 9215 // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallResponse) 9216 private static final io.grpc.testing.integration.Messages.StreamingOutputCallResponse DEFAULT_INSTANCE; 9217 static { 9218 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.StreamingOutputCallResponse(); 9219 } 9220 9221 public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse getDefaultInstance() { 9222 return DEFAULT_INSTANCE; 9223 } 9224 9225 private static final com.google.protobuf.Parser<StreamingOutputCallResponse> 9226 PARSER = new com.google.protobuf.AbstractParser<StreamingOutputCallResponse>() { 9227 public StreamingOutputCallResponse parsePartialFrom( 9228 com.google.protobuf.CodedInputStream input, 9229 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9230 throws com.google.protobuf.InvalidProtocolBufferException { 9231 return new StreamingOutputCallResponse(input, extensionRegistry); 9232 } 9233 }; 9234 9235 public static com.google.protobuf.Parser<StreamingOutputCallResponse> parser() { 9236 return PARSER; 9237 } 9238 9239 @java.lang.Override 9240 public com.google.protobuf.Parser<StreamingOutputCallResponse> getParserForType() { 9241 return PARSER; 9242 } 9243 9244 public io.grpc.testing.integration.Messages.StreamingOutputCallResponse getDefaultInstanceForType() { 9245 return DEFAULT_INSTANCE; 9246 } 9247 9248 } 9249 9250 public interface ReconnectParamsOrBuilder extends 9251 // @@protoc_insertion_point(interface_extends:grpc.testing.ReconnectParams) 9252 com.google.protobuf.MessageOrBuilder { 9253 9254 /** 9255 * <code>int32 max_reconnect_backoff_ms = 1;</code> 9256 */ 9257 int getMaxReconnectBackoffMs(); 9258 } 9259 /** 9260 * <pre> 9261 * For reconnect interop test only. 9262 * Client tells server what reconnection parameters it used. 9263 * </pre> 9264 * 9265 * Protobuf type {@code grpc.testing.ReconnectParams} 9266 */ 9267 public static final class ReconnectParams extends 9268 com.google.protobuf.GeneratedMessageV3 implements 9269 // @@protoc_insertion_point(message_implements:grpc.testing.ReconnectParams) 9270 ReconnectParamsOrBuilder { 9271 private static final long serialVersionUID = 0L; 9272 // Use ReconnectParams.newBuilder() to construct. 9273 private ReconnectParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 9274 super(builder); 9275 } 9276 private ReconnectParams() { 9277 maxReconnectBackoffMs_ = 0; 9278 } 9279 9280 @java.lang.Override 9281 public final com.google.protobuf.UnknownFieldSet 9282 getUnknownFields() { 9283 return this.unknownFields; 9284 } 9285 private ReconnectParams( 9286 com.google.protobuf.CodedInputStream input, 9287 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9288 throws com.google.protobuf.InvalidProtocolBufferException { 9289 this(); 9290 if (extensionRegistry == null) { 9291 throw new java.lang.NullPointerException(); 9292 } 9293 int mutable_bitField0_ = 0; 9294 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 9295 com.google.protobuf.UnknownFieldSet.newBuilder(); 9296 try { 9297 boolean done = false; 9298 while (!done) { 9299 int tag = input.readTag(); 9300 switch (tag) { 9301 case 0: 9302 done = true; 9303 break; 9304 default: { 9305 if (!parseUnknownFieldProto3( 9306 input, unknownFields, extensionRegistry, tag)) { 9307 done = true; 9308 } 9309 break; 9310 } 9311 case 8: { 9312 9313 maxReconnectBackoffMs_ = input.readInt32(); 9314 break; 9315 } 9316 } 9317 } 9318 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9319 throw e.setUnfinishedMessage(this); 9320 } catch (java.io.IOException e) { 9321 throw new com.google.protobuf.InvalidProtocolBufferException( 9322 e).setUnfinishedMessage(this); 9323 } finally { 9324 this.unknownFields = unknownFields.build(); 9325 makeExtensionsImmutable(); 9326 } 9327 } 9328 public static final com.google.protobuf.Descriptors.Descriptor 9329 getDescriptor() { 9330 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_descriptor; 9331 } 9332 9333 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 9334 internalGetFieldAccessorTable() { 9335 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_fieldAccessorTable 9336 .ensureFieldAccessorsInitialized( 9337 io.grpc.testing.integration.Messages.ReconnectParams.class, io.grpc.testing.integration.Messages.ReconnectParams.Builder.class); 9338 } 9339 9340 public static final int MAX_RECONNECT_BACKOFF_MS_FIELD_NUMBER = 1; 9341 private int maxReconnectBackoffMs_; 9342 /** 9343 * <code>int32 max_reconnect_backoff_ms = 1;</code> 9344 */ 9345 public int getMaxReconnectBackoffMs() { 9346 return maxReconnectBackoffMs_; 9347 } 9348 9349 private byte memoizedIsInitialized = -1; 9350 public final boolean isInitialized() { 9351 byte isInitialized = memoizedIsInitialized; 9352 if (isInitialized == 1) return true; 9353 if (isInitialized == 0) return false; 9354 9355 memoizedIsInitialized = 1; 9356 return true; 9357 } 9358 9359 public void writeTo(com.google.protobuf.CodedOutputStream output) 9360 throws java.io.IOException { 9361 if (maxReconnectBackoffMs_ != 0) { 9362 output.writeInt32(1, maxReconnectBackoffMs_); 9363 } 9364 unknownFields.writeTo(output); 9365 } 9366 9367 public int getSerializedSize() { 9368 int size = memoizedSize; 9369 if (size != -1) return size; 9370 9371 size = 0; 9372 if (maxReconnectBackoffMs_ != 0) { 9373 size += com.google.protobuf.CodedOutputStream 9374 .computeInt32Size(1, maxReconnectBackoffMs_); 9375 } 9376 size += unknownFields.getSerializedSize(); 9377 memoizedSize = size; 9378 return size; 9379 } 9380 9381 @java.lang.Override 9382 public boolean equals(final java.lang.Object obj) { 9383 if (obj == this) { 9384 return true; 9385 } 9386 if (!(obj instanceof io.grpc.testing.integration.Messages.ReconnectParams)) { 9387 return super.equals(obj); 9388 } 9389 io.grpc.testing.integration.Messages.ReconnectParams other = (io.grpc.testing.integration.Messages.ReconnectParams) obj; 9390 9391 boolean result = true; 9392 result = result && (getMaxReconnectBackoffMs() 9393 == other.getMaxReconnectBackoffMs()); 9394 result = result && unknownFields.equals(other.unknownFields); 9395 return result; 9396 } 9397 9398 @java.lang.Override 9399 public int hashCode() { 9400 if (memoizedHashCode != 0) { 9401 return memoizedHashCode; 9402 } 9403 int hash = 41; 9404 hash = (19 * hash) + getDescriptor().hashCode(); 9405 hash = (37 * hash) + MAX_RECONNECT_BACKOFF_MS_FIELD_NUMBER; 9406 hash = (53 * hash) + getMaxReconnectBackoffMs(); 9407 hash = (29 * hash) + unknownFields.hashCode(); 9408 memoizedHashCode = hash; 9409 return hash; 9410 } 9411 9412 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9413 java.nio.ByteBuffer data) 9414 throws com.google.protobuf.InvalidProtocolBufferException { 9415 return PARSER.parseFrom(data); 9416 } 9417 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9418 java.nio.ByteBuffer data, 9419 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9420 throws com.google.protobuf.InvalidProtocolBufferException { 9421 return PARSER.parseFrom(data, extensionRegistry); 9422 } 9423 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9424 com.google.protobuf.ByteString data) 9425 throws com.google.protobuf.InvalidProtocolBufferException { 9426 return PARSER.parseFrom(data); 9427 } 9428 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9429 com.google.protobuf.ByteString data, 9430 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9431 throws com.google.protobuf.InvalidProtocolBufferException { 9432 return PARSER.parseFrom(data, extensionRegistry); 9433 } 9434 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(byte[] data) 9435 throws com.google.protobuf.InvalidProtocolBufferException { 9436 return PARSER.parseFrom(data); 9437 } 9438 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9439 byte[] data, 9440 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9441 throws com.google.protobuf.InvalidProtocolBufferException { 9442 return PARSER.parseFrom(data, extensionRegistry); 9443 } 9444 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(java.io.InputStream input) 9445 throws java.io.IOException { 9446 return com.google.protobuf.GeneratedMessageV3 9447 .parseWithIOException(PARSER, input); 9448 } 9449 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9450 java.io.InputStream input, 9451 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9452 throws java.io.IOException { 9453 return com.google.protobuf.GeneratedMessageV3 9454 .parseWithIOException(PARSER, input, extensionRegistry); 9455 } 9456 public static io.grpc.testing.integration.Messages.ReconnectParams parseDelimitedFrom(java.io.InputStream input) 9457 throws java.io.IOException { 9458 return com.google.protobuf.GeneratedMessageV3 9459 .parseDelimitedWithIOException(PARSER, input); 9460 } 9461 public static io.grpc.testing.integration.Messages.ReconnectParams parseDelimitedFrom( 9462 java.io.InputStream input, 9463 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9464 throws java.io.IOException { 9465 return com.google.protobuf.GeneratedMessageV3 9466 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 9467 } 9468 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9469 com.google.protobuf.CodedInputStream input) 9470 throws java.io.IOException { 9471 return com.google.protobuf.GeneratedMessageV3 9472 .parseWithIOException(PARSER, input); 9473 } 9474 public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( 9475 com.google.protobuf.CodedInputStream input, 9476 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9477 throws java.io.IOException { 9478 return com.google.protobuf.GeneratedMessageV3 9479 .parseWithIOException(PARSER, input, extensionRegistry); 9480 } 9481 9482 public Builder newBuilderForType() { return newBuilder(); } 9483 public static Builder newBuilder() { 9484 return DEFAULT_INSTANCE.toBuilder(); 9485 } 9486 public static Builder newBuilder(io.grpc.testing.integration.Messages.ReconnectParams prototype) { 9487 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 9488 } 9489 public Builder toBuilder() { 9490 return this == DEFAULT_INSTANCE 9491 ? new Builder() : new Builder().mergeFrom(this); 9492 } 9493 9494 @java.lang.Override 9495 protected Builder newBuilderForType( 9496 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 9497 Builder builder = new Builder(parent); 9498 return builder; 9499 } 9500 /** 9501 * <pre> 9502 * For reconnect interop test only. 9503 * Client tells server what reconnection parameters it used. 9504 * </pre> 9505 * 9506 * Protobuf type {@code grpc.testing.ReconnectParams} 9507 */ 9508 public static final class Builder extends 9509 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 9510 // @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectParams) 9511 io.grpc.testing.integration.Messages.ReconnectParamsOrBuilder { 9512 public static final com.google.protobuf.Descriptors.Descriptor 9513 getDescriptor() { 9514 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_descriptor; 9515 } 9516 9517 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 9518 internalGetFieldAccessorTable() { 9519 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_fieldAccessorTable 9520 .ensureFieldAccessorsInitialized( 9521 io.grpc.testing.integration.Messages.ReconnectParams.class, io.grpc.testing.integration.Messages.ReconnectParams.Builder.class); 9522 } 9523 9524 // Construct using io.grpc.testing.integration.Messages.ReconnectParams.newBuilder() 9525 private Builder() { 9526 maybeForceBuilderInitialization(); 9527 } 9528 9529 private Builder( 9530 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 9531 super(parent); 9532 maybeForceBuilderInitialization(); 9533 } 9534 private void maybeForceBuilderInitialization() { 9535 if (com.google.protobuf.GeneratedMessageV3 9536 .alwaysUseFieldBuilders) { 9537 } 9538 } 9539 public Builder clear() { 9540 super.clear(); 9541 maxReconnectBackoffMs_ = 0; 9542 9543 return this; 9544 } 9545 9546 public com.google.protobuf.Descriptors.Descriptor 9547 getDescriptorForType() { 9548 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_descriptor; 9549 } 9550 9551 public io.grpc.testing.integration.Messages.ReconnectParams getDefaultInstanceForType() { 9552 return io.grpc.testing.integration.Messages.ReconnectParams.getDefaultInstance(); 9553 } 9554 9555 public io.grpc.testing.integration.Messages.ReconnectParams build() { 9556 io.grpc.testing.integration.Messages.ReconnectParams result = buildPartial(); 9557 if (!result.isInitialized()) { 9558 throw newUninitializedMessageException(result); 9559 } 9560 return result; 9561 } 9562 9563 public io.grpc.testing.integration.Messages.ReconnectParams buildPartial() { 9564 io.grpc.testing.integration.Messages.ReconnectParams result = new io.grpc.testing.integration.Messages.ReconnectParams(this); 9565 result.maxReconnectBackoffMs_ = maxReconnectBackoffMs_; 9566 onBuilt(); 9567 return result; 9568 } 9569 9570 public Builder clone() { 9571 return (Builder) super.clone(); 9572 } 9573 public Builder setField( 9574 com.google.protobuf.Descriptors.FieldDescriptor field, 9575 java.lang.Object value) { 9576 return (Builder) super.setField(field, value); 9577 } 9578 public Builder clearField( 9579 com.google.protobuf.Descriptors.FieldDescriptor field) { 9580 return (Builder) super.clearField(field); 9581 } 9582 public Builder clearOneof( 9583 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 9584 return (Builder) super.clearOneof(oneof); 9585 } 9586 public Builder setRepeatedField( 9587 com.google.protobuf.Descriptors.FieldDescriptor field, 9588 int index, java.lang.Object value) { 9589 return (Builder) super.setRepeatedField(field, index, value); 9590 } 9591 public Builder addRepeatedField( 9592 com.google.protobuf.Descriptors.FieldDescriptor field, 9593 java.lang.Object value) { 9594 return (Builder) super.addRepeatedField(field, value); 9595 } 9596 public Builder mergeFrom(com.google.protobuf.Message other) { 9597 if (other instanceof io.grpc.testing.integration.Messages.ReconnectParams) { 9598 return mergeFrom((io.grpc.testing.integration.Messages.ReconnectParams)other); 9599 } else { 9600 super.mergeFrom(other); 9601 return this; 9602 } 9603 } 9604 9605 public Builder mergeFrom(io.grpc.testing.integration.Messages.ReconnectParams other) { 9606 if (other == io.grpc.testing.integration.Messages.ReconnectParams.getDefaultInstance()) return this; 9607 if (other.getMaxReconnectBackoffMs() != 0) { 9608 setMaxReconnectBackoffMs(other.getMaxReconnectBackoffMs()); 9609 } 9610 this.mergeUnknownFields(other.unknownFields); 9611 onChanged(); 9612 return this; 9613 } 9614 9615 public final boolean isInitialized() { 9616 return true; 9617 } 9618 9619 public Builder mergeFrom( 9620 com.google.protobuf.CodedInputStream input, 9621 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9622 throws java.io.IOException { 9623 io.grpc.testing.integration.Messages.ReconnectParams parsedMessage = null; 9624 try { 9625 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 9626 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9627 parsedMessage = (io.grpc.testing.integration.Messages.ReconnectParams) e.getUnfinishedMessage(); 9628 throw e.unwrapIOException(); 9629 } finally { 9630 if (parsedMessage != null) { 9631 mergeFrom(parsedMessage); 9632 } 9633 } 9634 return this; 9635 } 9636 9637 private int maxReconnectBackoffMs_ ; 9638 /** 9639 * <code>int32 max_reconnect_backoff_ms = 1;</code> 9640 */ 9641 public int getMaxReconnectBackoffMs() { 9642 return maxReconnectBackoffMs_; 9643 } 9644 /** 9645 * <code>int32 max_reconnect_backoff_ms = 1;</code> 9646 */ 9647 public Builder setMaxReconnectBackoffMs(int value) { 9648 9649 maxReconnectBackoffMs_ = value; 9650 onChanged(); 9651 return this; 9652 } 9653 /** 9654 * <code>int32 max_reconnect_backoff_ms = 1;</code> 9655 */ 9656 public Builder clearMaxReconnectBackoffMs() { 9657 9658 maxReconnectBackoffMs_ = 0; 9659 onChanged(); 9660 return this; 9661 } 9662 public final Builder setUnknownFields( 9663 final com.google.protobuf.UnknownFieldSet unknownFields) { 9664 return super.setUnknownFieldsProto3(unknownFields); 9665 } 9666 9667 public final Builder mergeUnknownFields( 9668 final com.google.protobuf.UnknownFieldSet unknownFields) { 9669 return super.mergeUnknownFields(unknownFields); 9670 } 9671 9672 9673 // @@protoc_insertion_point(builder_scope:grpc.testing.ReconnectParams) 9674 } 9675 9676 // @@protoc_insertion_point(class_scope:grpc.testing.ReconnectParams) 9677 private static final io.grpc.testing.integration.Messages.ReconnectParams DEFAULT_INSTANCE; 9678 static { 9679 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.ReconnectParams(); 9680 } 9681 9682 public static io.grpc.testing.integration.Messages.ReconnectParams getDefaultInstance() { 9683 return DEFAULT_INSTANCE; 9684 } 9685 9686 private static final com.google.protobuf.Parser<ReconnectParams> 9687 PARSER = new com.google.protobuf.AbstractParser<ReconnectParams>() { 9688 public ReconnectParams parsePartialFrom( 9689 com.google.protobuf.CodedInputStream input, 9690 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9691 throws com.google.protobuf.InvalidProtocolBufferException { 9692 return new ReconnectParams(input, extensionRegistry); 9693 } 9694 }; 9695 9696 public static com.google.protobuf.Parser<ReconnectParams> parser() { 9697 return PARSER; 9698 } 9699 9700 @java.lang.Override 9701 public com.google.protobuf.Parser<ReconnectParams> getParserForType() { 9702 return PARSER; 9703 } 9704 9705 public io.grpc.testing.integration.Messages.ReconnectParams getDefaultInstanceForType() { 9706 return DEFAULT_INSTANCE; 9707 } 9708 9709 } 9710 9711 public interface ReconnectInfoOrBuilder extends 9712 // @@protoc_insertion_point(interface_extends:grpc.testing.ReconnectInfo) 9713 com.google.protobuf.MessageOrBuilder { 9714 9715 /** 9716 * <code>bool passed = 1;</code> 9717 */ 9718 boolean getPassed(); 9719 9720 /** 9721 * <code>repeated int32 backoff_ms = 2;</code> 9722 */ 9723 java.util.List<java.lang.Integer> getBackoffMsList(); 9724 /** 9725 * <code>repeated int32 backoff_ms = 2;</code> 9726 */ 9727 int getBackoffMsCount(); 9728 /** 9729 * <code>repeated int32 backoff_ms = 2;</code> 9730 */ 9731 int getBackoffMs(int index); 9732 } 9733 /** 9734 * <pre> 9735 * For reconnect interop test only. 9736 * Server tells client whether its reconnects are following the spec and the 9737 * reconnect backoffs it saw. 9738 * </pre> 9739 * 9740 * Protobuf type {@code grpc.testing.ReconnectInfo} 9741 */ 9742 public static final class ReconnectInfo extends 9743 com.google.protobuf.GeneratedMessageV3 implements 9744 // @@protoc_insertion_point(message_implements:grpc.testing.ReconnectInfo) 9745 ReconnectInfoOrBuilder { 9746 private static final long serialVersionUID = 0L; 9747 // Use ReconnectInfo.newBuilder() to construct. 9748 private ReconnectInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 9749 super(builder); 9750 } 9751 private ReconnectInfo() { 9752 passed_ = false; 9753 backoffMs_ = java.util.Collections.emptyList(); 9754 } 9755 9756 @java.lang.Override 9757 public final com.google.protobuf.UnknownFieldSet 9758 getUnknownFields() { 9759 return this.unknownFields; 9760 } 9761 private ReconnectInfo( 9762 com.google.protobuf.CodedInputStream input, 9763 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9764 throws com.google.protobuf.InvalidProtocolBufferException { 9765 this(); 9766 if (extensionRegistry == null) { 9767 throw new java.lang.NullPointerException(); 9768 } 9769 int mutable_bitField0_ = 0; 9770 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 9771 com.google.protobuf.UnknownFieldSet.newBuilder(); 9772 try { 9773 boolean done = false; 9774 while (!done) { 9775 int tag = input.readTag(); 9776 switch (tag) { 9777 case 0: 9778 done = true; 9779 break; 9780 default: { 9781 if (!parseUnknownFieldProto3( 9782 input, unknownFields, extensionRegistry, tag)) { 9783 done = true; 9784 } 9785 break; 9786 } 9787 case 8: { 9788 9789 passed_ = input.readBool(); 9790 break; 9791 } 9792 case 16: { 9793 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 9794 backoffMs_ = new java.util.ArrayList<java.lang.Integer>(); 9795 mutable_bitField0_ |= 0x00000002; 9796 } 9797 backoffMs_.add(input.readInt32()); 9798 break; 9799 } 9800 case 18: { 9801 int length = input.readRawVarint32(); 9802 int limit = input.pushLimit(length); 9803 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 9804 backoffMs_ = new java.util.ArrayList<java.lang.Integer>(); 9805 mutable_bitField0_ |= 0x00000002; 9806 } 9807 while (input.getBytesUntilLimit() > 0) { 9808 backoffMs_.add(input.readInt32()); 9809 } 9810 input.popLimit(limit); 9811 break; 9812 } 9813 } 9814 } 9815 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9816 throw e.setUnfinishedMessage(this); 9817 } catch (java.io.IOException e) { 9818 throw new com.google.protobuf.InvalidProtocolBufferException( 9819 e).setUnfinishedMessage(this); 9820 } finally { 9821 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 9822 backoffMs_ = java.util.Collections.unmodifiableList(backoffMs_); 9823 } 9824 this.unknownFields = unknownFields.build(); 9825 makeExtensionsImmutable(); 9826 } 9827 } 9828 public static final com.google.protobuf.Descriptors.Descriptor 9829 getDescriptor() { 9830 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; 9831 } 9832 9833 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 9834 internalGetFieldAccessorTable() { 9835 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable 9836 .ensureFieldAccessorsInitialized( 9837 io.grpc.testing.integration.Messages.ReconnectInfo.class, io.grpc.testing.integration.Messages.ReconnectInfo.Builder.class); 9838 } 9839 9840 private int bitField0_; 9841 public static final int PASSED_FIELD_NUMBER = 1; 9842 private boolean passed_; 9843 /** 9844 * <code>bool passed = 1;</code> 9845 */ 9846 public boolean getPassed() { 9847 return passed_; 9848 } 9849 9850 public static final int BACKOFF_MS_FIELD_NUMBER = 2; 9851 private java.util.List<java.lang.Integer> backoffMs_; 9852 /** 9853 * <code>repeated int32 backoff_ms = 2;</code> 9854 */ 9855 public java.util.List<java.lang.Integer> 9856 getBackoffMsList() { 9857 return backoffMs_; 9858 } 9859 /** 9860 * <code>repeated int32 backoff_ms = 2;</code> 9861 */ 9862 public int getBackoffMsCount() { 9863 return backoffMs_.size(); 9864 } 9865 /** 9866 * <code>repeated int32 backoff_ms = 2;</code> 9867 */ 9868 public int getBackoffMs(int index) { 9869 return backoffMs_.get(index); 9870 } 9871 private int backoffMsMemoizedSerializedSize = -1; 9872 9873 private byte memoizedIsInitialized = -1; 9874 public final boolean isInitialized() { 9875 byte isInitialized = memoizedIsInitialized; 9876 if (isInitialized == 1) return true; 9877 if (isInitialized == 0) return false; 9878 9879 memoizedIsInitialized = 1; 9880 return true; 9881 } 9882 9883 public void writeTo(com.google.protobuf.CodedOutputStream output) 9884 throws java.io.IOException { 9885 getSerializedSize(); 9886 if (passed_ != false) { 9887 output.writeBool(1, passed_); 9888 } 9889 if (getBackoffMsList().size() > 0) { 9890 output.writeUInt32NoTag(18); 9891 output.writeUInt32NoTag(backoffMsMemoizedSerializedSize); 9892 } 9893 for (int i = 0; i < backoffMs_.size(); i++) { 9894 output.writeInt32NoTag(backoffMs_.get(i)); 9895 } 9896 unknownFields.writeTo(output); 9897 } 9898 9899 public int getSerializedSize() { 9900 int size = memoizedSize; 9901 if (size != -1) return size; 9902 9903 size = 0; 9904 if (passed_ != false) { 9905 size += com.google.protobuf.CodedOutputStream 9906 .computeBoolSize(1, passed_); 9907 } 9908 { 9909 int dataSize = 0; 9910 for (int i = 0; i < backoffMs_.size(); i++) { 9911 dataSize += com.google.protobuf.CodedOutputStream 9912 .computeInt32SizeNoTag(backoffMs_.get(i)); 9913 } 9914 size += dataSize; 9915 if (!getBackoffMsList().isEmpty()) { 9916 size += 1; 9917 size += com.google.protobuf.CodedOutputStream 9918 .computeInt32SizeNoTag(dataSize); 9919 } 9920 backoffMsMemoizedSerializedSize = dataSize; 9921 } 9922 size += unknownFields.getSerializedSize(); 9923 memoizedSize = size; 9924 return size; 9925 } 9926 9927 @java.lang.Override 9928 public boolean equals(final java.lang.Object obj) { 9929 if (obj == this) { 9930 return true; 9931 } 9932 if (!(obj instanceof io.grpc.testing.integration.Messages.ReconnectInfo)) { 9933 return super.equals(obj); 9934 } 9935 io.grpc.testing.integration.Messages.ReconnectInfo other = (io.grpc.testing.integration.Messages.ReconnectInfo) obj; 9936 9937 boolean result = true; 9938 result = result && (getPassed() 9939 == other.getPassed()); 9940 result = result && getBackoffMsList() 9941 .equals(other.getBackoffMsList()); 9942 result = result && unknownFields.equals(other.unknownFields); 9943 return result; 9944 } 9945 9946 @java.lang.Override 9947 public int hashCode() { 9948 if (memoizedHashCode != 0) { 9949 return memoizedHashCode; 9950 } 9951 int hash = 41; 9952 hash = (19 * hash) + getDescriptor().hashCode(); 9953 hash = (37 * hash) + PASSED_FIELD_NUMBER; 9954 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 9955 getPassed()); 9956 if (getBackoffMsCount() > 0) { 9957 hash = (37 * hash) + BACKOFF_MS_FIELD_NUMBER; 9958 hash = (53 * hash) + getBackoffMsList().hashCode(); 9959 } 9960 hash = (29 * hash) + unknownFields.hashCode(); 9961 memoizedHashCode = hash; 9962 return hash; 9963 } 9964 9965 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 9966 java.nio.ByteBuffer data) 9967 throws com.google.protobuf.InvalidProtocolBufferException { 9968 return PARSER.parseFrom(data); 9969 } 9970 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 9971 java.nio.ByteBuffer data, 9972 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9973 throws com.google.protobuf.InvalidProtocolBufferException { 9974 return PARSER.parseFrom(data, extensionRegistry); 9975 } 9976 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 9977 com.google.protobuf.ByteString data) 9978 throws com.google.protobuf.InvalidProtocolBufferException { 9979 return PARSER.parseFrom(data); 9980 } 9981 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 9982 com.google.protobuf.ByteString data, 9983 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9984 throws com.google.protobuf.InvalidProtocolBufferException { 9985 return PARSER.parseFrom(data, extensionRegistry); 9986 } 9987 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(byte[] data) 9988 throws com.google.protobuf.InvalidProtocolBufferException { 9989 return PARSER.parseFrom(data); 9990 } 9991 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 9992 byte[] data, 9993 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9994 throws com.google.protobuf.InvalidProtocolBufferException { 9995 return PARSER.parseFrom(data, extensionRegistry); 9996 } 9997 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(java.io.InputStream input) 9998 throws java.io.IOException { 9999 return com.google.protobuf.GeneratedMessageV3 10000 .parseWithIOException(PARSER, input); 10001 } 10002 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 10003 java.io.InputStream input, 10004 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10005 throws java.io.IOException { 10006 return com.google.protobuf.GeneratedMessageV3 10007 .parseWithIOException(PARSER, input, extensionRegistry); 10008 } 10009 public static io.grpc.testing.integration.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input) 10010 throws java.io.IOException { 10011 return com.google.protobuf.GeneratedMessageV3 10012 .parseDelimitedWithIOException(PARSER, input); 10013 } 10014 public static io.grpc.testing.integration.Messages.ReconnectInfo parseDelimitedFrom( 10015 java.io.InputStream input, 10016 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10017 throws java.io.IOException { 10018 return com.google.protobuf.GeneratedMessageV3 10019 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 10020 } 10021 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 10022 com.google.protobuf.CodedInputStream input) 10023 throws java.io.IOException { 10024 return com.google.protobuf.GeneratedMessageV3 10025 .parseWithIOException(PARSER, input); 10026 } 10027 public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( 10028 com.google.protobuf.CodedInputStream input, 10029 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10030 throws java.io.IOException { 10031 return com.google.protobuf.GeneratedMessageV3 10032 .parseWithIOException(PARSER, input, extensionRegistry); 10033 } 10034 10035 public Builder newBuilderForType() { return newBuilder(); } 10036 public static Builder newBuilder() { 10037 return DEFAULT_INSTANCE.toBuilder(); 10038 } 10039 public static Builder newBuilder(io.grpc.testing.integration.Messages.ReconnectInfo prototype) { 10040 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 10041 } 10042 public Builder toBuilder() { 10043 return this == DEFAULT_INSTANCE 10044 ? new Builder() : new Builder().mergeFrom(this); 10045 } 10046 10047 @java.lang.Override 10048 protected Builder newBuilderForType( 10049 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 10050 Builder builder = new Builder(parent); 10051 return builder; 10052 } 10053 /** 10054 * <pre> 10055 * For reconnect interop test only. 10056 * Server tells client whether its reconnects are following the spec and the 10057 * reconnect backoffs it saw. 10058 * </pre> 10059 * 10060 * Protobuf type {@code grpc.testing.ReconnectInfo} 10061 */ 10062 public static final class Builder extends 10063 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 10064 // @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectInfo) 10065 io.grpc.testing.integration.Messages.ReconnectInfoOrBuilder { 10066 public static final com.google.protobuf.Descriptors.Descriptor 10067 getDescriptor() { 10068 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; 10069 } 10070 10071 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10072 internalGetFieldAccessorTable() { 10073 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable 10074 .ensureFieldAccessorsInitialized( 10075 io.grpc.testing.integration.Messages.ReconnectInfo.class, io.grpc.testing.integration.Messages.ReconnectInfo.Builder.class); 10076 } 10077 10078 // Construct using io.grpc.testing.integration.Messages.ReconnectInfo.newBuilder() 10079 private Builder() { 10080 maybeForceBuilderInitialization(); 10081 } 10082 10083 private Builder( 10084 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 10085 super(parent); 10086 maybeForceBuilderInitialization(); 10087 } 10088 private void maybeForceBuilderInitialization() { 10089 if (com.google.protobuf.GeneratedMessageV3 10090 .alwaysUseFieldBuilders) { 10091 } 10092 } 10093 public Builder clear() { 10094 super.clear(); 10095 passed_ = false; 10096 10097 backoffMs_ = java.util.Collections.emptyList(); 10098 bitField0_ = (bitField0_ & ~0x00000002); 10099 return this; 10100 } 10101 10102 public com.google.protobuf.Descriptors.Descriptor 10103 getDescriptorForType() { 10104 return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; 10105 } 10106 10107 public io.grpc.testing.integration.Messages.ReconnectInfo getDefaultInstanceForType() { 10108 return io.grpc.testing.integration.Messages.ReconnectInfo.getDefaultInstance(); 10109 } 10110 10111 public io.grpc.testing.integration.Messages.ReconnectInfo build() { 10112 io.grpc.testing.integration.Messages.ReconnectInfo result = buildPartial(); 10113 if (!result.isInitialized()) { 10114 throw newUninitializedMessageException(result); 10115 } 10116 return result; 10117 } 10118 10119 public io.grpc.testing.integration.Messages.ReconnectInfo buildPartial() { 10120 io.grpc.testing.integration.Messages.ReconnectInfo result = new io.grpc.testing.integration.Messages.ReconnectInfo(this); 10121 int from_bitField0_ = bitField0_; 10122 int to_bitField0_ = 0; 10123 result.passed_ = passed_; 10124 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10125 backoffMs_ = java.util.Collections.unmodifiableList(backoffMs_); 10126 bitField0_ = (bitField0_ & ~0x00000002); 10127 } 10128 result.backoffMs_ = backoffMs_; 10129 result.bitField0_ = to_bitField0_; 10130 onBuilt(); 10131 return result; 10132 } 10133 10134 public Builder clone() { 10135 return (Builder) super.clone(); 10136 } 10137 public Builder setField( 10138 com.google.protobuf.Descriptors.FieldDescriptor field, 10139 java.lang.Object value) { 10140 return (Builder) super.setField(field, value); 10141 } 10142 public Builder clearField( 10143 com.google.protobuf.Descriptors.FieldDescriptor field) { 10144 return (Builder) super.clearField(field); 10145 } 10146 public Builder clearOneof( 10147 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 10148 return (Builder) super.clearOneof(oneof); 10149 } 10150 public Builder setRepeatedField( 10151 com.google.protobuf.Descriptors.FieldDescriptor field, 10152 int index, java.lang.Object value) { 10153 return (Builder) super.setRepeatedField(field, index, value); 10154 } 10155 public Builder addRepeatedField( 10156 com.google.protobuf.Descriptors.FieldDescriptor field, 10157 java.lang.Object value) { 10158 return (Builder) super.addRepeatedField(field, value); 10159 } 10160 public Builder mergeFrom(com.google.protobuf.Message other) { 10161 if (other instanceof io.grpc.testing.integration.Messages.ReconnectInfo) { 10162 return mergeFrom((io.grpc.testing.integration.Messages.ReconnectInfo)other); 10163 } else { 10164 super.mergeFrom(other); 10165 return this; 10166 } 10167 } 10168 10169 public Builder mergeFrom(io.grpc.testing.integration.Messages.ReconnectInfo other) { 10170 if (other == io.grpc.testing.integration.Messages.ReconnectInfo.getDefaultInstance()) return this; 10171 if (other.getPassed() != false) { 10172 setPassed(other.getPassed()); 10173 } 10174 if (!other.backoffMs_.isEmpty()) { 10175 if (backoffMs_.isEmpty()) { 10176 backoffMs_ = other.backoffMs_; 10177 bitField0_ = (bitField0_ & ~0x00000002); 10178 } else { 10179 ensureBackoffMsIsMutable(); 10180 backoffMs_.addAll(other.backoffMs_); 10181 } 10182 onChanged(); 10183 } 10184 this.mergeUnknownFields(other.unknownFields); 10185 onChanged(); 10186 return this; 10187 } 10188 10189 public final boolean isInitialized() { 10190 return true; 10191 } 10192 10193 public Builder mergeFrom( 10194 com.google.protobuf.CodedInputStream input, 10195 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10196 throws java.io.IOException { 10197 io.grpc.testing.integration.Messages.ReconnectInfo parsedMessage = null; 10198 try { 10199 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 10200 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10201 parsedMessage = (io.grpc.testing.integration.Messages.ReconnectInfo) e.getUnfinishedMessage(); 10202 throw e.unwrapIOException(); 10203 } finally { 10204 if (parsedMessage != null) { 10205 mergeFrom(parsedMessage); 10206 } 10207 } 10208 return this; 10209 } 10210 private int bitField0_; 10211 10212 private boolean passed_ ; 10213 /** 10214 * <code>bool passed = 1;</code> 10215 */ 10216 public boolean getPassed() { 10217 return passed_; 10218 } 10219 /** 10220 * <code>bool passed = 1;</code> 10221 */ 10222 public Builder setPassed(boolean value) { 10223 10224 passed_ = value; 10225 onChanged(); 10226 return this; 10227 } 10228 /** 10229 * <code>bool passed = 1;</code> 10230 */ 10231 public Builder clearPassed() { 10232 10233 passed_ = false; 10234 onChanged(); 10235 return this; 10236 } 10237 10238 private java.util.List<java.lang.Integer> backoffMs_ = java.util.Collections.emptyList(); 10239 private void ensureBackoffMsIsMutable() { 10240 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 10241 backoffMs_ = new java.util.ArrayList<java.lang.Integer>(backoffMs_); 10242 bitField0_ |= 0x00000002; 10243 } 10244 } 10245 /** 10246 * <code>repeated int32 backoff_ms = 2;</code> 10247 */ 10248 public java.util.List<java.lang.Integer> 10249 getBackoffMsList() { 10250 return java.util.Collections.unmodifiableList(backoffMs_); 10251 } 10252 /** 10253 * <code>repeated int32 backoff_ms = 2;</code> 10254 */ 10255 public int getBackoffMsCount() { 10256 return backoffMs_.size(); 10257 } 10258 /** 10259 * <code>repeated int32 backoff_ms = 2;</code> 10260 */ 10261 public int getBackoffMs(int index) { 10262 return backoffMs_.get(index); 10263 } 10264 /** 10265 * <code>repeated int32 backoff_ms = 2;</code> 10266 */ 10267 public Builder setBackoffMs( 10268 int index, int value) { 10269 ensureBackoffMsIsMutable(); 10270 backoffMs_.set(index, value); 10271 onChanged(); 10272 return this; 10273 } 10274 /** 10275 * <code>repeated int32 backoff_ms = 2;</code> 10276 */ 10277 public Builder addBackoffMs(int value) { 10278 ensureBackoffMsIsMutable(); 10279 backoffMs_.add(value); 10280 onChanged(); 10281 return this; 10282 } 10283 /** 10284 * <code>repeated int32 backoff_ms = 2;</code> 10285 */ 10286 public Builder addAllBackoffMs( 10287 java.lang.Iterable<? extends java.lang.Integer> values) { 10288 ensureBackoffMsIsMutable(); 10289 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10290 values, backoffMs_); 10291 onChanged(); 10292 return this; 10293 } 10294 /** 10295 * <code>repeated int32 backoff_ms = 2;</code> 10296 */ 10297 public Builder clearBackoffMs() { 10298 backoffMs_ = java.util.Collections.emptyList(); 10299 bitField0_ = (bitField0_ & ~0x00000002); 10300 onChanged(); 10301 return this; 10302 } 10303 public final Builder setUnknownFields( 10304 final com.google.protobuf.UnknownFieldSet unknownFields) { 10305 return super.setUnknownFieldsProto3(unknownFields); 10306 } 10307 10308 public final Builder mergeUnknownFields( 10309 final com.google.protobuf.UnknownFieldSet unknownFields) { 10310 return super.mergeUnknownFields(unknownFields); 10311 } 10312 10313 10314 // @@protoc_insertion_point(builder_scope:grpc.testing.ReconnectInfo) 10315 } 10316 10317 // @@protoc_insertion_point(class_scope:grpc.testing.ReconnectInfo) 10318 private static final io.grpc.testing.integration.Messages.ReconnectInfo DEFAULT_INSTANCE; 10319 static { 10320 DEFAULT_INSTANCE = new io.grpc.testing.integration.Messages.ReconnectInfo(); 10321 } 10322 10323 public static io.grpc.testing.integration.Messages.ReconnectInfo getDefaultInstance() { 10324 return DEFAULT_INSTANCE; 10325 } 10326 10327 private static final com.google.protobuf.Parser<ReconnectInfo> 10328 PARSER = new com.google.protobuf.AbstractParser<ReconnectInfo>() { 10329 public ReconnectInfo parsePartialFrom( 10330 com.google.protobuf.CodedInputStream input, 10331 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10332 throws com.google.protobuf.InvalidProtocolBufferException { 10333 return new ReconnectInfo(input, extensionRegistry); 10334 } 10335 }; 10336 10337 public static com.google.protobuf.Parser<ReconnectInfo> parser() { 10338 return PARSER; 10339 } 10340 10341 @java.lang.Override 10342 public com.google.protobuf.Parser<ReconnectInfo> getParserForType() { 10343 return PARSER; 10344 } 10345 10346 public io.grpc.testing.integration.Messages.ReconnectInfo getDefaultInstanceForType() { 10347 return DEFAULT_INSTANCE; 10348 } 10349 10350 } 10351 10352 private static final com.google.protobuf.Descriptors.Descriptor 10353 internal_static_grpc_testing_Payload_descriptor; 10354 private static final 10355 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10356 internal_static_grpc_testing_Payload_fieldAccessorTable; 10357 private static final com.google.protobuf.Descriptors.Descriptor 10358 internal_static_grpc_testing_EchoStatus_descriptor; 10359 private static final 10360 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10361 internal_static_grpc_testing_EchoStatus_fieldAccessorTable; 10362 private static final com.google.protobuf.Descriptors.Descriptor 10363 internal_static_grpc_testing_SimpleRequest_descriptor; 10364 private static final 10365 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10366 internal_static_grpc_testing_SimpleRequest_fieldAccessorTable; 10367 private static final com.google.protobuf.Descriptors.Descriptor 10368 internal_static_grpc_testing_SimpleResponse_descriptor; 10369 private static final 10370 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10371 internal_static_grpc_testing_SimpleResponse_fieldAccessorTable; 10372 private static final com.google.protobuf.Descriptors.Descriptor 10373 internal_static_grpc_testing_SimpleContext_descriptor; 10374 private static final 10375 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10376 internal_static_grpc_testing_SimpleContext_fieldAccessorTable; 10377 private static final com.google.protobuf.Descriptors.Descriptor 10378 internal_static_grpc_testing_StreamingInputCallRequest_descriptor; 10379 private static final 10380 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10381 internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable; 10382 private static final com.google.protobuf.Descriptors.Descriptor 10383 internal_static_grpc_testing_StreamingInputCallResponse_descriptor; 10384 private static final 10385 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10386 internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable; 10387 private static final com.google.protobuf.Descriptors.Descriptor 10388 internal_static_grpc_testing_ResponseParameters_descriptor; 10389 private static final 10390 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10391 internal_static_grpc_testing_ResponseParameters_fieldAccessorTable; 10392 private static final com.google.protobuf.Descriptors.Descriptor 10393 internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; 10394 private static final 10395 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10396 internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable; 10397 private static final com.google.protobuf.Descriptors.Descriptor 10398 internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; 10399 private static final 10400 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10401 internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable; 10402 private static final com.google.protobuf.Descriptors.Descriptor 10403 internal_static_grpc_testing_ReconnectParams_descriptor; 10404 private static final 10405 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10406 internal_static_grpc_testing_ReconnectParams_fieldAccessorTable; 10407 private static final com.google.protobuf.Descriptors.Descriptor 10408 internal_static_grpc_testing_ReconnectInfo_descriptor; 10409 private static final 10410 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10411 internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable; 10412 10413 public static com.google.protobuf.Descriptors.FileDescriptor 10414 getDescriptor() { 10415 return descriptor; 10416 } 10417 private static com.google.protobuf.Descriptors.FileDescriptor 10418 descriptor; 10419 static { 10420 java.lang.String[] descriptorData = { 10421 "\n\033grpc/testing/messages.proto\022\014grpc.test" + 10422 "ing\032\036google/protobuf/wrappers.proto\"@\n\007P" + 10423 "ayload\022\'\n\004type\030\001 \001(\0162\031.grpc.testing.Payl" + 10424 "oadType\022\014\n\004body\030\002 \001(\014\"+\n\nEchoStatus\022\014\n\004c" + 10425 "ode\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\"\324\002\n\rSimpleReq" + 10426 "uest\0220\n\rresponse_type\030\001 \001(\0162\031.grpc.testi" + 10427 "ng.PayloadType\022\025\n\rresponse_size\030\002 \001(\005\022&\n" + 10428 "\007payload\030\003 \001(\0132\025.grpc.testing.Payload\022\025\n" + 10429 "\rfill_username\030\004 \001(\010\022\030\n\020fill_oauth_scope" + 10430 "\030\005 \001(\010\0227\n\023response_compressed\030\006 \001(\0132\032.go" + 10431 "ogle.protobuf.BoolValue\0221\n\017response_stat" + 10432 "us\030\007 \001(\0132\030.grpc.testing.EchoStatus\0225\n\021ex" + 10433 "pect_compressed\030\010 \001(\0132\032.google.protobuf." + 10434 "BoolValue\"_\n\016SimpleResponse\022&\n\007payload\030\001" + 10435 " \001(\0132\025.grpc.testing.Payload\022\020\n\010username\030" + 10436 "\002 \001(\t\022\023\n\013oauth_scope\030\003 \001(\t\"\036\n\rSimpleCont" + 10437 "ext\022\r\n\005value\030\001 \001(\t\"z\n\031StreamingInputCall" + 10438 "Request\022&\n\007payload\030\001 \001(\0132\025.grpc.testing." + 10439 "Payload\0225\n\021expect_compressed\030\002 \001(\0132\032.goo" + 10440 "gle.protobuf.BoolValue\"=\n\032StreamingInput" + 10441 "CallResponse\022\037\n\027aggregated_payload_size\030" + 10442 "\001 \001(\005\"g\n\022ResponseParameters\022\014\n\004size\030\001 \001(" + 10443 "\005\022\023\n\013interval_us\030\002 \001(\005\022.\n\ncompressed\030\003 \001" + 10444 "(\0132\032.google.protobuf.BoolValue\"\350\001\n\032Strea" + 10445 "mingOutputCallRequest\0220\n\rresponse_type\030\001" + 10446 " \001(\0162\031.grpc.testing.PayloadType\022=\n\023respo" + 10447 "nse_parameters\030\002 \003(\0132 .grpc.testing.Resp" + 10448 "onseParameters\022&\n\007payload\030\003 \001(\0132\025.grpc.t" + 10449 "esting.Payload\0221\n\017response_status\030\007 \001(\0132" + 10450 "\030.grpc.testing.EchoStatus\"E\n\033StreamingOu" + 10451 "tputCallResponse\022&\n\007payload\030\001 \001(\0132\025.grpc" + 10452 ".testing.Payload\"3\n\017ReconnectParams\022 \n\030m" + 10453 "ax_reconnect_backoff_ms\030\001 \001(\005\"3\n\rReconne" + 10454 "ctInfo\022\016\n\006passed\030\001 \001(\010\022\022\n\nbackoff_ms\030\002 \003" + 10455 "(\005*?\n\013PayloadType\022\020\n\014COMPRESSABLE\020\000\022\022\n\016U" + 10456 "NCOMPRESSABLE\020\001\022\n\n\006RANDOM\020\002B\035\n\033io.grpc.t" + 10457 "esting.integrationb\006proto3" 10458 }; 10459 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 10460 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { 10461 public com.google.protobuf.ExtensionRegistry assignDescriptors( 10462 com.google.protobuf.Descriptors.FileDescriptor root) { 10463 descriptor = root; 10464 return null; 10465 } 10466 }; 10467 com.google.protobuf.Descriptors.FileDescriptor 10468 .internalBuildGeneratedFileFrom(descriptorData, 10469 new com.google.protobuf.Descriptors.FileDescriptor[] { 10470 com.google.protobuf.WrappersProto.getDescriptor(), 10471 }, assigner); 10472 internal_static_grpc_testing_Payload_descriptor = 10473 getDescriptor().getMessageTypes().get(0); 10474 internal_static_grpc_testing_Payload_fieldAccessorTable = new 10475 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10476 internal_static_grpc_testing_Payload_descriptor, 10477 new java.lang.String[] { "Type", "Body", }); 10478 internal_static_grpc_testing_EchoStatus_descriptor = 10479 getDescriptor().getMessageTypes().get(1); 10480 internal_static_grpc_testing_EchoStatus_fieldAccessorTable = new 10481 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10482 internal_static_grpc_testing_EchoStatus_descriptor, 10483 new java.lang.String[] { "Code", "Message", }); 10484 internal_static_grpc_testing_SimpleRequest_descriptor = 10485 getDescriptor().getMessageTypes().get(2); 10486 internal_static_grpc_testing_SimpleRequest_fieldAccessorTable = new 10487 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10488 internal_static_grpc_testing_SimpleRequest_descriptor, 10489 new java.lang.String[] { "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed", }); 10490 internal_static_grpc_testing_SimpleResponse_descriptor = 10491 getDescriptor().getMessageTypes().get(3); 10492 internal_static_grpc_testing_SimpleResponse_fieldAccessorTable = new 10493 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10494 internal_static_grpc_testing_SimpleResponse_descriptor, 10495 new java.lang.String[] { "Payload", "Username", "OauthScope", }); 10496 internal_static_grpc_testing_SimpleContext_descriptor = 10497 getDescriptor().getMessageTypes().get(4); 10498 internal_static_grpc_testing_SimpleContext_fieldAccessorTable = new 10499 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10500 internal_static_grpc_testing_SimpleContext_descriptor, 10501 new java.lang.String[] { "Value", }); 10502 internal_static_grpc_testing_StreamingInputCallRequest_descriptor = 10503 getDescriptor().getMessageTypes().get(5); 10504 internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable = new 10505 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10506 internal_static_grpc_testing_StreamingInputCallRequest_descriptor, 10507 new java.lang.String[] { "Payload", "ExpectCompressed", }); 10508 internal_static_grpc_testing_StreamingInputCallResponse_descriptor = 10509 getDescriptor().getMessageTypes().get(6); 10510 internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable = new 10511 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10512 internal_static_grpc_testing_StreamingInputCallResponse_descriptor, 10513 new java.lang.String[] { "AggregatedPayloadSize", }); 10514 internal_static_grpc_testing_ResponseParameters_descriptor = 10515 getDescriptor().getMessageTypes().get(7); 10516 internal_static_grpc_testing_ResponseParameters_fieldAccessorTable = new 10517 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10518 internal_static_grpc_testing_ResponseParameters_descriptor, 10519 new java.lang.String[] { "Size", "IntervalUs", "Compressed", }); 10520 internal_static_grpc_testing_StreamingOutputCallRequest_descriptor = 10521 getDescriptor().getMessageTypes().get(8); 10522 internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable = new 10523 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10524 internal_static_grpc_testing_StreamingOutputCallRequest_descriptor, 10525 new java.lang.String[] { "ResponseType", "ResponseParameters", "Payload", "ResponseStatus", }); 10526 internal_static_grpc_testing_StreamingOutputCallResponse_descriptor = 10527 getDescriptor().getMessageTypes().get(9); 10528 internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable = new 10529 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10530 internal_static_grpc_testing_StreamingOutputCallResponse_descriptor, 10531 new java.lang.String[] { "Payload", }); 10532 internal_static_grpc_testing_ReconnectParams_descriptor = 10533 getDescriptor().getMessageTypes().get(10); 10534 internal_static_grpc_testing_ReconnectParams_fieldAccessorTable = new 10535 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10536 internal_static_grpc_testing_ReconnectParams_descriptor, 10537 new java.lang.String[] { "MaxReconnectBackoffMs", }); 10538 internal_static_grpc_testing_ReconnectInfo_descriptor = 10539 getDescriptor().getMessageTypes().get(11); 10540 internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable = new 10541 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 10542 internal_static_grpc_testing_ReconnectInfo_descriptor, 10543 new java.lang.String[] { "Passed", "BackoffMs", }); 10544 com.google.protobuf.WrappersProto.getDescriptor(); 10545 } 10546 10547 // @@protoc_insertion_point(outer_class_scope) 10548 } 10549