From dbef1af29a72db1ef262ee9f2ecbff8d470aa4a0 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Mon, 23 May 2016 12:05:41 -0700 Subject: [PATCH] Bump protobuf dependency to 3.0.0-beta-3 This allows us to play with zero-copy and proto3 support for lite. Unfortunately, it introduced some warnings, so deprecated warnings are now ignored for benchmarks and interop-testing. --- .travis.yml | 2 +- COMPILING.md | 12 +- android-interop-testing/app/build.gradle | 2 +- .../io/grpc/benchmarks/proto/Control.java | 1414 +++++++------- .../io/grpc/benchmarks/proto/Messages.java | 1552 ++++++++-------- .../io/grpc/benchmarks/proto/Payloads.java | 199 +- .../io/grpc/benchmarks/proto/Services.java | 2 +- .../java/io/grpc/benchmarks/proto/Stats.java | 370 ++-- build.gradle | 7 +- buildscripts/jenkins-pre.bat | 4 +- buildscripts/make_dependencies.bat | 4 +- compiler/Dockerfile | 2 +- compiler/README.md | 7 +- compiler/build.gradle | 8 +- compiler/src/testLite/proto/test.proto | 55 - examples/android/app/build.gradle | 2 +- .../grpc/examples/helloworld/HelloReply.java | 47 +- .../examples/helloworld/HelloRequest.java | 47 +- .../examples/helloworld/HelloWorldProto.java | 10 +- .../io/grpc/examples/routeguide/Feature.java | 123 +- .../examples/routeguide/FeatureDatabase.java | 47 +- .../examples/routeguide/FeatureOrBuilder.java | 20 +- .../io/grpc/examples/routeguide/Point.java | 47 +- .../grpc/examples/routeguide/Rectangle.java | 143 +- .../routeguide/RectangleOrBuilder.java | 24 +- .../examples/routeguide/RouteGuideProto.java | 26 +- .../grpc/examples/routeguide/RouteNote.java | 123 +- .../routeguide/RouteNoteOrBuilder.java | 20 +- .../examples/routeguide/RouteSummary.java | 111 +- .../routeguide/RouteSummaryOrBuilder.java | 16 +- .../main/java/io/grpc/grpclb/ClientStats.java | 95 +- .../io/grpc/grpclb/ClientStatsOrBuilder.java | 12 +- .../grpclb/InitialLoadBalanceRequest.java | 67 +- .../InitialLoadBalanceRequestOrBuilder.java | 8 +- .../grpclb/InitialLoadBalanceResponse.java | 132 +- .../InitialLoadBalanceResponseOrBuilder.java | 20 +- .../io/grpc/grpclb/LoadBalanceRequest.java | 136 +- .../grpclb/LoadBalanceRequestOrBuilder.java | 16 +- .../io/grpc/grpclb/LoadBalanceResponse.java | 136 +- .../grpclb/LoadBalanceResponseOrBuilder.java | 16 +- .../io/grpc/grpclb/LoadBalancerProto.java | 30 +- .../main/java/io/grpc/grpclb/Server.java | 115 +- .../main/java/io/grpc/grpclb/ServerList.java | 179 +- .../io/grpc/grpclb/ServerListOrBuilder.java | 32 +- .../java/io/grpc/grpclb/ServerOrBuilder.java | 20 +- .../java/com/google/protobuf/EmptyProtos.java | 53 +- .../io/grpc/testing/integration/Messages.java | 1646 ++++++++--------- .../io/grpc/testing/integration/Metrics.java | 164 +- .../io/grpc/testing/integration/Test.java | 2 +- .../io/grpc/health/v1/HealthCheckRequest.java | 39 +- .../grpc/health/v1/HealthCheckResponse.java | 69 +- .../java/io/grpc/health/v1/HealthProto.java | 10 +- 52 files changed, 3651 insertions(+), 3792 deletions(-) delete mode 100644 compiler/src/testLite/proto/test.proto diff --git a/.travis.yml b/.travis.yml index eed620b710..7443fa713d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ language: java env: global: - GRADLE_OPTS=-Xmx512m - - PROTOBUF_VERSION=3.0.0-beta-2 + - PROTOBUF_VERSION=3.0.0-beta-3 - LDFLAGS=-L/tmp/protobuf/lib - CXXFLAGS=-I/tmp/protobuf/include - LD_LIBRARY_PATH=/tmp/protobuf/lib diff --git a/COMPILING.md b/COMPILING.md index 9fd2257120..f9cecca180 100644 --- a/COMPILING.md +++ b/COMPILING.md @@ -27,13 +27,13 @@ This section is only necessary if you are making changes to the code generation. Most users only need to use `skipCodegen=true` as discussed above. ### Build Protobuf -The codegen plugin is C++ code and requires protobuf 3.0.0-beta-2. +The codegen plugin is C++ code and requires protobuf 3.0.0-beta-3. For Linux, Mac and MinGW: ``` $ git clone https://github.com/google/protobuf.git $ cd protobuf -$ git checkout v3.0.0-beta-2 +$ git checkout v3.0.0-beta-3 $ ./autogen.sh $ ./configure $ make @@ -72,16 +72,16 @@ When building on Windows and VC++, you need to specify project properties for Gradle to find protobuf: ``` .\gradlew install ^ - -PvcProtobufInclude=C:\path\to\protobuf-3.0.0-beta-2\src ^ - -PvcProtobufLibs=C:\path\to\protobuf-3.0.0-beta-2\vsprojects\Release ^ + -PvcProtobufInclude=C:\path\to\protobuf-3.0.0-beta-3\src ^ + -PvcProtobufLibs=C:\path\to\protobuf-3.0.0-beta-3\vsprojects\Release ^ -PtargetArch=x86_32 ``` Since specifying those properties every build is bothersome, you can instead create ``\gradle.properties`` with contents like: ``` -vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0-beta-2\\src -vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0-beta-2\\vsprojects\\Release +vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0-beta-3\\src +vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0-beta-3\\vsprojects\\Release targetArch=x86_32 ``` diff --git a/android-interop-testing/app/build.gradle b/android-interop-testing/app/build.gradle index a5460202aa..4e833d8ad7 100644 --- a/android-interop-testing/app/build.gradle +++ b/android-interop-testing/app/build.gradle @@ -28,7 +28,7 @@ android { protobuf { protoc { - artifact = 'com.google.protobuf:protoc:3.0.0-beta-2' + artifact = 'com.google.protobuf:protoc:3.0.0-beta-3' } plugins { grpc { diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java index 2bad3bb00c..81f353b004 100644 --- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java @@ -16,12 +16,12 @@ public final class Control { /** * SYNC_CLIENT = 0; */ - SYNC_CLIENT(0, 0), + SYNC_CLIENT(0), /** * ASYNC_CLIENT = 1; */ - ASYNC_CLIENT(1, 1), - UNRECOGNIZED(-1, -1), + ASYNC_CLIENT(1), + UNRECOGNIZED(-1), ; /** @@ -35,14 +35,22 @@ public final class Control { public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ClientType valueOf(int value) { + return forNumber(value); + } + + public static ClientType forNumber(int value) { switch (value) { case 0: return SYNC_CLIENT; case 1: return ASYNC_CLIENT; @@ -58,13 +66,13 @@ public final class Control { ClientType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ClientType findValueByNumber(int number) { - return ClientType.valueOf(number); + return ClientType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -89,11 +97,9 @@ public final class Control { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ClientType(int index, int value) { - this.index = index; + private ClientType(int value) { this.value = value; } @@ -108,16 +114,16 @@ public final class Control { /** * SYNC_SERVER = 0; */ - SYNC_SERVER(0, 0), + SYNC_SERVER(0), /** * ASYNC_SERVER = 1; */ - ASYNC_SERVER(1, 1), + ASYNC_SERVER(1), /** * ASYNC_GENERIC_SERVER = 2; */ - ASYNC_GENERIC_SERVER(2, 2), - UNRECOGNIZED(-1, -1), + ASYNC_GENERIC_SERVER(2), + UNRECOGNIZED(-1), ; /** @@ -135,14 +141,22 @@ public final class Control { public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ServerType valueOf(int value) { + return forNumber(value); + } + + public static ServerType forNumber(int value) { switch (value) { case 0: return SYNC_SERVER; case 1: return ASYNC_SERVER; @@ -159,13 +173,13 @@ public final class Control { ServerType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ServerType findValueByNumber(int number) { - return ServerType.valueOf(number); + return ServerType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -190,11 +204,9 @@ public final class Control { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ServerType(int index, int value) { - this.index = index; + private ServerType(int value) { this.value = value; } @@ -209,12 +221,12 @@ public final class Control { /** * UNARY = 0; */ - UNARY(0, 0), + UNARY(0), /** * STREAMING = 1; */ - STREAMING(1, 1), - UNRECOGNIZED(-1, -1), + STREAMING(1), + UNRECOGNIZED(-1), ; /** @@ -228,14 +240,22 @@ public final class Control { public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static RpcType valueOf(int value) { + return forNumber(value); + } + + public static RpcType forNumber(int value) { switch (value) { case 0: return UNARY; case 1: return STREAMING; @@ -251,13 +271,13 @@ public final class Control { RpcType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RpcType findValueByNumber(int number) { - return RpcType.valueOf(number); + return RpcType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -282,11 +302,9 @@ public final class Control { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private RpcType(int index, int value) { - this.index = index; + private RpcType(int value) { this.value = value; } @@ -298,21 +316,21 @@ public final class Control { com.google.protobuf.MessageOrBuilder { /** - * optional double offered_load = 1; - * *
      * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
      * 
+ * + * optional double offered_load = 1; */ double getOfferedLoad(); } /** - * Protobuf type {@code grpc.testing.PoissonParams} - * *
    * Parameters of poisson process distribution, which is a good representation
    * of activity coming in from independent identical stationary sources.
    * 
+ * + * Protobuf type {@code grpc.testing.PoissonParams} */ public static final class PoissonParams extends com.google.protobuf.GeneratedMessage implements @@ -333,7 +351,8 @@ public final class Control { } private PoissonParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -358,11 +377,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -382,11 +400,11 @@ public final class Control { public static final int OFFERED_LOAD_FIELD_NUMBER = 1; private double offeredLoad_; /** - * optional double offered_load = 1; - * *
      * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
      * 
+ * + * optional double offered_load = 1; */ public double getOfferedLoad() { return offeredLoad_; @@ -446,34 +464,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.PoissonParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.PoissonParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -495,12 +519,12 @@ public final class Control { return builder; } /** - * Protobuf type {@code grpc.testing.PoissonParams} - * *
      * Parameters of poisson process distribution, which is a good representation
      * of activity coming in from independent identical stationary sources.
      * 
+ * + * Protobuf type {@code grpc.testing.PoissonParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -594,7 +618,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.PoissonParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -605,21 +629,21 @@ public final class Control { private double offeredLoad_ ; /** - * optional double offered_load = 1; - * *
        * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
        * 
+ * + * optional double offered_load = 1; */ public double getOfferedLoad() { return offeredLoad_; } /** - * optional double offered_load = 1; - * *
        * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
        * 
+ * + * optional double offered_load = 1; */ public Builder setOfferedLoad(double value) { @@ -628,11 +652,11 @@ public final class Control { return this; } /** - * optional double offered_load = 1; - * *
        * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
        * 
+ * + * optional double offered_load = 1; */ public Builder clearOfferedLoad() { @@ -670,16 +694,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new PoissonParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -735,7 +750,8 @@ public final class Control { } private UniformParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -765,11 +781,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -865,34 +880,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.UniformParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.UniformParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1014,7 +1035,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.UniformParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1104,16 +1125,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new UniformParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1163,7 +1175,8 @@ public final class Control { } private DeterministicParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1188,11 +1201,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1272,34 +1284,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.DeterministicParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.DeterministicParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1415,7 +1433,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.DeterministicParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1479,16 +1497,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new DeterministicParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1544,7 +1553,8 @@ public final class Control { } private ParetoParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1574,11 +1584,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1674,34 +1683,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ParetoParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ParetoParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1823,7 +1838,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ParetoParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1913,16 +1928,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ParetoParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1946,12 +1952,12 @@ public final class Control { com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code grpc.testing.ClosedLoopParams} - * *
    * Once an RPC finishes, immediately start a new one.
    * No configuration parameters needed.
    * 
+ * + * Protobuf type {@code grpc.testing.ClosedLoopParams} */ public static final class ClosedLoopParams extends com.google.protobuf.GeneratedMessage implements @@ -1971,7 +1977,8 @@ public final class Control { } private ClosedLoopParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; @@ -1990,11 +1997,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -2058,34 +2064,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -2107,12 +2119,12 @@ public final class Control { return builder; } /** - * Protobuf type {@code grpc.testing.ClosedLoopParams} - * *
      * Once an RPC finishes, immediately start a new one.
      * No configuration parameters needed.
      * 
+ * + * Protobuf type {@code grpc.testing.ClosedLoopParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -2200,7 +2212,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ClosedLoopParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -2238,16 +2250,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ClosedLoopParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -2338,7 +2341,8 @@ public final class Control { } private LoadParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -2428,11 +2432,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -2459,11 +2462,19 @@ public final class Control { DETERM(4), PARETO(5), LOAD_NOT_SET(0); - private int value = 0; + private final int value; private LoadCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static LoadCase valueOf(int value) { + return forNumber(value); + } + + public static LoadCase forNumber(int value) { switch (value) { case 1: return CLOSED_LOOP; case 2: return POISSON; @@ -2471,8 +2482,7 @@ public final class Control { case 4: return DETERM; case 5: return PARETO; case 0: return LOAD_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -2482,7 +2492,7 @@ public final class Control { public LoadCase getLoadCase() { - return LoadCase.valueOf( + return LoadCase.forNumber( loadCase_); } @@ -2668,34 +2678,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.LoadParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.LoadParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -2868,7 +2884,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.LoadParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -2880,7 +2896,7 @@ public final class Control { private java.lang.Object load_; public LoadCase getLoadCase() { - return LoadCase.valueOf( + return LoadCase.forNumber( loadCase_); } @@ -3571,16 +3587,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new LoadParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -3619,11 +3626,11 @@ public final class Control { getServerHostOverrideBytes(); } /** - * Protobuf type {@code grpc.testing.SecurityParams} - * *
    * presence of SecurityParams implies use of TLS
    * 
+ * + * Protobuf type {@code grpc.testing.SecurityParams} */ public static final class SecurityParams extends com.google.protobuf.GeneratedMessage implements @@ -3645,7 +3652,8 @@ public final class Control { } private SecurityParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -3676,11 +3684,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -3800,34 +3807,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.SecurityParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.SecurityParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -3849,11 +3862,11 @@ public final class Control { return builder; } /** - * Protobuf type {@code grpc.testing.SecurityParams} - * *
      * presence of SecurityParams implies use of TLS
      * 
+ * + * Protobuf type {@code grpc.testing.SecurityParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -3954,7 +3967,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.SecurityParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -4087,16 +4100,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SecurityParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -4120,36 +4124,36 @@ public final class Control { com.google.protobuf.MessageOrBuilder { /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ com.google.protobuf.ProtocolStringList getServerTargetsList(); /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ int getServerTargetsCount(); /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ java.lang.String getServerTargets(int index); /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ com.google.protobuf.ByteString getServerTargetsBytes(int index); @@ -4177,31 +4181,31 @@ public final class Control { io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder(); /** - * optional int32 outstanding_rpcs_per_channel = 4; - * *
      * How many concurrent RPCs to start for each channel.
      * For synchronous client, use a separate thread for each outstanding RPC.
      * 
+ * + * optional int32 outstanding_rpcs_per_channel = 4; */ int getOutstandingRpcsPerChannel(); /** - * optional int32 client_channels = 5; - * *
      * Number of independent client channels to create.
      * i-th channel will connect to server_target[i % server_targets.size()]
      * 
+ * + * optional int32 client_channels = 5; */ int getClientChannels(); /** - * optional int32 async_client_threads = 7; - * *
      * Only for async client. Number of threads to use to start/manage RPCs.
      * 
+ * + * optional int32 async_client_threads = 7; */ int getAsyncClientThreads(); @@ -4215,27 +4219,27 @@ public final class Control { io.grpc.benchmarks.proto.Control.RpcType getRpcType(); /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
      * The requested load for the entire client (aggregated over all the threads).
      * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ boolean hasLoadParams(); /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
      * The requested load for the entire client (aggregated over all the threads).
      * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ io.grpc.benchmarks.proto.Control.LoadParams getLoadParams(); /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
      * The requested load for the entire client (aggregated over all the threads).
      * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder getLoadParamsOrBuilder(); @@ -4266,27 +4270,27 @@ public final class Control { io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder getHistogramParamsOrBuilder(); /** - * repeated int32 core_list = 13; - * *
      * Specify the cores we should run the client on, if desired
      * 
+ * + * repeated int32 core_list = 13; */ java.util.List getCoreListList(); /** - * repeated int32 core_list = 13; - * *
      * Specify the cores we should run the client on, if desired
      * 
+ * + * repeated int32 core_list = 13; */ int getCoreListCount(); /** - * repeated int32 core_list = 13; - * *
      * Specify the cores we should run the client on, if desired
      * 
+ * + * repeated int32 core_list = 13; */ int getCoreList(int index); @@ -4324,7 +4328,8 @@ public final class Control { } private ClientConfig( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -4458,11 +4463,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { serverTargets_ = serverTargets_.getUnmodifiableView(); @@ -4489,42 +4493,42 @@ public final class Control { public static final int SERVER_TARGETS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList serverTargets_; /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ public com.google.protobuf.ProtocolStringList getServerTargetsList() { return serverTargets_; } /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ public int getServerTargetsCount() { return serverTargets_.size(); } /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ public java.lang.String getServerTargets(int index) { return serverTargets_.get(index); } /** - * repeated string server_targets = 1; - * *
      * List of targets to connect to. At least one target needs to be specified.
      * 
+ * + * repeated string server_targets = 1; */ public com.google.protobuf.ByteString getServerTargetsBytes(int index) { @@ -4543,7 +4547,7 @@ public final class Control { * optional .grpc.testing.ClientType client_type = 2; */ public io.grpc.benchmarks.proto.Control.ClientType getClientType() { - io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.valueOf(clientType_); + io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.forNumber(clientType_); return result == null ? io.grpc.benchmarks.proto.Control.ClientType.UNRECOGNIZED : result; } @@ -4571,12 +4575,12 @@ public final class Control { public static final int OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER = 4; private int outstandingRpcsPerChannel_; /** - * optional int32 outstanding_rpcs_per_channel = 4; - * *
      * How many concurrent RPCs to start for each channel.
      * For synchronous client, use a separate thread for each outstanding RPC.
      * 
+ * + * optional int32 outstanding_rpcs_per_channel = 4; */ public int getOutstandingRpcsPerChannel() { return outstandingRpcsPerChannel_; @@ -4585,12 +4589,12 @@ public final class Control { public static final int CLIENT_CHANNELS_FIELD_NUMBER = 5; private int clientChannels_; /** - * optional int32 client_channels = 5; - * *
      * Number of independent client channels to create.
      * i-th channel will connect to server_target[i % server_targets.size()]
      * 
+ * + * optional int32 client_channels = 5; */ public int getClientChannels() { return clientChannels_; @@ -4599,11 +4603,11 @@ public final class Control { public static final int ASYNC_CLIENT_THREADS_FIELD_NUMBER = 7; private int asyncClientThreads_; /** - * optional int32 async_client_threads = 7; - * *
      * Only for async client. Number of threads to use to start/manage RPCs.
      * 
+ * + * optional int32 async_client_threads = 7; */ public int getAsyncClientThreads() { return asyncClientThreads_; @@ -4621,38 +4625,38 @@ public final class Control { * optional .grpc.testing.RpcType rpc_type = 8; */ public io.grpc.benchmarks.proto.Control.RpcType getRpcType() { - io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.valueOf(rpcType_); + io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.forNumber(rpcType_); return result == null ? io.grpc.benchmarks.proto.Control.RpcType.UNRECOGNIZED : result; } public static final int LOAD_PARAMS_FIELD_NUMBER = 10; private io.grpc.benchmarks.proto.Control.LoadParams loadParams_; /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
      * The requested load for the entire client (aggregated over all the threads).
      * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public boolean hasLoadParams() { return loadParams_ != null; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
      * The requested load for the entire client (aggregated over all the threads).
      * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public io.grpc.benchmarks.proto.Control.LoadParams getLoadParams() { return loadParams_ == null ? io.grpc.benchmarks.proto.Control.LoadParams.getDefaultInstance() : loadParams_; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
      * The requested load for the entire client (aggregated over all the threads).
      * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder getLoadParamsOrBuilder() { return getLoadParams(); @@ -4703,32 +4707,32 @@ public final class Control { public static final int CORE_LIST_FIELD_NUMBER = 13; private java.util.List coreList_; /** - * repeated int32 core_list = 13; - * *
      * Specify the cores we should run the client on, if desired
      * 
+ * + * repeated int32 core_list = 13; */ public java.util.List getCoreListList() { return coreList_; } /** - * repeated int32 core_list = 13; - * *
      * Specify the cores we should run the client on, if desired
      * 
+ * + * repeated int32 core_list = 13; */ public int getCoreListCount() { return coreList_.size(); } /** - * repeated int32 core_list = 13; - * *
      * Specify the cores we should run the client on, if desired
      * 
+ * + * repeated int32 core_list = 13; */ public int getCoreList(int index) { return coreList_.get(index); @@ -4894,34 +4898,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClientConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -5160,7 +5170,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ClientConfig) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -5178,53 +5188,53 @@ public final class Control { } } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public com.google.protobuf.ProtocolStringList getServerTargetsList() { return serverTargets_.getUnmodifiableView(); } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public int getServerTargetsCount() { return serverTargets_.size(); } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public java.lang.String getServerTargets(int index) { return serverTargets_.get(index); } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public com.google.protobuf.ByteString getServerTargetsBytes(int index) { return serverTargets_.getByteString(index); } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public Builder setServerTargets( int index, java.lang.String value) { @@ -5237,11 +5247,11 @@ public final class Control { return this; } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public Builder addServerTargets( java.lang.String value) { @@ -5254,11 +5264,11 @@ public final class Control { return this; } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public Builder addAllServerTargets( java.lang.Iterable values) { @@ -5269,11 +5279,11 @@ public final class Control { return this; } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public Builder clearServerTargets() { serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -5282,11 +5292,11 @@ public final class Control { return this; } /** - * repeated string server_targets = 1; - * *
        * List of targets to connect to. At least one target needs to be specified.
        * 
+ * + * repeated string server_targets = 1; */ public Builder addServerTargetsBytes( com.google.protobuf.ByteString value) { @@ -5319,7 +5329,7 @@ public final class Control { * optional .grpc.testing.ClientType client_type = 2; */ public io.grpc.benchmarks.proto.Control.ClientType getClientType() { - io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.valueOf(clientType_); + io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.forNumber(clientType_); return result == null ? io.grpc.benchmarks.proto.Control.ClientType.UNRECOGNIZED : result; } /** @@ -5463,23 +5473,23 @@ public final class Control { private int outstandingRpcsPerChannel_ ; /** - * optional int32 outstanding_rpcs_per_channel = 4; - * *
        * How many concurrent RPCs to start for each channel.
        * For synchronous client, use a separate thread for each outstanding RPC.
        * 
+ * + * optional int32 outstanding_rpcs_per_channel = 4; */ public int getOutstandingRpcsPerChannel() { return outstandingRpcsPerChannel_; } /** - * optional int32 outstanding_rpcs_per_channel = 4; - * *
        * How many concurrent RPCs to start for each channel.
        * For synchronous client, use a separate thread for each outstanding RPC.
        * 
+ * + * optional int32 outstanding_rpcs_per_channel = 4; */ public Builder setOutstandingRpcsPerChannel(int value) { @@ -5488,12 +5498,12 @@ public final class Control { return this; } /** - * optional int32 outstanding_rpcs_per_channel = 4; - * *
        * How many concurrent RPCs to start for each channel.
        * For synchronous client, use a separate thread for each outstanding RPC.
        * 
+ * + * optional int32 outstanding_rpcs_per_channel = 4; */ public Builder clearOutstandingRpcsPerChannel() { @@ -5504,23 +5514,23 @@ public final class Control { private int clientChannels_ ; /** - * optional int32 client_channels = 5; - * *
        * Number of independent client channels to create.
        * i-th channel will connect to server_target[i % server_targets.size()]
        * 
+ * + * optional int32 client_channels = 5; */ public int getClientChannels() { return clientChannels_; } /** - * optional int32 client_channels = 5; - * *
        * Number of independent client channels to create.
        * i-th channel will connect to server_target[i % server_targets.size()]
        * 
+ * + * optional int32 client_channels = 5; */ public Builder setClientChannels(int value) { @@ -5529,12 +5539,12 @@ public final class Control { return this; } /** - * optional int32 client_channels = 5; - * *
        * Number of independent client channels to create.
        * i-th channel will connect to server_target[i % server_targets.size()]
        * 
+ * + * optional int32 client_channels = 5; */ public Builder clearClientChannels() { @@ -5545,21 +5555,21 @@ public final class Control { private int asyncClientThreads_ ; /** - * optional int32 async_client_threads = 7; - * *
        * Only for async client. Number of threads to use to start/manage RPCs.
        * 
+ * + * optional int32 async_client_threads = 7; */ public int getAsyncClientThreads() { return asyncClientThreads_; } /** - * optional int32 async_client_threads = 7; - * *
        * Only for async client. Number of threads to use to start/manage RPCs.
        * 
+ * + * optional int32 async_client_threads = 7; */ public Builder setAsyncClientThreads(int value) { @@ -5568,11 +5578,11 @@ public final class Control { return this; } /** - * optional int32 async_client_threads = 7; - * *
        * Only for async client. Number of threads to use to start/manage RPCs.
        * 
+ * + * optional int32 async_client_threads = 7; */ public Builder clearAsyncClientThreads() { @@ -5600,7 +5610,7 @@ public final class Control { * optional .grpc.testing.RpcType rpc_type = 8; */ public io.grpc.benchmarks.proto.Control.RpcType getRpcType() { - io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.valueOf(rpcType_); + io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.forNumber(rpcType_); return result == null ? io.grpc.benchmarks.proto.Control.RpcType.UNRECOGNIZED : result; } /** @@ -5629,21 +5639,21 @@ public final class Control { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder> loadParamsBuilder_; /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public boolean hasLoadParams() { return loadParamsBuilder_ != null || loadParams_ != null; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public io.grpc.benchmarks.proto.Control.LoadParams getLoadParams() { if (loadParamsBuilder_ == null) { @@ -5653,11 +5663,11 @@ public final class Control { } } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public Builder setLoadParams(io.grpc.benchmarks.proto.Control.LoadParams value) { if (loadParamsBuilder_ == null) { @@ -5673,11 +5683,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public Builder setLoadParams( io.grpc.benchmarks.proto.Control.LoadParams.Builder builderForValue) { @@ -5691,11 +5701,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public Builder mergeLoadParams(io.grpc.benchmarks.proto.Control.LoadParams value) { if (loadParamsBuilder_ == null) { @@ -5713,11 +5723,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public Builder clearLoadParams() { if (loadParamsBuilder_ == null) { @@ -5731,11 +5741,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public io.grpc.benchmarks.proto.Control.LoadParams.Builder getLoadParamsBuilder() { @@ -5743,11 +5753,11 @@ public final class Control { return getLoadParamsFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ public io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder getLoadParamsOrBuilder() { if (loadParamsBuilder_ != null) { @@ -5758,11 +5768,11 @@ public final class Control { } } /** - * optional .grpc.testing.LoadParams load_params = 10; - * *
        * The requested load for the entire client (aggregated over all the threads).
        * 
+ * + * optional .grpc.testing.LoadParams load_params = 10; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder> @@ -6020,42 +6030,42 @@ public final class Control { } } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public java.util.List getCoreListList() { return java.util.Collections.unmodifiableList(coreList_); } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public int getCoreListCount() { return coreList_.size(); } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public int getCoreList(int index) { return coreList_.get(index); } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public Builder setCoreList( int index, int value) { @@ -6065,11 +6075,11 @@ public final class Control { return this; } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public Builder addCoreList(int value) { ensureCoreListIsMutable(); @@ -6078,11 +6088,11 @@ public final class Control { return this; } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public Builder addAllCoreList( java.lang.Iterable values) { @@ -6093,11 +6103,11 @@ public final class Control { return this; } /** - * repeated int32 core_list = 13; - * *
        * Specify the cores we should run the client on, if desired
        * 
+ * + * repeated int32 core_list = 13; */ public Builder clearCoreList() { coreList_ = java.util.Collections.emptyList(); @@ -6161,16 +6171,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ClientConfig(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -6227,7 +6228,8 @@ public final class Control { } private ClientStatus( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -6260,11 +6262,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -6356,34 +6357,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClientStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -6507,7 +6514,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ClientStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -6662,16 +6669,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ClientStatus(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -6695,20 +6693,20 @@ public final class Control { com.google.protobuf.MessageOrBuilder { /** - * optional bool reset = 1; - * *
      * if true, the stats will be reset after taking their snapshot.
      * 
+ * + * optional bool reset = 1; */ boolean getReset(); } /** - * Protobuf type {@code grpc.testing.Mark} - * *
    * Request current stats
    * 
+ * + * Protobuf type {@code grpc.testing.Mark} */ public static final class Mark extends com.google.protobuf.GeneratedMessage implements @@ -6729,7 +6727,8 @@ public final class Control { } private Mark( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -6754,11 +6753,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -6778,11 +6776,11 @@ public final class Control { public static final int RESET_FIELD_NUMBER = 1; private boolean reset_; /** - * optional bool reset = 1; - * *
      * if true, the stats will be reset after taking their snapshot.
      * 
+ * + * optional bool reset = 1; */ public boolean getReset() { return reset_; @@ -6842,34 +6840,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.Mark parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.Mark parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.Mark parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.Mark parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.Mark parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.Mark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -6891,11 +6895,11 @@ public final class Control { return builder; } /** - * Protobuf type {@code grpc.testing.Mark} - * *
      * Request current stats
      * 
+ * + * Protobuf type {@code grpc.testing.Mark} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -6989,7 +6993,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.Mark) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -7000,21 +7004,21 @@ public final class Control { private boolean reset_ ; /** - * optional bool reset = 1; - * *
        * if true, the stats will be reset after taking their snapshot.
        * 
+ * + * optional bool reset = 1; */ public boolean getReset() { return reset_; } /** - * optional bool reset = 1; - * *
        * if true, the stats will be reset after taking their snapshot.
        * 
+ * + * optional bool reset = 1; */ public Builder setReset(boolean value) { @@ -7023,11 +7027,11 @@ public final class Control { return this; } /** - * optional bool reset = 1; - * *
        * if true, the stats will be reset after taking their snapshot.
        * 
+ * + * optional bool reset = 1; */ public Builder clearReset() { @@ -7065,16 +7069,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Mark(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7138,7 +7133,8 @@ public final class Control { } private ClientArgs( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -7186,11 +7182,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -7214,17 +7209,24 @@ public final class Control { SETUP(1), MARK(2), ARGTYPE_NOT_SET(0); - private int value = 0; + private final int value; private ArgtypeCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ArgtypeCase valueOf(int value) { + return forNumber(value); + } + + public static ArgtypeCase forNumber(int value) { switch (value) { case 1: return SETUP; case 2: return MARK; case 0: return ARGTYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -7234,7 +7236,7 @@ public final class Control { public ArgtypeCase getArgtypeCase() { - return ArgtypeCase.valueOf( + return ArgtypeCase.forNumber( argtypeCase_); } @@ -7339,34 +7341,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClientArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientArgs parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -7506,7 +7514,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ClientArgs) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -7518,7 +7526,7 @@ public final class Control { private java.lang.Object argtype_; public ArgtypeCase getArgtypeCase() { - return ArgtypeCase.valueOf( + return ArgtypeCase.forNumber( argtypeCase_); } @@ -7819,16 +7827,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ClientArgs(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7874,79 +7873,79 @@ public final class Control { io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder(); /** - * optional int32 port = 4; - * *
      * Port on which to listen. Zero means pick unused port.
      * 
+ * + * optional int32 port = 4; */ int getPort(); /** - * optional int32 async_server_threads = 7; - * *
      * Only for async server. Number of threads used to serve the requests.
      * 
+ * + * optional int32 async_server_threads = 7; */ int getAsyncServerThreads(); /** - * optional int32 core_limit = 8; - * *
      * Specify the number of cores to limit server to, if desired
      * 
+ * + * optional int32 core_limit = 8; */ int getCoreLimit(); /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
      * payload config, used in generic server
      * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ boolean hasPayloadConfig(); /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
      * payload config, used in generic server
      * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig(); /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
      * payload config, used in generic server
      * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder(); /** - * repeated int32 core_list = 10; - * *
      * Specify the cores we should run the server on, if desired
      * 
+ * + * repeated int32 core_list = 10; */ java.util.List getCoreListList(); /** - * repeated int32 core_list = 10; - * *
      * Specify the cores we should run the server on, if desired
      * 
+ * + * repeated int32 core_list = 10; */ int getCoreListCount(); /** - * repeated int32 core_list = 10; - * *
      * Specify the cores we should run the server on, if desired
      * 
+ * + * repeated int32 core_list = 10; */ int getCoreList(int index); } @@ -7976,7 +7975,8 @@ public final class Control { } private ServerConfig( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -8064,11 +8064,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { coreList_ = java.util.Collections.unmodifiableList(coreList_); @@ -8101,7 +8100,7 @@ public final class Control { * optional .grpc.testing.ServerType server_type = 1; */ public io.grpc.benchmarks.proto.Control.ServerType getServerType() { - io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.valueOf(serverType_); + io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.forNumber(serverType_); return result == null ? io.grpc.benchmarks.proto.Control.ServerType.UNRECOGNIZED : result; } @@ -8129,11 +8128,11 @@ public final class Control { public static final int PORT_FIELD_NUMBER = 4; private int port_; /** - * optional int32 port = 4; - * *
      * Port on which to listen. Zero means pick unused port.
      * 
+ * + * optional int32 port = 4; */ public int getPort() { return port_; @@ -8142,11 +8141,11 @@ public final class Control { public static final int ASYNC_SERVER_THREADS_FIELD_NUMBER = 7; private int asyncServerThreads_; /** - * optional int32 async_server_threads = 7; - * *
      * Only for async server. Number of threads used to serve the requests.
      * 
+ * + * optional int32 async_server_threads = 7; */ public int getAsyncServerThreads() { return asyncServerThreads_; @@ -8155,11 +8154,11 @@ public final class Control { public static final int CORE_LIMIT_FIELD_NUMBER = 8; private int coreLimit_; /** - * optional int32 core_limit = 8; - * *
      * Specify the number of cores to limit server to, if desired
      * 
+ * + * optional int32 core_limit = 8; */ public int getCoreLimit() { return coreLimit_; @@ -8168,31 +8167,31 @@ public final class Control { public static final int PAYLOAD_CONFIG_FIELD_NUMBER = 9; private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_; /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
      * payload config, used in generic server
      * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public boolean hasPayloadConfig() { return payloadConfig_ != null; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
      * payload config, used in generic server
      * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig() { return payloadConfig_ == null ? io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
      * payload config, used in generic server
      * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder() { return getPayloadConfig(); @@ -8201,32 +8200,32 @@ public final class Control { public static final int CORE_LIST_FIELD_NUMBER = 10; private java.util.List coreList_; /** - * repeated int32 core_list = 10; - * *
      * Specify the cores we should run the server on, if desired
      * 
+ * + * repeated int32 core_list = 10; */ public java.util.List getCoreListList() { return coreList_; } /** - * repeated int32 core_list = 10; - * *
      * Specify the cores we should run the server on, if desired
      * 
+ * + * repeated int32 core_list = 10; */ public int getCoreListCount() { return coreList_.size(); } /** - * repeated int32 core_list = 10; - * *
      * Specify the cores we should run the server on, if desired
      * 
+ * + * repeated int32 core_list = 10; */ public int getCoreList(int index) { return coreList_.get(index); @@ -8344,34 +8343,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ServerConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -8553,7 +8558,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ServerConfig) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -8582,7 +8587,7 @@ public final class Control { * optional .grpc.testing.ServerType server_type = 1; */ public io.grpc.benchmarks.proto.Control.ServerType getServerType() { - io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.valueOf(serverType_); + io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.forNumber(serverType_); return result == null ? io.grpc.benchmarks.proto.Control.ServerType.UNRECOGNIZED : result; } /** @@ -8726,21 +8731,21 @@ public final class Control { private int port_ ; /** - * optional int32 port = 4; - * *
        * Port on which to listen. Zero means pick unused port.
        * 
+ * + * optional int32 port = 4; */ public int getPort() { return port_; } /** - * optional int32 port = 4; - * *
        * Port on which to listen. Zero means pick unused port.
        * 
+ * + * optional int32 port = 4; */ public Builder setPort(int value) { @@ -8749,11 +8754,11 @@ public final class Control { return this; } /** - * optional int32 port = 4; - * *
        * Port on which to listen. Zero means pick unused port.
        * 
+ * + * optional int32 port = 4; */ public Builder clearPort() { @@ -8764,21 +8769,21 @@ public final class Control { private int asyncServerThreads_ ; /** - * optional int32 async_server_threads = 7; - * *
        * Only for async server. Number of threads used to serve the requests.
        * 
+ * + * optional int32 async_server_threads = 7; */ public int getAsyncServerThreads() { return asyncServerThreads_; } /** - * optional int32 async_server_threads = 7; - * *
        * Only for async server. Number of threads used to serve the requests.
        * 
+ * + * optional int32 async_server_threads = 7; */ public Builder setAsyncServerThreads(int value) { @@ -8787,11 +8792,11 @@ public final class Control { return this; } /** - * optional int32 async_server_threads = 7; - * *
        * Only for async server. Number of threads used to serve the requests.
        * 
+ * + * optional int32 async_server_threads = 7; */ public Builder clearAsyncServerThreads() { @@ -8802,21 +8807,21 @@ public final class Control { private int coreLimit_ ; /** - * optional int32 core_limit = 8; - * *
        * Specify the number of cores to limit server to, if desired
        * 
+ * + * optional int32 core_limit = 8; */ public int getCoreLimit() { return coreLimit_; } /** - * optional int32 core_limit = 8; - * *
        * Specify the number of cores to limit server to, if desired
        * 
+ * + * optional int32 core_limit = 8; */ public Builder setCoreLimit(int value) { @@ -8825,11 +8830,11 @@ public final class Control { return this; } /** - * optional int32 core_limit = 8; - * *
        * Specify the number of cores to limit server to, if desired
        * 
+ * + * optional int32 core_limit = 8; */ public Builder clearCoreLimit() { @@ -8842,21 +8847,21 @@ public final class Control { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> payloadConfigBuilder_; /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public boolean hasPayloadConfig() { return payloadConfigBuilder_ != null || payloadConfig_ != null; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig() { if (payloadConfigBuilder_ == null) { @@ -8866,11 +8871,11 @@ public final class Control { } } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public Builder setPayloadConfig(io.grpc.benchmarks.proto.Payloads.PayloadConfig value) { if (payloadConfigBuilder_ == null) { @@ -8886,11 +8891,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public Builder setPayloadConfig( io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder builderForValue) { @@ -8904,11 +8909,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public Builder mergePayloadConfig(io.grpc.benchmarks.proto.Payloads.PayloadConfig value) { if (payloadConfigBuilder_ == null) { @@ -8926,11 +8931,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public Builder clearPayloadConfig() { if (payloadConfigBuilder_ == null) { @@ -8944,11 +8949,11 @@ public final class Control { return this; } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder getPayloadConfigBuilder() { @@ -8956,11 +8961,11 @@ public final class Control { return getPayloadConfigFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ public io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder() { if (payloadConfigBuilder_ != null) { @@ -8971,11 +8976,11 @@ public final class Control { } } /** - * optional .grpc.testing.PayloadConfig payload_config = 9; - * *
        * payload config, used in generic server
        * 
+ * + * optional .grpc.testing.PayloadConfig payload_config = 9; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> @@ -8999,42 +9004,42 @@ public final class Control { } } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public java.util.List getCoreListList() { return java.util.Collections.unmodifiableList(coreList_); } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public int getCoreListCount() { return coreList_.size(); } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public int getCoreList(int index) { return coreList_.get(index); } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public Builder setCoreList( int index, int value) { @@ -9044,11 +9049,11 @@ public final class Control { return this; } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public Builder addCoreList(int value) { ensureCoreListIsMutable(); @@ -9057,11 +9062,11 @@ public final class Control { return this; } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public Builder addAllCoreList( java.lang.Iterable values) { @@ -9072,11 +9077,11 @@ public final class Control { return this; } /** - * repeated int32 core_list = 10; - * *
        * Specify the cores we should run the server on, if desired
        * 
+ * + * repeated int32 core_list = 10; */ public Builder clearCoreList() { coreList_ = java.util.Collections.emptyList(); @@ -9114,16 +9119,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ServerConfig(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -9187,7 +9183,8 @@ public final class Control { } private ServerArgs( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -9235,11 +9232,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -9263,17 +9259,24 @@ public final class Control { SETUP(1), MARK(2), ARGTYPE_NOT_SET(0); - private int value = 0; + private final int value; private ArgtypeCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ArgtypeCase valueOf(int value) { + return forNumber(value); + } + + public static ArgtypeCase forNumber(int value) { switch (value) { case 1: return SETUP; case 2: return MARK; case 0: return ARGTYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -9283,7 +9286,7 @@ public final class Control { public ArgtypeCase getArgtypeCase() { - return ArgtypeCase.valueOf( + return ArgtypeCase.forNumber( argtypeCase_); } @@ -9388,34 +9391,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ServerArgs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerArgs parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -9555,7 +9564,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ServerArgs) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -9567,7 +9576,7 @@ public final class Control { private java.lang.Object argtype_; public ArgtypeCase getArgtypeCase() { - return ArgtypeCase.valueOf( + return ArgtypeCase.forNumber( argtypeCase_); } @@ -9868,16 +9877,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ServerArgs(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -9914,20 +9914,20 @@ public final class Control { io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder getStatsOrBuilder(); /** - * optional int32 port = 2; - * *
      * the port bound by the server
      * 
+ * + * optional int32 port = 2; */ int getPort(); /** - * optional int32 cores = 3; - * *
      * Number of cores available to the server
      * 
+ * + * optional int32 cores = 3; */ int getCores(); } @@ -9954,7 +9954,8 @@ public final class Control { } private ServerStatus( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -9997,11 +9998,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -10042,11 +10042,11 @@ public final class Control { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** - * optional int32 port = 2; - * *
      * the port bound by the server
      * 
+ * + * optional int32 port = 2; */ public int getPort() { return port_; @@ -10055,11 +10055,11 @@ public final class Control { public static final int CORES_FIELD_NUMBER = 3; private int cores_; /** - * optional int32 cores = 3; - * *
      * Number of cores available to the server
      * 
+ * + * optional int32 cores = 3; */ public int getCores() { return cores_; @@ -10133,34 +10133,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ServerStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -10296,7 +10302,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.ServerStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -10424,21 +10430,21 @@ public final class Control { private int port_ ; /** - * optional int32 port = 2; - * *
        * the port bound by the server
        * 
+ * + * optional int32 port = 2; */ public int getPort() { return port_; } /** - * optional int32 port = 2; - * *
        * the port bound by the server
        * 
+ * + * optional int32 port = 2; */ public Builder setPort(int value) { @@ -10447,11 +10453,11 @@ public final class Control { return this; } /** - * optional int32 port = 2; - * *
        * the port bound by the server
        * 
+ * + * optional int32 port = 2; */ public Builder clearPort() { @@ -10462,21 +10468,21 @@ public final class Control { private int cores_ ; /** - * optional int32 cores = 3; - * *
        * Number of cores available to the server
        * 
+ * + * optional int32 cores = 3; */ public int getCores() { return cores_; } /** - * optional int32 cores = 3; - * *
        * Number of cores available to the server
        * 
+ * + * optional int32 cores = 3; */ public Builder setCores(int value) { @@ -10485,11 +10491,11 @@ public final class Control { return this; } /** - * optional int32 cores = 3; - * *
        * Number of cores available to the server
        * 
+ * + * optional int32 cores = 3; */ public Builder clearCores() { @@ -10527,16 +10533,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ServerStatus(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -10580,7 +10577,8 @@ public final class Control { } private CoreRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; @@ -10599,11 +10597,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -10667,34 +10664,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.CoreRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.CoreRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -10804,7 +10807,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.CoreRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -10842,16 +10845,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new CoreRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -10875,11 +10869,11 @@ public final class Control { com.google.protobuf.MessageOrBuilder { /** - * optional int32 cores = 1; - * *
      * Number of cores available on the server
      * 
+ * + * optional int32 cores = 1; */ int getCores(); } @@ -10905,7 +10899,8 @@ public final class Control { } private CoreResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -10930,11 +10925,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -10954,11 +10948,11 @@ public final class Control { public static final int CORES_FIELD_NUMBER = 1; private int cores_; /** - * optional int32 cores = 1; - * *
      * Number of cores available on the server
      * 
+ * + * optional int32 cores = 1; */ public int getCores() { return cores_; @@ -11018,34 +11012,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.CoreResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.CoreResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -11161,7 +11161,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.CoreResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -11172,21 +11172,21 @@ public final class Control { private int cores_ ; /** - * optional int32 cores = 1; - * *
        * Number of cores available on the server
        * 
+ * + * optional int32 cores = 1; */ public int getCores() { return cores_; } /** - * optional int32 cores = 1; - * *
        * Number of cores available on the server
        * 
+ * + * optional int32 cores = 1; */ public Builder setCores(int value) { @@ -11195,11 +11195,11 @@ public final class Control { return this; } /** - * optional int32 cores = 1; - * *
        * Number of cores available on the server
        * 
+ * + * optional int32 cores = 1; */ public Builder clearCores() { @@ -11237,16 +11237,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new CoreResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -11290,7 +11281,8 @@ public final class Control { } private Void( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; @@ -11309,11 +11301,10 @@ public final class Control { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -11377,34 +11368,40 @@ public final class Control { } public static io.grpc.benchmarks.proto.Control.Void parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.Void parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.Void parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.Void parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Control.Void parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Control.Void parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -11514,7 +11511,7 @@ public final class Control { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Control.Void) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -11552,16 +11549,7 @@ public final class Control { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Void(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -11580,89 +11568,89 @@ public final class Control { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_PoissonParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_PoissonParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_UniformParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_UniformParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_DeterministicParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_DeterministicParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ParetoParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ParetoParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ClosedLoopParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_LoadParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_LoadParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SecurityParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SecurityParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ClientConfig_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ClientConfig_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ClientStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ClientStatus_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_Mark_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_Mark_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ClientArgs_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ClientArgs_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ServerConfig_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ServerConfig_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ServerArgs_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ServerArgs_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ServerStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ServerStatus_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_CoreRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_CoreRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_CoreResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_CoreResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_Void_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_Void_fieldAccessorTable; @@ -11670,7 +11658,7 @@ public final class Control { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java index 566664f294..65f7fde714 100644 --- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java @@ -9,76 +9,84 @@ public final class Messages { com.google.protobuf.ExtensionRegistry registry) { } /** - * Protobuf enum {@code grpc.testing.PayloadType} - * *
    * The type of payload that should be returned.
    * 
+ * + * Protobuf enum {@code grpc.testing.PayloadType} */ public enum PayloadType implements com.google.protobuf.ProtocolMessageEnum { /** - * COMPRESSABLE = 0; - * *
      * Compressable text format.
      * 
- */ - COMPRESSABLE(0, 0), - /** - * UNCOMPRESSABLE = 1; * + * COMPRESSABLE = 0; + */ + COMPRESSABLE(0), + /** *
      * Uncompressable binary format.
      * 
- */ - UNCOMPRESSABLE(1, 1), - /** - * RANDOM = 2; * + * UNCOMPRESSABLE = 1; + */ + UNCOMPRESSABLE(1), + /** *
      * Randomly chosen from all other formats defined in this enum.
      * 
+ * + * RANDOM = 2; */ - RANDOM(2, 2), - UNRECOGNIZED(-1, -1), + RANDOM(2), + UNRECOGNIZED(-1), ; /** - * COMPRESSABLE = 0; - * *
      * Compressable text format.
      * 
+ * + * COMPRESSABLE = 0; */ public static final int COMPRESSABLE_VALUE = 0; /** - * UNCOMPRESSABLE = 1; - * *
      * Uncompressable binary format.
      * 
+ * + * UNCOMPRESSABLE = 1; */ public static final int UNCOMPRESSABLE_VALUE = 1; /** - * RANDOM = 2; - * *
      * Randomly chosen from all other formats defined in this enum.
      * 
+ * + * RANDOM = 2; */ public static final int RANDOM_VALUE = 2; public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static PayloadType valueOf(int value) { + return forNumber(value); + } + + public static PayloadType forNumber(int value) { switch (value) { case 0: return COMPRESSABLE; case 1: return UNCOMPRESSABLE; @@ -95,13 +103,13 @@ public final class Messages { PayloadType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PayloadType findValueByNumber(int number) { - return PayloadType.valueOf(number); + return PayloadType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -126,11 +134,9 @@ public final class Messages { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private PayloadType(int index, int value) { - this.index = index; + private PayloadType(int value) { this.value = value; } @@ -138,39 +144,39 @@ public final class Messages { } /** - * Protobuf enum {@code grpc.testing.CompressionType} - * *
    * Compression algorithms
    * 
+ * + * Protobuf enum {@code grpc.testing.CompressionType} */ public enum CompressionType implements com.google.protobuf.ProtocolMessageEnum { /** - * NONE = 0; - * *
      * No compression
      * 
+ * + * NONE = 0; */ - NONE(0, 0), + NONE(0), /** * GZIP = 1; */ - GZIP(1, 1), + GZIP(1), /** * DEFLATE = 2; */ - DEFLATE(2, 2), - UNRECOGNIZED(-1, -1), + DEFLATE(2), + UNRECOGNIZED(-1), ; /** - * NONE = 0; - * *
      * No compression
      * 
+ * + * NONE = 0; */ public static final int NONE_VALUE = 0; /** @@ -184,14 +190,22 @@ public final class Messages { public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CompressionType valueOf(int value) { + return forNumber(value); + } + + public static CompressionType forNumber(int value) { switch (value) { case 0: return NONE; case 1: return GZIP; @@ -208,13 +222,13 @@ public final class Messages { CompressionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompressionType findValueByNumber(int number) { - return CompressionType.valueOf(number); + return CompressionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -239,11 +253,9 @@ public final class Messages { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CompressionType(int index, int value) { - this.index = index; + private CompressionType(int value) { this.value = value; } @@ -255,37 +267,37 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ int getTypeValue(); /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ io.grpc.benchmarks.proto.Messages.PayloadType getType(); /** - * optional bytes body = 2; - * *
      * Primary contents of payload.
      * 
+ * + * optional bytes body = 2; */ com.google.protobuf.ByteString getBody(); } /** - * Protobuf type {@code grpc.testing.Payload} - * *
    * A block of data, to simply increase gRPC message size.
    * 
+ * + * Protobuf type {@code grpc.testing.Payload} */ public static final class Payload extends com.google.protobuf.GeneratedMessage implements @@ -307,7 +319,8 @@ public final class Messages { } private Payload( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -338,11 +351,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -362,35 +374,35 @@ public final class Messages { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public int getTypeValue() { return type_; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadType getType() { - io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(type_); + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(type_); return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; } public static final int BODY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString body_; /** - * optional bytes body = 2; - * *
      * Primary contents of payload.
      * 
+ * + * optional bytes body = 2; */ public com.google.protobuf.ByteString getBody() { return body_; @@ -457,34 +469,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.Payload parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.Payload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.Payload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -506,11 +524,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.Payload} - * *
      * A block of data, to simply increase gRPC message size.
      * 
+ * + * Protobuf type {@code grpc.testing.Payload} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -610,7 +628,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.Payload) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -621,21 +639,21 @@ public final class Messages { private int type_ = 0; /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public int getTypeValue() { return type_; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public Builder setTypeValue(int value) { type_ = value; @@ -643,22 +661,22 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadType getType() { - io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(type_); + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(type_); return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public Builder setType(io.grpc.benchmarks.proto.Messages.PayloadType value) { if (value == null) { @@ -670,11 +688,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public Builder clearType() { @@ -685,21 +703,21 @@ public final class Messages { private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes body = 2; - * *
        * Primary contents of payload.
        * 
+ * + * optional bytes body = 2; */ public com.google.protobuf.ByteString getBody() { return body_; } /** - * optional bytes body = 2; - * *
        * Primary contents of payload.
        * 
+ * + * optional bytes body = 2; */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { @@ -711,11 +729,11 @@ public final class Messages { return this; } /** - * optional bytes body = 2; - * *
        * Primary contents of payload.
        * 
+ * + * optional bytes body = 2; */ public Builder clearBody() { @@ -753,16 +771,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Payload(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -801,12 +810,12 @@ public final class Messages { getMessageBytes(); } /** - * Protobuf type {@code grpc.testing.EchoStatus} - * *
    * A protobuf representation for grpc status. This is used by test
    * clients to specify a status that the server should attempt to return.
    * 
+ * + * Protobuf type {@code grpc.testing.EchoStatus} */ public static final class EchoStatus extends com.google.protobuf.GeneratedMessage implements @@ -828,7 +837,8 @@ public final class Messages { } private EchoStatus( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -859,11 +869,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -983,34 +992,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.EchoStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1032,12 +1047,12 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.EchoStatus} - * *
      * A protobuf representation for grpc status. This is used by test
      * clients to specify a status that the server should attempt to return.
      * 
+ * + * Protobuf type {@code grpc.testing.EchoStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1138,7 +1153,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.EchoStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1271,16 +1286,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new EchoStatus(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1304,125 +1310,125 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ int getResponseTypeValue(); /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ io.grpc.benchmarks.proto.Messages.PayloadType getResponseType(); /** - * optional int32 response_size = 2; - * *
      * Desired payload size in the response from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 response_size = 2; */ int getResponseSize(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.benchmarks.proto.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); /** - * optional bool fill_username = 4; - * *
      * Whether SimpleResponse should include username.
      * 
+ * + * optional bool fill_username = 4; */ boolean getFillUsername(); /** - * optional bool fill_oauth_scope = 5; - * *
      * Whether SimpleResponse should include OAuth scope.
      * 
+ * + * optional bool fill_oauth_scope = 5; */ boolean getFillOauthScope(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ int getResponseCompressionValue(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ boolean hasResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); } /** - * Protobuf type {@code grpc.testing.SimpleRequest} - * *
    * Unary request.
    * 
+ * + * Protobuf type {@code grpc.testing.SimpleRequest} */ public static final class SimpleRequest extends com.google.protobuf.GeneratedMessage implements @@ -1447,7 +1453,8 @@ public final class Messages { } private SimpleRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1520,11 +1527,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1544,38 +1550,38 @@ public final class Messages { public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; private int responseType_; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() { - io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; } public static final int RESPONSE_SIZE_FIELD_NUMBER = 2; private int responseSize_; /** - * optional int32 response_size = 2; - * *
      * Desired payload size in the response from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 response_size = 2; */ public int getResponseSize() { return responseSize_; @@ -1584,31 +1590,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 3; private io.grpc.benchmarks.proto.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -1617,11 +1623,11 @@ public final class Messages { public static final int FILL_USERNAME_FIELD_NUMBER = 4; private boolean fillUsername_; /** - * optional bool fill_username = 4; - * *
      * Whether SimpleResponse should include username.
      * 
+ * + * optional bool fill_username = 4; */ public boolean getFillUsername() { return fillUsername_; @@ -1630,11 +1636,11 @@ public final class Messages { public static final int FILL_OAUTH_SCOPE_FIELD_NUMBER = 5; private boolean fillOauthScope_; /** - * optional bool fill_oauth_scope = 5; - * *
      * Whether SimpleResponse should include OAuth scope.
      * 
+ * + * optional bool fill_oauth_scope = 5; */ public boolean getFillOauthScope() { return fillOauthScope_; @@ -1643,55 +1649,55 @@ public final class Messages { public static final int RESPONSE_COMPRESSION_FIELD_NUMBER = 6; private int responseCompression_; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { - io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; } public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { return responseStatus_ == null ? io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { return getResponseStatus(); @@ -1793,34 +1799,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1842,11 +1854,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.SimpleRequest} - * *
      * Unary request.
      * 
+ * + * Protobuf type {@code grpc.testing.SimpleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1992,7 +2004,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.SimpleRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -2003,23 +2015,23 @@ public final class Messages { private int responseType_ = 0; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseTypeValue(int value) { responseType_ = value; @@ -2027,24 +2039,24 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() { - io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseType(io.grpc.benchmarks.proto.Messages.PayloadType value) { if (value == null) { @@ -2056,12 +2068,12 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder clearResponseType() { @@ -2072,23 +2084,23 @@ public final class Messages { private int responseSize_ ; /** - * optional int32 response_size = 2; - * *
        * Desired payload size in the response from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 response_size = 2; */ public int getResponseSize() { return responseSize_; } /** - * optional int32 response_size = 2; - * *
        * Desired payload size in the response from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 response_size = 2; */ public Builder setResponseSize(int value) { @@ -2097,12 +2109,12 @@ public final class Messages { return this; } /** - * optional int32 response_size = 2; - * *
        * Desired payload size in the response from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 response_size = 2; */ public Builder clearResponseSize() { @@ -2115,21 +2127,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -2139,11 +2151,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -2159,11 +2171,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload( io.grpc.benchmarks.proto.Messages.Payload.Builder builderForValue) { @@ -2177,11 +2189,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder mergePayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -2199,11 +2211,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -2217,11 +2229,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { @@ -2229,11 +2241,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -2244,11 +2256,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> @@ -2266,21 +2278,21 @@ public final class Messages { private boolean fillUsername_ ; /** - * optional bool fill_username = 4; - * *
        * Whether SimpleResponse should include username.
        * 
+ * + * optional bool fill_username = 4; */ public boolean getFillUsername() { return fillUsername_; } /** - * optional bool fill_username = 4; - * *
        * Whether SimpleResponse should include username.
        * 
+ * + * optional bool fill_username = 4; */ public Builder setFillUsername(boolean value) { @@ -2289,11 +2301,11 @@ public final class Messages { return this; } /** - * optional bool fill_username = 4; - * *
        * Whether SimpleResponse should include username.
        * 
+ * + * optional bool fill_username = 4; */ public Builder clearFillUsername() { @@ -2304,21 +2316,21 @@ public final class Messages { private boolean fillOauthScope_ ; /** - * optional bool fill_oauth_scope = 5; - * *
        * Whether SimpleResponse should include OAuth scope.
        * 
+ * + * optional bool fill_oauth_scope = 5; */ public boolean getFillOauthScope() { return fillOauthScope_; } /** - * optional bool fill_oauth_scope = 5; - * *
        * Whether SimpleResponse should include OAuth scope.
        * 
+ * + * optional bool fill_oauth_scope = 5; */ public Builder setFillOauthScope(boolean value) { @@ -2327,11 +2339,11 @@ public final class Messages { return this; } /** - * optional bool fill_oauth_scope = 5; - * *
        * Whether SimpleResponse should include OAuth scope.
        * 
+ * + * optional bool fill_oauth_scope = 5; */ public Builder clearFillOauthScope() { @@ -2342,21 +2354,21 @@ public final class Messages { private int responseCompression_ = 0; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompressionValue(int value) { responseCompression_ = value; @@ -2364,22 +2376,22 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { - io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompression(io.grpc.benchmarks.proto.Messages.CompressionType value) { if (value == null) { @@ -2391,11 +2403,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder clearResponseCompression() { @@ -2408,21 +2420,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> responseStatusBuilder_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatusBuilder_ != null || responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { if (responseStatusBuilder_ == null) { @@ -2432,11 +2444,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -2452,11 +2464,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus( io.grpc.benchmarks.proto.Messages.EchoStatus.Builder builderForValue) { @@ -2470,11 +2482,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder mergeResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -2492,11 +2504,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder clearResponseStatus() { if (responseStatusBuilder_ == null) { @@ -2510,11 +2522,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatus.Builder getResponseStatusBuilder() { @@ -2522,11 +2534,11 @@ public final class Messages { return getResponseStatusFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { if (responseStatusBuilder_ != null) { @@ -2537,11 +2549,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> @@ -2586,16 +2598,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SimpleRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -2619,74 +2622,74 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.benchmarks.proto.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ java.lang.String getUsername(); /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ java.lang.String getOauthScope(); /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ com.google.protobuf.ByteString getOauthScopeBytes(); } /** - * Protobuf type {@code grpc.testing.SimpleResponse} - * *
    * Unary response, as configured by the request.
    * 
+ * + * Protobuf type {@code grpc.testing.SimpleResponse} */ public static final class SimpleResponse extends com.google.protobuf.GeneratedMessage implements @@ -2708,7 +2711,8 @@ public final class Messages { } private SimpleResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -2753,11 +2757,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -2777,31 +2780,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 1; private io.grpc.benchmarks.proto.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -2810,12 +2813,12 @@ public final class Messages { public static final int USERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object username_; /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -2830,12 +2833,12 @@ public final class Messages { } } /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ public com.google.protobuf.ByteString getUsernameBytes() { @@ -2854,11 +2857,11 @@ public final class Messages { public static final int OAUTH_SCOPE_FIELD_NUMBER = 3; private volatile java.lang.Object oauthScope_; /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ public java.lang.String getOauthScope() { java.lang.Object ref = oauthScope_; @@ -2873,11 +2876,11 @@ public final class Messages { } } /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ public com.google.protobuf.ByteString getOauthScopeBytes() { @@ -2959,34 +2962,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -3008,11 +3017,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.SimpleResponse} - * *
      * Unary response, as configured by the request.
      * 
+ * + * Protobuf type {@code grpc.testing.SimpleResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -3128,7 +3137,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.SimpleResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -3141,21 +3150,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -3165,11 +3174,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -3185,11 +3194,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload( io.grpc.benchmarks.proto.Messages.Payload.Builder builderForValue) { @@ -3203,11 +3212,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder mergePayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -3225,11 +3234,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -3243,11 +3252,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { @@ -3255,11 +3264,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -3270,11 +3279,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> @@ -3292,12 +3301,12 @@ public final class Messages { private java.lang.Object username_ = ""; /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -3312,12 +3321,12 @@ public final class Messages { } } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public com.google.protobuf.ByteString getUsernameBytes() { @@ -3333,12 +3342,12 @@ public final class Messages { } } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public Builder setUsername( java.lang.String value) { @@ -3351,12 +3360,12 @@ public final class Messages { return this; } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public Builder clearUsername() { @@ -3365,12 +3374,12 @@ public final class Messages { return this; } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { @@ -3386,11 +3395,11 @@ public final class Messages { private java.lang.Object oauthScope_ = ""; /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public java.lang.String getOauthScope() { java.lang.Object ref = oauthScope_; @@ -3405,11 +3414,11 @@ public final class Messages { } } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public com.google.protobuf.ByteString getOauthScopeBytes() { @@ -3425,11 +3434,11 @@ public final class Messages { } } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public Builder setOauthScope( java.lang.String value) { @@ -3442,11 +3451,11 @@ public final class Messages { return this; } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public Builder clearOauthScope() { @@ -3455,11 +3464,11 @@ public final class Messages { return this; } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public Builder setOauthScopeBytes( com.google.protobuf.ByteString value) { @@ -3502,16 +3511,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SimpleResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -3535,36 +3535,36 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.benchmarks.proto.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); } /** - * Protobuf type {@code grpc.testing.StreamingInputCallRequest} - * *
    * Client-streaming request.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallRequest} */ public static final class StreamingInputCallRequest extends com.google.protobuf.GeneratedMessage implements @@ -3584,7 +3584,8 @@ public final class Messages { } private StreamingInputCallRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -3617,11 +3618,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -3641,31 +3641,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 1; private io.grpc.benchmarks.proto.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -3725,34 +3725,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -3774,11 +3780,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingInputCallRequest} - * *
      * Client-streaming request.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -3880,7 +3886,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -3893,21 +3899,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -3917,11 +3923,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -3937,11 +3943,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload( io.grpc.benchmarks.proto.Messages.Payload.Builder builderForValue) { @@ -3955,11 +3961,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder mergePayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -3977,11 +3983,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -3995,11 +4001,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { @@ -4007,11 +4013,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -4022,11 +4028,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> @@ -4071,16 +4077,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingInputCallRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -4104,20 +4101,20 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional int32 aggregated_payload_size = 1; - * *
      * Aggregated size of payloads received from the client.
      * 
+ * + * optional int32 aggregated_payload_size = 1; */ int getAggregatedPayloadSize(); } /** - * Protobuf type {@code grpc.testing.StreamingInputCallResponse} - * *
    * Client-streaming response.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallResponse} */ public static final class StreamingInputCallResponse extends com.google.protobuf.GeneratedMessage implements @@ -4138,7 +4135,8 @@ public final class Messages { } private StreamingInputCallResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -4163,11 +4161,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -4187,11 +4184,11 @@ public final class Messages { public static final int AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER = 1; private int aggregatedPayloadSize_; /** - * optional int32 aggregated_payload_size = 1; - * *
      * Aggregated size of payloads received from the client.
      * 
+ * + * optional int32 aggregated_payload_size = 1; */ public int getAggregatedPayloadSize() { return aggregatedPayloadSize_; @@ -4251,34 +4248,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -4300,11 +4303,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingInputCallResponse} - * *
      * Client-streaming response.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -4398,7 +4401,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -4409,21 +4412,21 @@ public final class Messages { private int aggregatedPayloadSize_ ; /** - * optional int32 aggregated_payload_size = 1; - * *
        * Aggregated size of payloads received from the client.
        * 
+ * + * optional int32 aggregated_payload_size = 1; */ public int getAggregatedPayloadSize() { return aggregatedPayloadSize_; } /** - * optional int32 aggregated_payload_size = 1; - * *
        * Aggregated size of payloads received from the client.
        * 
+ * + * optional int32 aggregated_payload_size = 1; */ public Builder setAggregatedPayloadSize(int value) { @@ -4432,11 +4435,11 @@ public final class Messages { return this; } /** - * optional int32 aggregated_payload_size = 1; - * *
        * Aggregated size of payloads received from the client.
        * 
+ * + * optional int32 aggregated_payload_size = 1; */ public Builder clearAggregatedPayloadSize() { @@ -4474,16 +4477,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingInputCallResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -4507,31 +4501,31 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional int32 size = 1; - * *
      * Desired payload sizes in responses from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 size = 1; */ int getSize(); /** - * optional int32 interval_us = 2; - * *
      * Desired interval between consecutive responses in the response stream in
      * microseconds.
      * 
+ * + * optional int32 interval_us = 2; */ int getIntervalUs(); } /** - * Protobuf type {@code grpc.testing.ResponseParameters} - * *
    * Configuration for a particular response.
    * 
+ * + * Protobuf type {@code grpc.testing.ResponseParameters} */ public static final class ResponseParameters extends com.google.protobuf.GeneratedMessage implements @@ -4553,7 +4547,8 @@ public final class Messages { } private ResponseParameters( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -4583,11 +4578,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -4607,12 +4601,12 @@ public final class Messages { public static final int SIZE_FIELD_NUMBER = 1; private int size_; /** - * optional int32 size = 1; - * *
      * Desired payload sizes in responses from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 size = 1; */ public int getSize() { return size_; @@ -4621,12 +4615,12 @@ public final class Messages { public static final int INTERVAL_US_FIELD_NUMBER = 2; private int intervalUs_; /** - * optional int32 interval_us = 2; - * *
      * Desired interval between consecutive responses in the response stream in
      * microseconds.
      * 
+ * + * optional int32 interval_us = 2; */ public int getIntervalUs() { return intervalUs_; @@ -4693,34 +4687,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -4742,11 +4742,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.ResponseParameters} - * *
      * Configuration for a particular response.
      * 
+ * + * Protobuf type {@code grpc.testing.ResponseParameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -4846,7 +4846,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.ResponseParameters) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -4857,23 +4857,23 @@ public final class Messages { private int size_ ; /** - * optional int32 size = 1; - * *
        * Desired payload sizes in responses from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 size = 1; */ public int getSize() { return size_; } /** - * optional int32 size = 1; - * *
        * Desired payload sizes in responses from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 size = 1; */ public Builder setSize(int value) { @@ -4882,12 +4882,12 @@ public final class Messages { return this; } /** - * optional int32 size = 1; - * *
        * Desired payload sizes in responses from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 size = 1; */ public Builder clearSize() { @@ -4898,23 +4898,23 @@ public final class Messages { private int intervalUs_ ; /** - * optional int32 interval_us = 2; - * *
        * Desired interval between consecutive responses in the response stream in
        * microseconds.
        * 
+ * + * optional int32 interval_us = 2; */ public int getIntervalUs() { return intervalUs_; } /** - * optional int32 interval_us = 2; - * *
        * Desired interval between consecutive responses in the response stream in
        * microseconds.
        * 
+ * + * optional int32 interval_us = 2; */ public Builder setIntervalUs(int value) { @@ -4923,12 +4923,12 @@ public final class Messages { return this; } /** - * optional int32 interval_us = 2; - * *
        * Desired interval between consecutive responses in the response stream in
        * microseconds.
        * 
+ * + * optional int32 interval_us = 2; */ public Builder clearIntervalUs() { @@ -4966,16 +4966,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ResponseParameters(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -4999,145 +4990,145 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ int getResponseTypeValue(); /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ io.grpc.benchmarks.proto.Messages.PayloadType getResponseType(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ java.util.List getResponseParametersList(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ io.grpc.benchmarks.proto.Messages.ResponseParameters getResponseParameters(int index); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ int getResponseParametersCount(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ java.util.List getResponseParametersOrBuilderList(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( int index); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.benchmarks.proto.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ int getResponseCompressionValue(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ boolean hasResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} - * *
    * Server-streaming request.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} */ public static final class StreamingOutputCallRequest extends com.google.protobuf.GeneratedMessage implements @@ -5160,7 +5151,8 @@ public final class Messages { } private StreamingOutputCallRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -5226,11 +5218,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); @@ -5254,82 +5245,82 @@ public final class Messages { public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; private int responseType_; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() { - io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; } public static final int RESPONSE_PARAMETERS_FIELD_NUMBER = 2; private java.util.List responseParameters_; /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersList() { return responseParameters_; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersOrBuilderList() { return responseParameters_; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public int getResponseParametersCount() { return responseParameters_.size(); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParameters getResponseParameters(int index) { return responseParameters_.get(index); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( int index) { @@ -5339,31 +5330,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 3; private io.grpc.benchmarks.proto.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -5372,55 +5363,55 @@ public final class Messages { public static final int RESPONSE_COMPRESSION_FIELD_NUMBER = 6; private int responseCompression_; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { - io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; } public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { return responseStatus_ == null ? io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { return getResponseStatus(); @@ -5508,34 +5499,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -5557,11 +5554,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} - * *
      * Server-streaming request.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -5734,7 +5731,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -5746,27 +5743,27 @@ public final class Messages { private int responseType_ = 0; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseTypeValue(int value) { responseType_ = value; @@ -5774,28 +5771,28 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() { - io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseType(io.grpc.benchmarks.proto.Messages.PayloadType value) { if (value == null) { @@ -5807,14 +5804,14 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder clearResponseType() { @@ -5836,11 +5833,11 @@ public final class Messages { io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder> responseParametersBuilder_; /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersList() { if (responseParametersBuilder_ == null) { @@ -5850,11 +5847,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public int getResponseParametersCount() { if (responseParametersBuilder_ == null) { @@ -5864,11 +5861,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParameters getResponseParameters(int index) { if (responseParametersBuilder_ == null) { @@ -5878,11 +5875,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder setResponseParameters( int index, io.grpc.benchmarks.proto.Messages.ResponseParameters value) { @@ -5899,11 +5896,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder setResponseParameters( int index, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder builderForValue) { @@ -5917,11 +5914,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters(io.grpc.benchmarks.proto.Messages.ResponseParameters value) { if (responseParametersBuilder_ == null) { @@ -5937,11 +5934,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters( int index, io.grpc.benchmarks.proto.Messages.ResponseParameters value) { @@ -5958,11 +5955,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters( io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder builderForValue) { @@ -5976,11 +5973,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters( int index, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder builderForValue) { @@ -5994,11 +5991,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addAllResponseParameters( java.lang.Iterable values) { @@ -6013,11 +6010,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder clearResponseParameters() { if (responseParametersBuilder_ == null) { @@ -6030,11 +6027,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder removeResponseParameters(int index) { if (responseParametersBuilder_ == null) { @@ -6047,22 +6044,22 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder getResponseParametersBuilder( int index) { return getResponseParametersFieldBuilder().getBuilder(index); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( int index) { @@ -6072,11 +6069,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersOrBuilderList() { @@ -6087,22 +6084,22 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder addResponseParametersBuilder() { return getResponseParametersFieldBuilder().addBuilder( io.grpc.benchmarks.proto.Messages.ResponseParameters.getDefaultInstance()); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder addResponseParametersBuilder( int index) { @@ -6110,11 +6107,11 @@ public final class Messages { index, io.grpc.benchmarks.proto.Messages.ResponseParameters.getDefaultInstance()); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersBuilderList() { @@ -6139,21 +6136,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -6163,11 +6160,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -6183,11 +6180,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload( io.grpc.benchmarks.proto.Messages.Payload.Builder builderForValue) { @@ -6201,11 +6198,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder mergePayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -6223,11 +6220,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -6241,11 +6238,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { @@ -6253,11 +6250,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -6268,11 +6265,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> @@ -6290,21 +6287,21 @@ public final class Messages { private int responseCompression_ = 0; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompressionValue(int value) { responseCompression_ = value; @@ -6312,22 +6309,22 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { - io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompression(io.grpc.benchmarks.proto.Messages.CompressionType value) { if (value == null) { @@ -6339,11 +6336,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder clearResponseCompression() { @@ -6356,21 +6353,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> responseStatusBuilder_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatusBuilder_ != null || responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { if (responseStatusBuilder_ == null) { @@ -6380,11 +6377,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -6400,11 +6397,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus( io.grpc.benchmarks.proto.Messages.EchoStatus.Builder builderForValue) { @@ -6418,11 +6415,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder mergeResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -6440,11 +6437,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder clearResponseStatus() { if (responseStatusBuilder_ == null) { @@ -6458,11 +6455,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatus.Builder getResponseStatusBuilder() { @@ -6470,11 +6467,11 @@ public final class Messages { return getResponseStatusFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { if (responseStatusBuilder_ != null) { @@ -6485,11 +6482,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> @@ -6534,16 +6531,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingOutputCallRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -6567,36 +6555,36 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.benchmarks.proto.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} - * *
    * Server-streaming response, as configured by the request and parameters.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} */ public static final class StreamingOutputCallResponse extends com.google.protobuf.GeneratedMessage implements @@ -6616,7 +6604,8 @@ public final class Messages { } private StreamingOutputCallResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -6649,11 +6638,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -6673,31 +6661,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 1; private io.grpc.benchmarks.proto.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -6757,34 +6745,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -6806,11 +6800,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} - * *
      * Server-streaming response, as configured by the request and parameters.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -6912,7 +6906,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -6925,21 +6919,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -6949,11 +6943,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -6969,11 +6963,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload( io.grpc.benchmarks.proto.Messages.Payload.Builder builderForValue) { @@ -6987,11 +6981,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder mergePayload(io.grpc.benchmarks.proto.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -7009,11 +7003,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -7027,11 +7021,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { @@ -7039,11 +7033,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -7054,11 +7048,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> @@ -7103,16 +7097,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingOutputCallResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7154,13 +7139,13 @@ public final class Messages { int getBackoffMs(int index); } /** - * Protobuf type {@code grpc.testing.ReconnectInfo} - * *
    * For reconnect interop test only.
    * Server tells client whether its reconnects are following the spec and the
    * reconnect backoffs it saw.
    * 
+ * + * Protobuf type {@code grpc.testing.ReconnectInfo} */ public static final class ReconnectInfo extends com.google.protobuf.GeneratedMessage implements @@ -7182,7 +7167,8 @@ public final class Messages { } private ReconnectInfo( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -7228,11 +7214,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { backoffMs_ = java.util.Collections.unmodifiableList(backoffMs_); @@ -7361,34 +7346,40 @@ public final class Messages { } public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -7410,13 +7401,13 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.ReconnectInfo} - * *
      * For reconnect interop test only.
      * Server tells client whether its reconnects are following the spec and the
      * reconnect backoffs it saw.
      * 
+ * + * Protobuf type {@code grpc.testing.ReconnectInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -7530,7 +7521,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Messages.ReconnectInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -7661,16 +7652,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ReconnectInfo(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7689,54 +7671,54 @@ public final class Messages { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_Payload_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_Payload_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_EchoStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_EchoStatus_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SimpleRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SimpleRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SimpleResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SimpleResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingInputCallRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingInputCallResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ResponseParameters_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ResponseParameters_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ReconnectInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable; @@ -7744,7 +7726,7 @@ public final class Messages { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java index 87deeb41b8..e351346bd6 100644 --- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java @@ -45,7 +45,8 @@ public final class Payloads { } private ByteBufferParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -75,11 +76,10 @@ public final class Payloads { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -175,34 +175,40 @@ public final class Payloads { } public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -324,7 +330,7 @@ public final class Payloads { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -414,16 +420,7 @@ public final class Payloads { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ByteBufferParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -479,7 +476,8 @@ public final class Payloads { } private SimpleProtoParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -509,11 +507,10 @@ public final class Payloads { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -609,34 +606,40 @@ public final class Payloads { } public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -758,7 +761,7 @@ public final class Payloads { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -848,16 +851,7 @@ public final class Payloads { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SimpleProtoParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -881,12 +875,12 @@ public final class Payloads { com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code grpc.testing.ComplexProtoParams} - * *
    * TODO (vpai): Fill this in once the details of complex, representative
    *              protos are decided
    * 
+ * + * Protobuf type {@code grpc.testing.ComplexProtoParams} */ public static final class ComplexProtoParams extends com.google.protobuf.GeneratedMessage implements @@ -906,7 +900,8 @@ public final class Payloads { } private ComplexProtoParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; @@ -925,11 +920,10 @@ public final class Payloads { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -993,34 +987,40 @@ public final class Payloads { } public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1042,12 +1042,12 @@ public final class Payloads { return builder; } /** - * Protobuf type {@code grpc.testing.ComplexProtoParams} - * *
      * TODO (vpai): Fill this in once the details of complex, representative
      *              protos are decided
      * 
+ * + * Protobuf type {@code grpc.testing.ComplexProtoParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1135,7 +1135,7 @@ public final class Payloads { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1173,16 +1173,7 @@ public final class Payloads { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ComplexProtoParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1255,7 +1246,8 @@ public final class Payloads { } private PayloadConfig( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1317,11 +1309,10 @@ public final class Payloads { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1346,18 +1337,25 @@ public final class Payloads { SIMPLE_PARAMS(2), COMPLEX_PARAMS(3), PAYLOAD_NOT_SET(0); - private int value = 0; + private final int value; private PayloadCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { switch (value) { case 1: return BYTEBUF_PARAMS; case 2: return SIMPLE_PARAMS; case 3: return COMPLEX_PARAMS; case 0: return PAYLOAD_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -1367,7 +1365,7 @@ public final class Payloads { public PayloadCase getPayloadCase() { - return PayloadCase.valueOf( + return PayloadCase.forNumber( payloadCase_); } @@ -1499,34 +1497,40 @@ public final class Payloads { } public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1677,7 +1681,7 @@ public final class Payloads { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Payloads.PayloadConfig) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1689,7 +1693,7 @@ public final class Payloads { private java.lang.Object payload_; public PayloadCase getPayloadCase() { - return PayloadCase.valueOf( + return PayloadCase.forNumber( payloadCase_); } @@ -2120,16 +2124,7 @@ public final class Payloads { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new PayloadConfig(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -2148,24 +2143,24 @@ public final class Payloads { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ByteBufferParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SimpleProtoParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ComplexProtoParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_PayloadConfig_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_PayloadConfig_fieldAccessorTable; @@ -2173,7 +2168,7 @@ public final class Payloads { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java index 8a9298a98b..6f24cf2c75 100644 --- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java @@ -13,7 +13,7 @@ public final class Services { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java index 98b7324e46..18fd5bf8e3 100644 --- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java @@ -13,30 +13,30 @@ public final class Stats { com.google.protobuf.MessageOrBuilder { /** - * optional double time_elapsed = 1; - * *
      * wall clock time change in seconds since last reset
      * 
+ * + * optional double time_elapsed = 1; */ double getTimeElapsed(); /** - * optional double time_user = 2; - * *
      * change in user time (in seconds) used by the server since last reset
      * 
+ * + * optional double time_user = 2; */ double getTimeUser(); /** - * optional double time_system = 3; - * *
      * change in server time (in seconds) used by the server process and all
      * threads since last reset
      * 
+ * + * optional double time_system = 3; */ double getTimeSystem(); } @@ -64,7 +64,8 @@ public final class Stats { } private ServerStats( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -99,11 +100,10 @@ public final class Stats { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -123,11 +123,11 @@ public final class Stats { public static final int TIME_ELAPSED_FIELD_NUMBER = 1; private double timeElapsed_; /** - * optional double time_elapsed = 1; - * *
      * wall clock time change in seconds since last reset
      * 
+ * + * optional double time_elapsed = 1; */ public double getTimeElapsed() { return timeElapsed_; @@ -136,11 +136,11 @@ public final class Stats { public static final int TIME_USER_FIELD_NUMBER = 2; private double timeUser_; /** - * optional double time_user = 2; - * *
      * change in user time (in seconds) used by the server since last reset
      * 
+ * + * optional double time_user = 2; */ public double getTimeUser() { return timeUser_; @@ -149,12 +149,12 @@ public final class Stats { public static final int TIME_SYSTEM_FIELD_NUMBER = 3; private double timeSystem_; /** - * optional double time_system = 3; - * *
      * change in server time (in seconds) used by the server process and all
      * threads since last reset
      * 
+ * + * optional double time_system = 3; */ public double getTimeSystem() { return timeSystem_; @@ -228,34 +228,40 @@ public final class Stats { } public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -383,7 +389,7 @@ public final class Stats { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Stats.ServerStats) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -394,21 +400,21 @@ public final class Stats { private double timeElapsed_ ; /** - * optional double time_elapsed = 1; - * *
        * wall clock time change in seconds since last reset
        * 
+ * + * optional double time_elapsed = 1; */ public double getTimeElapsed() { return timeElapsed_; } /** - * optional double time_elapsed = 1; - * *
        * wall clock time change in seconds since last reset
        * 
+ * + * optional double time_elapsed = 1; */ public Builder setTimeElapsed(double value) { @@ -417,11 +423,11 @@ public final class Stats { return this; } /** - * optional double time_elapsed = 1; - * *
        * wall clock time change in seconds since last reset
        * 
+ * + * optional double time_elapsed = 1; */ public Builder clearTimeElapsed() { @@ -432,21 +438,21 @@ public final class Stats { private double timeUser_ ; /** - * optional double time_user = 2; - * *
        * change in user time (in seconds) used by the server since last reset
        * 
+ * + * optional double time_user = 2; */ public double getTimeUser() { return timeUser_; } /** - * optional double time_user = 2; - * *
        * change in user time (in seconds) used by the server since last reset
        * 
+ * + * optional double time_user = 2; */ public Builder setTimeUser(double value) { @@ -455,11 +461,11 @@ public final class Stats { return this; } /** - * optional double time_user = 2; - * *
        * change in user time (in seconds) used by the server since last reset
        * 
+ * + * optional double time_user = 2; */ public Builder clearTimeUser() { @@ -470,23 +476,23 @@ public final class Stats { private double timeSystem_ ; /** - * optional double time_system = 3; - * *
        * change in server time (in seconds) used by the server process and all
        * threads since last reset
        * 
+ * + * optional double time_system = 3; */ public double getTimeSystem() { return timeSystem_; } /** - * optional double time_system = 3; - * *
        * change in server time (in seconds) used by the server process and all
        * threads since last reset
        * 
+ * + * optional double time_system = 3; */ public Builder setTimeSystem(double value) { @@ -495,12 +501,12 @@ public final class Stats { return this; } /** - * optional double time_system = 3; - * *
        * change in server time (in seconds) used by the server process and all
        * threads since last reset
        * 
+ * + * optional double time_system = 3; */ public Builder clearTimeSystem() { @@ -538,16 +544,7 @@ public final class Stats { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ServerStats(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -571,29 +568,29 @@ public final class Stats { com.google.protobuf.MessageOrBuilder { /** - * optional double resolution = 1; - * *
      * first bucket is [0, 1 + resolution)
      * 
+ * + * optional double resolution = 1; */ double getResolution(); /** - * optional double max_possible = 2; - * *
      * use enough buckets to allow this value
      * 
+ * + * optional double max_possible = 2; */ double getMaxPossible(); } /** - * Protobuf type {@code grpc.testing.HistogramParams} - * *
    * Histogram params based on grpc/support/histogram.c
    * 
+ * + * Protobuf type {@code grpc.testing.HistogramParams} */ public static final class HistogramParams extends com.google.protobuf.GeneratedMessage implements @@ -615,7 +612,8 @@ public final class Stats { } private HistogramParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -645,11 +643,10 @@ public final class Stats { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -669,11 +666,11 @@ public final class Stats { public static final int RESOLUTION_FIELD_NUMBER = 1; private double resolution_; /** - * optional double resolution = 1; - * *
      * first bucket is [0, 1 + resolution)
      * 
+ * + * optional double resolution = 1; */ public double getResolution() { return resolution_; @@ -682,11 +679,11 @@ public final class Stats { public static final int MAX_POSSIBLE_FIELD_NUMBER = 2; private double maxPossible_; /** - * optional double max_possible = 2; - * *
      * use enough buckets to allow this value
      * 
+ * + * optional double max_possible = 2; */ public double getMaxPossible() { return maxPossible_; @@ -753,34 +750,40 @@ public final class Stats { } public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -802,11 +805,11 @@ public final class Stats { return builder; } /** - * Protobuf type {@code grpc.testing.HistogramParams} - * *
      * Histogram params based on grpc/support/histogram.c
      * 
+ * + * Protobuf type {@code grpc.testing.HistogramParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -906,7 +909,7 @@ public final class Stats { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Stats.HistogramParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -917,21 +920,21 @@ public final class Stats { private double resolution_ ; /** - * optional double resolution = 1; - * *
        * first bucket is [0, 1 + resolution)
        * 
+ * + * optional double resolution = 1; */ public double getResolution() { return resolution_; } /** - * optional double resolution = 1; - * *
        * first bucket is [0, 1 + resolution)
        * 
+ * + * optional double resolution = 1; */ public Builder setResolution(double value) { @@ -940,11 +943,11 @@ public final class Stats { return this; } /** - * optional double resolution = 1; - * *
        * first bucket is [0, 1 + resolution)
        * 
+ * + * optional double resolution = 1; */ public Builder clearResolution() { @@ -955,21 +958,21 @@ public final class Stats { private double maxPossible_ ; /** - * optional double max_possible = 2; - * *
        * use enough buckets to allow this value
        * 
+ * + * optional double max_possible = 2; */ public double getMaxPossible() { return maxPossible_; } /** - * optional double max_possible = 2; - * *
        * use enough buckets to allow this value
        * 
+ * + * optional double max_possible = 2; */ public Builder setMaxPossible(double value) { @@ -978,11 +981,11 @@ public final class Stats { return this; } /** - * optional double max_possible = 2; - * *
        * use enough buckets to allow this value
        * 
+ * + * optional double max_possible = 2; */ public Builder clearMaxPossible() { @@ -1020,16 +1023,7 @@ public final class Stats { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new HistogramParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1091,11 +1085,11 @@ public final class Stats { double getCount(); } /** - * Protobuf type {@code grpc.testing.HistogramData} - * *
    * Histogram data based on grpc/support/histogram.c
    * 
+ * + * Protobuf type {@code grpc.testing.HistogramData} */ public static final class HistogramData extends com.google.protobuf.GeneratedMessage implements @@ -1121,7 +1115,8 @@ public final class Stats { } private HistogramData( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1187,11 +1182,10 @@ public final class Stats { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { bucket_ = java.util.Collections.unmodifiableList(bucket_); @@ -1384,34 +1378,40 @@ public final class Stats { } public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1433,11 +1433,11 @@ public final class Stats { return builder; } /** - * Protobuf type {@code grpc.testing.HistogramData} - * *
      * Histogram data based on grpc/support/histogram.c
      * 
+ * + * Protobuf type {@code grpc.testing.HistogramData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1575,7 +1575,7 @@ public final class Stats { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Stats.HistogramData) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1810,16 +1810,7 @@ public final class Stats { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new HistogramData(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1843,36 +1834,36 @@ public final class Stats { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
      * Latency histogram. Data points are in nanoseconds.
      * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ boolean hasLatencies(); /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
      * Latency histogram. Data points are in nanoseconds.
      * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ io.grpc.benchmarks.proto.Stats.HistogramData getLatencies(); /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
      * Latency histogram. Data points are in nanoseconds.
      * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder(); /** - * optional double time_elapsed = 2; - * *
      * See ServerStats for details.
      * 
+ * + * optional double time_elapsed = 2; */ double getTimeElapsed(); @@ -1910,7 +1901,8 @@ public final class Stats { } private ClientStats( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1958,11 +1950,10 @@ public final class Stats { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1982,31 +1973,31 @@ public final class Stats { public static final int LATENCIES_FIELD_NUMBER = 1; private io.grpc.benchmarks.proto.Stats.HistogramData latencies_; /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
      * Latency histogram. Data points are in nanoseconds.
      * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public boolean hasLatencies() { return latencies_ != null; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
      * Latency histogram. Data points are in nanoseconds.
      * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public io.grpc.benchmarks.proto.Stats.HistogramData getLatencies() { return latencies_ == null ? io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
      * Latency histogram. Data points are in nanoseconds.
      * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder() { return getLatencies(); @@ -2015,11 +2006,11 @@ public final class Stats { public static final int TIME_ELAPSED_FIELD_NUMBER = 2; private double timeElapsed_; /** - * optional double time_elapsed = 2; - * *
      * See ServerStats for details.
      * 
+ * + * optional double time_elapsed = 2; */ public double getTimeElapsed() { return timeElapsed_; @@ -2118,34 +2109,40 @@ public final class Stats { } public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -2287,7 +2284,7 @@ public final class Stats { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.benchmarks.proto.Stats.ClientStats) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -2300,21 +2297,21 @@ public final class Stats { private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> latenciesBuilder_; /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public boolean hasLatencies() { return latenciesBuilder_ != null || latencies_ != null; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public io.grpc.benchmarks.proto.Stats.HistogramData getLatencies() { if (latenciesBuilder_ == null) { @@ -2324,11 +2321,11 @@ public final class Stats { } } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public Builder setLatencies(io.grpc.benchmarks.proto.Stats.HistogramData value) { if (latenciesBuilder_ == null) { @@ -2344,11 +2341,11 @@ public final class Stats { return this; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public Builder setLatencies( io.grpc.benchmarks.proto.Stats.HistogramData.Builder builderForValue) { @@ -2362,11 +2359,11 @@ public final class Stats { return this; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public Builder mergeLatencies(io.grpc.benchmarks.proto.Stats.HistogramData value) { if (latenciesBuilder_ == null) { @@ -2384,11 +2381,11 @@ public final class Stats { return this; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public Builder clearLatencies() { if (latenciesBuilder_ == null) { @@ -2402,11 +2399,11 @@ public final class Stats { return this; } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public io.grpc.benchmarks.proto.Stats.HistogramData.Builder getLatenciesBuilder() { @@ -2414,11 +2411,11 @@ public final class Stats { return getLatenciesFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ public io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder() { if (latenciesBuilder_ != null) { @@ -2429,11 +2426,11 @@ public final class Stats { } } /** - * optional .grpc.testing.HistogramData latencies = 1; - * *
        * Latency histogram. Data points are in nanoseconds.
        * 
+ * + * optional .grpc.testing.HistogramData latencies = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> @@ -2451,21 +2448,21 @@ public final class Stats { private double timeElapsed_ ; /** - * optional double time_elapsed = 2; - * *
        * See ServerStats for details.
        * 
+ * + * optional double time_elapsed = 2; */ public double getTimeElapsed() { return timeElapsed_; } /** - * optional double time_elapsed = 2; - * *
        * See ServerStats for details.
        * 
+ * + * optional double time_elapsed = 2; */ public Builder setTimeElapsed(double value) { @@ -2474,11 +2471,11 @@ public final class Stats { return this; } /** - * optional double time_elapsed = 2; - * *
        * See ServerStats for details.
        * 
+ * + * optional double time_elapsed = 2; */ public Builder clearTimeElapsed() { @@ -2568,16 +2565,7 @@ public final class Stats { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ClientStats(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -2596,24 +2584,24 @@ public final class Stats { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ServerStats_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ServerStats_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_HistogramParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_HistogramParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_HistogramData_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_HistogramData_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ClientStats_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ClientStats_fieldAccessorTable; @@ -2621,7 +2609,7 @@ public final class Stats { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/build.gradle b/build.gradle index 62af69b251..861bb33a2e 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,7 @@ subprojects { javaPluginPath = "$rootDir/compiler/build/exe/java_plugin/$protocPluginBaseName$exeSuffix" guavaVersion = '19.0' - protobufVersion = '3.0.0-beta-2' + protobufVersion = '3.0.0-beta-3' protobufNanoVersion = '3.0.0-alpha-5' configureProtoCompilation = { @@ -123,6 +123,11 @@ subprojects { } } } + + compileJava { + // Protobuf-generated code produces some warnings. + options.compilerArgs = compileJava.options.compilerArgs + ["-Xlint:-deprecation"] + } } def epoll_suffix = ""; diff --git a/buildscripts/jenkins-pre.bat b/buildscripts/jenkins-pre.bat index f0e6785d2b..229b4e4571 100644 --- a/buildscripts/jenkins-pre.bat +++ b/buildscripts/jenkins-pre.bat @@ -13,5 +13,5 @@ cd "%WORKSPACE%" set ESCWORKSPACE=%WORKSPACE:\=\\% echo targetArch=x86_32> gradle.properties -echo vcProtobufLibs=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0-beta-2\\cmake\\build\\Release>> gradle.properties -echo vcProtobufInclude=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0-beta-2\\cmake\\build\\include>> gradle.properties +echo vcProtobufLibs=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0-beta-3\\cmake\\build\\Release>> gradle.properties +echo vcProtobufInclude=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0-beta-3\\cmake\\build\\include>> gradle.properties diff --git a/buildscripts/make_dependencies.bat b/buildscripts/make_dependencies.bat index e907ca9d30..93ff3fc560 100644 --- a/buildscripts/make_dependencies.bat +++ b/buildscripts/make_dependencies.bat @@ -4,7 +4,7 @@ REM 7za is in http://www.7-zip.org/a/7z1507-extra.7z REM Prerequisite: REM 7za.exe in current directory or PATH -set PROTOBUF_VER=3.0.0-beta-2 +set PROTOBUF_VER=3.0.0-beta-3 set CMAKE_NAME=cmake-3.3.2-win32-x86 if not exist "protobuf-%PROTOBUF_VER%\cmake\build\Release\" ( @@ -25,7 +25,7 @@ set PATH=%PATH%;%cd%\%CMAKE_NAME%\bin powershell -command "& { iwr https://github.com/google/protobuf/archive/v%PROTOBUF_VER%.zip -OutFile protobuf.zip }" 7za X protobuf.zip del protobuf.zip -pushd protobuf-3.0.0-beta-2\cmake +pushd protobuf-3.0.0-beta-3\cmake mkdir build cd build cmake -Dprotobuf_BUILD_TESTS=OFF .. diff --git a/compiler/Dockerfile b/compiler/Dockerfile index e25f28568b..a51aaca09a 100644 --- a/compiler/Dockerfile +++ b/compiler/Dockerfile @@ -2,7 +2,7 @@ FROM protoc-artifacts:latest RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \ git fetch && \ - git checkout v3.0.0-beta-2 && \ + git checkout v3.0.0-beta-3 && \ ./autogen.sh && \ CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \ make clean && make -j$(nproc) && make -j$(nproc) install"' diff --git a/compiler/README.md b/compiler/README.md index d09a70be81..2cd1aee0d4 100644 --- a/compiler/README.md +++ b/compiler/README.md @@ -13,7 +13,7 @@ build your own codegen. * Linux, Mac OS X with Clang, or Windows with MSYS2 * Java 7 or up -* [Protobuf](https://github.com/google/protobuf) 3.0.0-beta-2 or up +* [Protobuf](https://github.com/google/protobuf) 3.0.0-beta-3 or up ## Compiling and testing the codegen Change to the `compiler` directory: @@ -37,6 +37,11 @@ To compile a proto file and generate Java interfaces out of the service definiti $ protoc --plugin=protoc-gen-grpc-java=build/binaries/java_pluginExecutable/protoc-gen-grpc-java \ --grpc-java_out="$OUTPUT_FILE" --proto_path="$DIR_OF_PROTO_FILE" "$PROTO_FILE" ``` +To generate Java interfaces with protobuf lite: +``` +$ protoc --plugin=protoc-gen-grpc-java=build/binaries/java_pluginExecutable/protoc-gen-grpc-java \ + --grpc-java_out=lite:"$OUTPUT_FILE" --proto_path="$DIR_OF_PROTO_FILE" "$PROTO_FILE" +``` To generate Java interfaces with protobuf nano: ``` $ protoc --plugin=protoc-gen-grpc-java=build/binaries/java_pluginExecutable/protoc-gen-grpc-java \ diff --git a/compiler/build.gradle b/compiler/build.gradle index c9b7c564e1..e368c3664e 100644 --- a/compiler/build.gradle +++ b/compiler/build.gradle @@ -125,7 +125,11 @@ dependencies { } sourceSets { - testLite {} + testLite { + proto { + setSrcDirs(['src/test/proto']) + } + } testNano { proto { setSrcDirs(['src/test/proto']) @@ -136,7 +140,7 @@ sourceSets { compileTestLiteJava { // Protobuf-generated Lite produces quite a few warnings. options.compilerArgs = compileTestJava.options.compilerArgs + - ["-Xlint:-unchecked", "-Xlint:-rawtypes"] + ["-Xlint:-unchecked", "-Xlint:-rawtypes", "-Xlint:-fallthrough"] } compileTestNanoJava { diff --git a/compiler/src/testLite/proto/test.proto b/compiler/src/testLite/proto/test.proto deleted file mode 100644 index d2a1fd5879..0000000000 --- a/compiler/src/testLite/proto/test.proto +++ /dev/null @@ -1,55 +0,0 @@ -// A simple service definition for testing the protoc plugin. -syntax = "proto2"; - -package grpc.testing; - -option java_package = "io.grpc.testing.integration"; -option optimize_for = LITE_RUNTIME; - -message SimpleRequest { -} - -message SimpleResponse { -} - -message StreamingInputCallRequest { -} - -message StreamingInputCallResponse { -} - -message StreamingOutputCallRequest { -} - -message StreamingOutputCallResponse { -} - -// Test service that supports all call types. -service TestService { - // One request followed by one response. - // The server returns the client payload as-is. - rpc UnaryCall(SimpleRequest) returns (SimpleResponse); - - // One request followed by a sequence of responses (streamed download). - // The server returns the payload with client desired type and sizes. - rpc StreamingOutputCall(StreamingOutputCallRequest) - returns (stream StreamingOutputCallResponse); - - // A sequence of requests followed by one response (streamed upload). - // The server returns the aggregated size of client payload as the result. - rpc StreamingInputCall(stream StreamingInputCallRequest) - returns (StreamingInputCallResponse); - - // A sequence of requests with each request served by the server immediately. - // As one request could lead to multiple responses, this interface - // demonstrates the idea of full bidirectionality. - rpc FullBidiCall(stream StreamingOutputCallRequest) - returns (stream StreamingOutputCallResponse); - - // A sequence of requests followed by a sequence of responses. - // The server buffers all the client requests and then serves them in order. A - // stream of responses are returned to the client when the server starts with - // first request. - rpc HalfBidiCall(stream StreamingOutputCallRequest) - returns (stream StreamingOutputCallResponse); -} diff --git a/examples/android/app/build.gradle b/examples/android/app/build.gradle index dfd7fa5713..ee104afd1d 100644 --- a/examples/android/app/build.gradle +++ b/examples/android/app/build.gradle @@ -27,7 +27,7 @@ android { protobuf { protoc { - artifact = 'com.google.protobuf:protoc:3.0.0-beta-2' + artifact = 'com.google.protobuf:protoc:3.0.0-beta-3' } plugins { grpc { diff --git a/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloReply.java b/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloReply.java index a613ec31af..c45f2639f3 100644 --- a/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloReply.java +++ b/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloReply.java @@ -4,11 +4,11 @@ package io.grpc.examples.helloworld; /** - * Protobuf type {@code helloworld.HelloReply} - * *
  * The response message containing the greetings
  * 
+ * + * Protobuf type {@code helloworld.HelloReply} */ public final class HelloReply extends com.google.protobuf.GeneratedMessage implements @@ -29,7 +29,8 @@ public final class HelloReply extends } private HelloReply( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -55,11 +56,10 @@ public final class HelloReply extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -163,34 +163,40 @@ public final class HelloReply extends } public static io.grpc.examples.helloworld.HelloReply parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.helloworld.HelloReply parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.helloworld.HelloReply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.helloworld.HelloReply parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.helloworld.HelloReply parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.helloworld.HelloReply parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -212,11 +218,11 @@ public final class HelloReply extends return builder; } /** - * Protobuf type {@code helloworld.HelloReply} - * *
    * The response message containing the greetings
    * 
+ * + * Protobuf type {@code helloworld.HelloReply} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -311,7 +317,7 @@ public final class HelloReply extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.helloworld.HelloReply) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -418,16 +424,7 @@ public final class HelloReply extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new HelloReply(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloRequest.java b/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloRequest.java index e96df7c36e..bb5d252a5f 100644 --- a/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloRequest.java +++ b/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloRequest.java @@ -4,11 +4,11 @@ package io.grpc.examples.helloworld; /** - * Protobuf type {@code helloworld.HelloRequest} - * *
  * The request message containing the user's name.
  * 
+ * + * Protobuf type {@code helloworld.HelloRequest} */ public final class HelloRequest extends com.google.protobuf.GeneratedMessage implements @@ -29,7 +29,8 @@ public final class HelloRequest extends } private HelloRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -55,11 +56,10 @@ public final class HelloRequest extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -163,34 +163,40 @@ public final class HelloRequest extends } public static io.grpc.examples.helloworld.HelloRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.helloworld.HelloRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.helloworld.HelloRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.helloworld.HelloRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.helloworld.HelloRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.helloworld.HelloRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -212,11 +218,11 @@ public final class HelloRequest extends return builder; } /** - * Protobuf type {@code helloworld.HelloRequest} - * *
    * The request message containing the user's name.
    * 
+ * + * Protobuf type {@code helloworld.HelloRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -311,7 +317,7 @@ public final class HelloRequest extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.helloworld.HelloRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -418,16 +424,7 @@ public final class HelloRequest extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new HelloRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloWorldProto.java b/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloWorldProto.java index 03e1e6e038..32704fe591 100644 --- a/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloWorldProto.java +++ b/examples/src/generated/main/java/io/grpc/examples/helloworld/HelloWorldProto.java @@ -8,14 +8,14 @@ public final class HelloWorldProto { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_helloworld_HelloRequest_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_helloworld_HelloRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_helloworld_HelloReply_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_helloworld_HelloReply_fieldAccessorTable; @@ -23,7 +23,7 @@ public final class HelloWorldProto { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/Feature.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/Feature.java index be77f97374..9b87e93562 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/Feature.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/Feature.java @@ -4,12 +4,12 @@ package io.grpc.examples.routeguide; /** - * Protobuf type {@code routeguide.Feature} - * *
  * A feature names something at a given point.
  * If a feature could not be named, the name is empty.
  * 
+ * + * Protobuf type {@code routeguide.Feature} */ public final class Feature extends com.google.protobuf.GeneratedMessage implements @@ -30,7 +30,8 @@ public final class Feature extends } private Feature( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -69,11 +70,10 @@ public final class Feature extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -93,11 +93,11 @@ public final class Feature extends public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * optional string name = 1; - * *
    * The name of the feature.
    * 
+ * + * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -112,11 +112,11 @@ public final class Feature extends } } /** - * optional string name = 1; - * *
    * The name of the feature.
    * 
+ * + * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -135,31 +135,31 @@ public final class Feature extends public static final int LOCATION_FIELD_NUMBER = 2; private io.grpc.examples.routeguide.Point location_; /** - * optional .routeguide.Point location = 2; - * *
    * The point where the feature is detected.
    * 
+ * + * optional .routeguide.Point location = 2; */ public boolean hasLocation() { return location_ != null; } /** - * optional .routeguide.Point location = 2; - * *
    * The point where the feature is detected.
    * 
+ * + * optional .routeguide.Point location = 2; */ public io.grpc.examples.routeguide.Point getLocation() { return location_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : location_; } /** - * optional .routeguide.Point location = 2; - * *
    * The point where the feature is detected.
    * 
+ * + * optional .routeguide.Point location = 2; */ public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { return getLocation(); @@ -225,34 +225,40 @@ public final class Feature extends } public static io.grpc.examples.routeguide.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Feature parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Feature parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.Feature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -274,12 +280,12 @@ public final class Feature extends return builder; } /** - * Protobuf type {@code routeguide.Feature} - * *
    * A feature names something at a given point.
    * If a feature could not be named, the name is empty.
    * 
+ * + * Protobuf type {@code routeguide.Feature} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -388,7 +394,7 @@ public final class Feature extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.routeguide.Feature) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -399,11 +405,11 @@ public final class Feature extends private java.lang.Object name_ = ""; /** - * optional string name = 1; - * *
      * The name of the feature.
      * 
+ * + * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -418,11 +424,11 @@ public final class Feature extends } } /** - * optional string name = 1; - * *
      * The name of the feature.
      * 
+ * + * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -438,11 +444,11 @@ public final class Feature extends } } /** - * optional string name = 1; - * *
      * The name of the feature.
      * 
+ * + * optional string name = 1; */ public Builder setName( java.lang.String value) { @@ -455,11 +461,11 @@ public final class Feature extends return this; } /** - * optional string name = 1; - * *
      * The name of the feature.
      * 
+ * + * optional string name = 1; */ public Builder clearName() { @@ -468,11 +474,11 @@ public final class Feature extends return this; } /** - * optional string name = 1; - * *
      * The name of the feature.
      * 
+ * + * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -490,21 +496,21 @@ public final class Feature extends private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> locationBuilder_; /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public io.grpc.examples.routeguide.Point getLocation() { if (locationBuilder_ == null) { @@ -514,11 +520,11 @@ public final class Feature extends } } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public Builder setLocation(io.grpc.examples.routeguide.Point value) { if (locationBuilder_ == null) { @@ -534,11 +540,11 @@ public final class Feature extends return this; } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public Builder setLocation( io.grpc.examples.routeguide.Point.Builder builderForValue) { @@ -552,11 +558,11 @@ public final class Feature extends return this; } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public Builder mergeLocation(io.grpc.examples.routeguide.Point value) { if (locationBuilder_ == null) { @@ -574,11 +580,11 @@ public final class Feature extends return this; } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public Builder clearLocation() { if (locationBuilder_ == null) { @@ -592,11 +598,11 @@ public final class Feature extends return this; } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public io.grpc.examples.routeguide.Point.Builder getLocationBuilder() { @@ -604,11 +610,11 @@ public final class Feature extends return getLocationFieldBuilder().getBuilder(); } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { @@ -619,11 +625,11 @@ public final class Feature extends } } /** - * optional .routeguide.Point location = 2; - * *
      * The point where the feature is detected.
      * 
+ * + * optional .routeguide.Point location = 2; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> @@ -668,16 +674,7 @@ public final class Feature extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Feature(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureDatabase.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureDatabase.java index ae0a536eb3..21259e8950 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureDatabase.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureDatabase.java @@ -4,11 +4,11 @@ package io.grpc.examples.routeguide; /** - * Protobuf type {@code routeguide.FeatureDatabase} - * *
  * Not used in the RPC.  Instead, this is here for the form serialized to disk.
  * 
+ * + * Protobuf type {@code routeguide.FeatureDatabase} */ public final class FeatureDatabase extends com.google.protobuf.GeneratedMessage implements @@ -29,7 +29,8 @@ public final class FeatureDatabase extends } private FeatureDatabase( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -57,11 +58,10 @@ public final class FeatureDatabase extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { feature_ = java.util.Collections.unmodifiableList(feature_); @@ -170,34 +170,40 @@ public final class FeatureDatabase extends } public static io.grpc.examples.routeguide.FeatureDatabase parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.FeatureDatabase parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.FeatureDatabase parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.FeatureDatabase parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.FeatureDatabase parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.FeatureDatabase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -219,11 +225,11 @@ public final class FeatureDatabase extends return builder; } /** - * Protobuf type {@code routeguide.FeatureDatabase} - * *
    * Not used in the RPC.  Instead, this is here for the form serialized to disk.
    * 
+ * + * Protobuf type {@code routeguide.FeatureDatabase} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -354,7 +360,7 @@ public final class FeatureDatabase extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.routeguide.FeatureDatabase) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -633,16 +639,7 @@ public final class FeatureDatabase extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new FeatureDatabase(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureOrBuilder.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureOrBuilder.java index e8fb7264f8..ec173ab741 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureOrBuilder.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/FeatureOrBuilder.java @@ -8,45 +8,45 @@ public interface FeatureOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string name = 1; - * *
    * The name of the feature.
    * 
+ * + * optional string name = 1; */ java.lang.String getName(); /** - * optional string name = 1; - * *
    * The name of the feature.
    * 
+ * + * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** - * optional .routeguide.Point location = 2; - * *
    * The point where the feature is detected.
    * 
+ * + * optional .routeguide.Point location = 2; */ boolean hasLocation(); /** - * optional .routeguide.Point location = 2; - * *
    * The point where the feature is detected.
    * 
+ * + * optional .routeguide.Point location = 2; */ io.grpc.examples.routeguide.Point getLocation(); /** - * optional .routeguide.Point location = 2; - * *
    * The point where the feature is detected.
    * 
+ * + * optional .routeguide.Point location = 2; */ io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder(); } diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/Point.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/Point.java index 49aefc7a2d..2b63046680 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/Point.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/Point.java @@ -4,14 +4,14 @@ package io.grpc.examples.routeguide; /** - * Protobuf type {@code routeguide.Point} - * *
  * Points are represented as latitude-longitude pairs in the E7 representation
  * (degrees multiplied by 10**7 and rounded to the nearest integer).
  * Latitudes should be in the range +/- 90 degrees and longitude should be in
  * the range +/- 180 degrees (inclusive).
  * 
+ * + * Protobuf type {@code routeguide.Point} */ public final class Point extends com.google.protobuf.GeneratedMessage implements @@ -33,7 +33,8 @@ public final class Point extends } private Point( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -63,11 +64,10 @@ public final class Point extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -163,34 +163,40 @@ public final class Point extends } public static io.grpc.examples.routeguide.Point parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Point parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.Point parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Point parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.Point parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Point parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -212,14 +218,14 @@ public final class Point extends return builder; } /** - * Protobuf type {@code routeguide.Point} - * *
    * Points are represented as latitude-longitude pairs in the E7 representation
    * (degrees multiplied by 10**7 and rounded to the nearest integer).
    * Latitudes should be in the range +/- 90 degrees and longitude should be in
    * the range +/- 180 degrees (inclusive).
    * 
+ * + * Protobuf type {@code routeguide.Point} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -319,7 +325,7 @@ public final class Point extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.routeguide.Point) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -409,16 +415,7 @@ public final class Point extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Point(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/Rectangle.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/Rectangle.java index 8268e7f231..f38ed16c15 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/Rectangle.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/Rectangle.java @@ -4,12 +4,12 @@ package io.grpc.examples.routeguide; /** - * Protobuf type {@code routeguide.Rectangle} - * *
  * A latitude-longitude rectangle, represented as two diagonally opposite
  * points "lo" and "hi".
  * 
+ * + * Protobuf type {@code routeguide.Rectangle} */ public final class Rectangle extends com.google.protobuf.GeneratedMessage implements @@ -29,7 +29,8 @@ public final class Rectangle extends } private Rectangle( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -75,11 +76,10 @@ public final class Rectangle extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -99,31 +99,31 @@ public final class Rectangle extends public static final int LO_FIELD_NUMBER = 1; private io.grpc.examples.routeguide.Point lo_; /** - * optional .routeguide.Point lo = 1; - * *
    * One corner of the rectangle.
    * 
+ * + * optional .routeguide.Point lo = 1; */ public boolean hasLo() { return lo_ != null; } /** - * optional .routeguide.Point lo = 1; - * *
    * One corner of the rectangle.
    * 
+ * + * optional .routeguide.Point lo = 1; */ public io.grpc.examples.routeguide.Point getLo() { return lo_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : lo_; } /** - * optional .routeguide.Point lo = 1; - * *
    * One corner of the rectangle.
    * 
+ * + * optional .routeguide.Point lo = 1; */ public io.grpc.examples.routeguide.PointOrBuilder getLoOrBuilder() { return getLo(); @@ -132,31 +132,31 @@ public final class Rectangle extends public static final int HI_FIELD_NUMBER = 2; private io.grpc.examples.routeguide.Point hi_; /** - * optional .routeguide.Point hi = 2; - * *
    * The other corner of the rectangle.
    * 
+ * + * optional .routeguide.Point hi = 2; */ public boolean hasHi() { return hi_ != null; } /** - * optional .routeguide.Point hi = 2; - * *
    * The other corner of the rectangle.
    * 
+ * + * optional .routeguide.Point hi = 2; */ public io.grpc.examples.routeguide.Point getHi() { return hi_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : hi_; } /** - * optional .routeguide.Point hi = 2; - * *
    * The other corner of the rectangle.
    * 
+ * + * optional .routeguide.Point hi = 2; */ public io.grpc.examples.routeguide.PointOrBuilder getHiOrBuilder() { return getHi(); @@ -223,34 +223,40 @@ public final class Rectangle extends } public static io.grpc.examples.routeguide.Rectangle parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Rectangle parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.Rectangle parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Rectangle parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.Rectangle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.Rectangle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -272,12 +278,12 @@ public final class Rectangle extends return builder; } /** - * Protobuf type {@code routeguide.Rectangle} - * *
    * A latitude-longitude rectangle, represented as two diagonally opposite
    * points "lo" and "hi".
    * 
+ * + * Protobuf type {@code routeguide.Rectangle} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -393,7 +399,7 @@ public final class Rectangle extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.routeguide.Rectangle) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -406,21 +412,21 @@ public final class Rectangle extends private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> loBuilder_; /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public boolean hasLo() { return loBuilder_ != null || lo_ != null; } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public io.grpc.examples.routeguide.Point getLo() { if (loBuilder_ == null) { @@ -430,11 +436,11 @@ public final class Rectangle extends } } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public Builder setLo(io.grpc.examples.routeguide.Point value) { if (loBuilder_ == null) { @@ -450,11 +456,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public Builder setLo( io.grpc.examples.routeguide.Point.Builder builderForValue) { @@ -468,11 +474,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public Builder mergeLo(io.grpc.examples.routeguide.Point value) { if (loBuilder_ == null) { @@ -490,11 +496,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public Builder clearLo() { if (loBuilder_ == null) { @@ -508,11 +514,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public io.grpc.examples.routeguide.Point.Builder getLoBuilder() { @@ -520,11 +526,11 @@ public final class Rectangle extends return getLoFieldBuilder().getBuilder(); } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ public io.grpc.examples.routeguide.PointOrBuilder getLoOrBuilder() { if (loBuilder_ != null) { @@ -535,11 +541,11 @@ public final class Rectangle extends } } /** - * optional .routeguide.Point lo = 1; - * *
      * One corner of the rectangle.
      * 
+ * + * optional .routeguide.Point lo = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> @@ -559,21 +565,21 @@ public final class Rectangle extends private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> hiBuilder_; /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public boolean hasHi() { return hiBuilder_ != null || hi_ != null; } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public io.grpc.examples.routeguide.Point getHi() { if (hiBuilder_ == null) { @@ -583,11 +589,11 @@ public final class Rectangle extends } } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public Builder setHi(io.grpc.examples.routeguide.Point value) { if (hiBuilder_ == null) { @@ -603,11 +609,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public Builder setHi( io.grpc.examples.routeguide.Point.Builder builderForValue) { @@ -621,11 +627,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public Builder mergeHi(io.grpc.examples.routeguide.Point value) { if (hiBuilder_ == null) { @@ -643,11 +649,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public Builder clearHi() { if (hiBuilder_ == null) { @@ -661,11 +667,11 @@ public final class Rectangle extends return this; } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public io.grpc.examples.routeguide.Point.Builder getHiBuilder() { @@ -673,11 +679,11 @@ public final class Rectangle extends return getHiFieldBuilder().getBuilder(); } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ public io.grpc.examples.routeguide.PointOrBuilder getHiOrBuilder() { if (hiBuilder_ != null) { @@ -688,11 +694,11 @@ public final class Rectangle extends } } /** - * optional .routeguide.Point hi = 2; - * *
      * The other corner of the rectangle.
      * 
+ * + * optional .routeguide.Point hi = 2; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> @@ -737,16 +743,7 @@ public final class Rectangle extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Rectangle(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/RectangleOrBuilder.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/RectangleOrBuilder.java index df3961d630..d5b534c99d 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/RectangleOrBuilder.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/RectangleOrBuilder.java @@ -8,52 +8,52 @@ public interface RectangleOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .routeguide.Point lo = 1; - * *
    * One corner of the rectangle.
    * 
+ * + * optional .routeguide.Point lo = 1; */ boolean hasLo(); /** - * optional .routeguide.Point lo = 1; - * *
    * One corner of the rectangle.
    * 
+ * + * optional .routeguide.Point lo = 1; */ io.grpc.examples.routeguide.Point getLo(); /** - * optional .routeguide.Point lo = 1; - * *
    * One corner of the rectangle.
    * 
+ * + * optional .routeguide.Point lo = 1; */ io.grpc.examples.routeguide.PointOrBuilder getLoOrBuilder(); /** - * optional .routeguide.Point hi = 2; - * *
    * The other corner of the rectangle.
    * 
+ * + * optional .routeguide.Point hi = 2; */ boolean hasHi(); /** - * optional .routeguide.Point hi = 2; - * *
    * The other corner of the rectangle.
    * 
+ * + * optional .routeguide.Point hi = 2; */ io.grpc.examples.routeguide.Point getHi(); /** - * optional .routeguide.Point hi = 2; - * *
    * The other corner of the rectangle.
    * 
+ * + * optional .routeguide.Point hi = 2; */ io.grpc.examples.routeguide.PointOrBuilder getHiOrBuilder(); } diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteGuideProto.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteGuideProto.java index e751617adb..2510a2ea61 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteGuideProto.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteGuideProto.java @@ -8,34 +8,34 @@ public final class RouteGuideProto { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_routeguide_Point_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_routeguide_Point_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_routeguide_Rectangle_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_routeguide_Rectangle_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_routeguide_Feature_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_routeguide_Feature_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_routeguide_FeatureDatabase_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_routeguide_FeatureDatabase_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_routeguide_RouteNote_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_routeguide_RouteNote_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_routeguide_RouteSummary_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_routeguide_RouteSummary_fieldAccessorTable; @@ -43,7 +43,7 @@ public final class RouteGuideProto { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNote.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNote.java index 1b38c0a5de..c700545520 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNote.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNote.java @@ -4,11 +4,11 @@ package io.grpc.examples.routeguide; /** - * Protobuf type {@code routeguide.RouteNote} - * *
  * A RouteNote is a message sent while at a given point.
  * 
+ * + * Protobuf type {@code routeguide.RouteNote} */ public final class RouteNote extends com.google.protobuf.GeneratedMessage implements @@ -29,7 +29,8 @@ public final class RouteNote extends } private RouteNote( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -68,11 +69,10 @@ public final class RouteNote extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -92,31 +92,31 @@ public final class RouteNote extends public static final int LOCATION_FIELD_NUMBER = 1; private io.grpc.examples.routeguide.Point location_; /** - * optional .routeguide.Point location = 1; - * *
    * The location from which the message is sent.
    * 
+ * + * optional .routeguide.Point location = 1; */ public boolean hasLocation() { return location_ != null; } /** - * optional .routeguide.Point location = 1; - * *
    * The location from which the message is sent.
    * 
+ * + * optional .routeguide.Point location = 1; */ public io.grpc.examples.routeguide.Point getLocation() { return location_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : location_; } /** - * optional .routeguide.Point location = 1; - * *
    * The location from which the message is sent.
    * 
+ * + * optional .routeguide.Point location = 1; */ public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { return getLocation(); @@ -125,11 +125,11 @@ public final class RouteNote extends public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** - * optional string message = 2; - * *
    * The message to be sent.
    * 
+ * + * optional string message = 2; */ public java.lang.String getMessage() { java.lang.Object ref = message_; @@ -144,11 +144,11 @@ public final class RouteNote extends } } /** - * optional string message = 2; - * *
    * The message to be sent.
    * 
+ * + * optional string message = 2; */ public com.google.protobuf.ByteString getMessageBytes() { @@ -224,34 +224,40 @@ public final class RouteNote extends } public static io.grpc.examples.routeguide.RouteNote parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.RouteNote parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.RouteNote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.RouteNote parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.RouteNote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.RouteNote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -273,11 +279,11 @@ public final class RouteNote extends return builder; } /** - * Protobuf type {@code routeguide.RouteNote} - * *
    * A RouteNote is a message sent while at a given point.
    * 
+ * + * Protobuf type {@code routeguide.RouteNote} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -386,7 +392,7 @@ public final class RouteNote extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.routeguide.RouteNote) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -399,21 +405,21 @@ public final class RouteNote extends private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> locationBuilder_; /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public io.grpc.examples.routeguide.Point getLocation() { if (locationBuilder_ == null) { @@ -423,11 +429,11 @@ public final class RouteNote extends } } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public Builder setLocation(io.grpc.examples.routeguide.Point value) { if (locationBuilder_ == null) { @@ -443,11 +449,11 @@ public final class RouteNote extends return this; } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public Builder setLocation( io.grpc.examples.routeguide.Point.Builder builderForValue) { @@ -461,11 +467,11 @@ public final class RouteNote extends return this; } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public Builder mergeLocation(io.grpc.examples.routeguide.Point value) { if (locationBuilder_ == null) { @@ -483,11 +489,11 @@ public final class RouteNote extends return this; } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public Builder clearLocation() { if (locationBuilder_ == null) { @@ -501,11 +507,11 @@ public final class RouteNote extends return this; } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public io.grpc.examples.routeguide.Point.Builder getLocationBuilder() { @@ -513,11 +519,11 @@ public final class RouteNote extends return getLocationFieldBuilder().getBuilder(); } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { @@ -528,11 +534,11 @@ public final class RouteNote extends } } /** - * optional .routeguide.Point location = 1; - * *
      * The location from which the message is sent.
      * 
+ * + * optional .routeguide.Point location = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> @@ -550,11 +556,11 @@ public final class RouteNote extends private java.lang.Object message_ = ""; /** - * optional string message = 2; - * *
      * The message to be sent.
      * 
+ * + * optional string message = 2; */ public java.lang.String getMessage() { java.lang.Object ref = message_; @@ -569,11 +575,11 @@ public final class RouteNote extends } } /** - * optional string message = 2; - * *
      * The message to be sent.
      * 
+ * + * optional string message = 2; */ public com.google.protobuf.ByteString getMessageBytes() { @@ -589,11 +595,11 @@ public final class RouteNote extends } } /** - * optional string message = 2; - * *
      * The message to be sent.
      * 
+ * + * optional string message = 2; */ public Builder setMessage( java.lang.String value) { @@ -606,11 +612,11 @@ public final class RouteNote extends return this; } /** - * optional string message = 2; - * *
      * The message to be sent.
      * 
+ * + * optional string message = 2; */ public Builder clearMessage() { @@ -619,11 +625,11 @@ public final class RouteNote extends return this; } /** - * optional string message = 2; - * *
      * The message to be sent.
      * 
+ * + * optional string message = 2; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { @@ -666,16 +672,7 @@ public final class RouteNote extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new RouteNote(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNoteOrBuilder.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNoteOrBuilder.java index f6b429a048..a7fb97336c 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNoteOrBuilder.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteNoteOrBuilder.java @@ -8,44 +8,44 @@ public interface RouteNoteOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .routeguide.Point location = 1; - * *
    * The location from which the message is sent.
    * 
+ * + * optional .routeguide.Point location = 1; */ boolean hasLocation(); /** - * optional .routeguide.Point location = 1; - * *
    * The location from which the message is sent.
    * 
+ * + * optional .routeguide.Point location = 1; */ io.grpc.examples.routeguide.Point getLocation(); /** - * optional .routeguide.Point location = 1; - * *
    * The location from which the message is sent.
    * 
+ * + * optional .routeguide.Point location = 1; */ io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder(); /** - * optional string message = 2; - * *
    * The message to be sent.
    * 
+ * + * optional string message = 2; */ java.lang.String getMessage(); /** - * optional string message = 2; - * *
    * The message to be sent.
    * 
+ * + * optional string message = 2; */ com.google.protobuf.ByteString getMessageBytes(); diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummary.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummary.java index 0ab163e3ff..3e78aeeabc 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummary.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummary.java @@ -4,14 +4,14 @@ package io.grpc.examples.routeguide; /** - * Protobuf type {@code routeguide.RouteSummary} - * *
  * A RouteSummary is received in response to a RecordRoute rpc.
  * It contains the number of individual points received, the number of
  * detected features, and the total distance covered as the cumulative sum of
  * the distance between each point.
  * 
+ * + * Protobuf type {@code routeguide.RouteSummary} */ public final class RouteSummary extends com.google.protobuf.GeneratedMessage implements @@ -35,7 +35,8 @@ public final class RouteSummary extends } private RouteSummary( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -75,11 +76,10 @@ public final class RouteSummary extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -99,11 +99,11 @@ public final class RouteSummary extends public static final int POINT_COUNT_FIELD_NUMBER = 1; private int pointCount_; /** - * optional int32 point_count = 1; - * *
    * The number of points received.
    * 
+ * + * optional int32 point_count = 1; */ public int getPointCount() { return pointCount_; @@ -112,11 +112,11 @@ public final class RouteSummary extends public static final int FEATURE_COUNT_FIELD_NUMBER = 2; private int featureCount_; /** - * optional int32 feature_count = 2; - * *
    * The number of known features passed while traversing the route.
    * 
+ * + * optional int32 feature_count = 2; */ public int getFeatureCount() { return featureCount_; @@ -125,11 +125,11 @@ public final class RouteSummary extends public static final int DISTANCE_FIELD_NUMBER = 3; private int distance_; /** - * optional int32 distance = 3; - * *
    * The distance covered in metres.
    * 
+ * + * optional int32 distance = 3; */ public int getDistance() { return distance_; @@ -138,11 +138,11 @@ public final class RouteSummary extends public static final int ELAPSED_TIME_FIELD_NUMBER = 4; private int elapsedTime_; /** - * optional int32 elapsed_time = 4; - * *
    * The duration of the traversal in seconds.
    * 
+ * + * optional int32 elapsed_time = 4; */ public int getElapsedTime() { return elapsedTime_; @@ -223,34 +223,40 @@ public final class RouteSummary extends } public static io.grpc.examples.routeguide.RouteSummary parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.RouteSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.RouteSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.RouteSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.examples.routeguide.RouteSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.examples.routeguide.RouteSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -272,14 +278,14 @@ public final class RouteSummary extends return builder; } /** - * Protobuf type {@code routeguide.RouteSummary} - * *
    * A RouteSummary is received in response to a RecordRoute rpc.
    * It contains the number of individual points received, the number of
    * detected features, and the total distance covered as the cumulative sum of
    * the distance between each point.
    * 
+ * + * Protobuf type {@code routeguide.RouteSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -391,7 +397,7 @@ public final class RouteSummary extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.examples.routeguide.RouteSummary) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -402,21 +408,21 @@ public final class RouteSummary extends private int pointCount_ ; /** - * optional int32 point_count = 1; - * *
      * The number of points received.
      * 
+ * + * optional int32 point_count = 1; */ public int getPointCount() { return pointCount_; } /** - * optional int32 point_count = 1; - * *
      * The number of points received.
      * 
+ * + * optional int32 point_count = 1; */ public Builder setPointCount(int value) { @@ -425,11 +431,11 @@ public final class RouteSummary extends return this; } /** - * optional int32 point_count = 1; - * *
      * The number of points received.
      * 
+ * + * optional int32 point_count = 1; */ public Builder clearPointCount() { @@ -440,21 +446,21 @@ public final class RouteSummary extends private int featureCount_ ; /** - * optional int32 feature_count = 2; - * *
      * The number of known features passed while traversing the route.
      * 
+ * + * optional int32 feature_count = 2; */ public int getFeatureCount() { return featureCount_; } /** - * optional int32 feature_count = 2; - * *
      * The number of known features passed while traversing the route.
      * 
+ * + * optional int32 feature_count = 2; */ public Builder setFeatureCount(int value) { @@ -463,11 +469,11 @@ public final class RouteSummary extends return this; } /** - * optional int32 feature_count = 2; - * *
      * The number of known features passed while traversing the route.
      * 
+ * + * optional int32 feature_count = 2; */ public Builder clearFeatureCount() { @@ -478,21 +484,21 @@ public final class RouteSummary extends private int distance_ ; /** - * optional int32 distance = 3; - * *
      * The distance covered in metres.
      * 
+ * + * optional int32 distance = 3; */ public int getDistance() { return distance_; } /** - * optional int32 distance = 3; - * *
      * The distance covered in metres.
      * 
+ * + * optional int32 distance = 3; */ public Builder setDistance(int value) { @@ -501,11 +507,11 @@ public final class RouteSummary extends return this; } /** - * optional int32 distance = 3; - * *
      * The distance covered in metres.
      * 
+ * + * optional int32 distance = 3; */ public Builder clearDistance() { @@ -516,21 +522,21 @@ public final class RouteSummary extends private int elapsedTime_ ; /** - * optional int32 elapsed_time = 4; - * *
      * The duration of the traversal in seconds.
      * 
+ * + * optional int32 elapsed_time = 4; */ public int getElapsedTime() { return elapsedTime_; } /** - * optional int32 elapsed_time = 4; - * *
      * The duration of the traversal in seconds.
      * 
+ * + * optional int32 elapsed_time = 4; */ public Builder setElapsedTime(int value) { @@ -539,11 +545,11 @@ public final class RouteSummary extends return this; } /** - * optional int32 elapsed_time = 4; - * *
      * The duration of the traversal in seconds.
      * 
+ * + * optional int32 elapsed_time = 4; */ public Builder clearElapsedTime() { @@ -581,16 +587,7 @@ public final class RouteSummary extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new RouteSummary(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java index bdffc55d13..a92146a411 100644 --- a/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java +++ b/examples/src/generated/main/java/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java @@ -8,38 +8,38 @@ public interface RouteSummaryOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional int32 point_count = 1; - * *
    * The number of points received.
    * 
+ * + * optional int32 point_count = 1; */ int getPointCount(); /** - * optional int32 feature_count = 2; - * *
    * The number of known features passed while traversing the route.
    * 
+ * + * optional int32 feature_count = 2; */ int getFeatureCount(); /** - * optional int32 distance = 3; - * *
    * The distance covered in metres.
    * 
+ * + * optional int32 distance = 3; */ int getDistance(); /** - * optional int32 elapsed_time = 4; - * *
    * The duration of the traversal in seconds.
    * 
+ * + * optional int32 elapsed_time = 4; */ int getElapsedTime(); } diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java index 6076858395..a733021b19 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java @@ -4,12 +4,12 @@ package io.grpc.grpclb; /** - * Protobuf type {@code grpc.lb.v1.ClientStats} - * *
  * Contains client level statistics that are useful to load balancing. Each
  * count should be reset to zero after reporting the stats.
  * 
+ * + * Protobuf type {@code grpc.lb.v1.ClientStats} */ public final class ClientStats extends com.google.protobuf.GeneratedMessage implements @@ -32,7 +32,8 @@ public final class ClientStats extends } private ClientStats( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -67,11 +68,10 @@ public final class ClientStats extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -91,11 +91,11 @@ public final class ClientStats extends public static final int TOTAL_REQUESTS_FIELD_NUMBER = 1; private long totalRequests_; /** - * optional int64 total_requests = 1; - * *
    * The total number of requests sent by the client since the last report.
    * 
+ * + * optional int64 total_requests = 1; */ public long getTotalRequests() { return totalRequests_; @@ -104,11 +104,11 @@ public final class ClientStats extends public static final int CLIENT_RPC_ERRORS_FIELD_NUMBER = 2; private long clientRpcErrors_; /** - * optional int64 client_rpc_errors = 2; - * *
    * The number of client rpc errors since the last report.
    * 
+ * + * optional int64 client_rpc_errors = 2; */ public long getClientRpcErrors() { return clientRpcErrors_; @@ -117,11 +117,11 @@ public final class ClientStats extends public static final int DROPPED_REQUESTS_FIELD_NUMBER = 3; private long droppedRequests_; /** - * optional int64 dropped_requests = 3; - * *
    * The number of dropped requests since the last report.
    * 
+ * + * optional int64 dropped_requests = 3; */ public long getDroppedRequests() { return droppedRequests_; @@ -195,34 +195,40 @@ public final class ClientStats extends } public static io.grpc.grpclb.ClientStats parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.ClientStats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.ClientStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.ClientStats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.ClientStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.ClientStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -244,12 +250,12 @@ public final class ClientStats extends return builder; } /** - * Protobuf type {@code grpc.lb.v1.ClientStats} - * *
    * Contains client level statistics that are useful to load balancing. Each
    * count should be reset to zero after reporting the stats.
    * 
+ * + * Protobuf type {@code grpc.lb.v1.ClientStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -355,7 +361,7 @@ public final class ClientStats extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.ClientStats) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -366,21 +372,21 @@ public final class ClientStats extends private long totalRequests_ ; /** - * optional int64 total_requests = 1; - * *
      * The total number of requests sent by the client since the last report.
      * 
+ * + * optional int64 total_requests = 1; */ public long getTotalRequests() { return totalRequests_; } /** - * optional int64 total_requests = 1; - * *
      * The total number of requests sent by the client since the last report.
      * 
+ * + * optional int64 total_requests = 1; */ public Builder setTotalRequests(long value) { @@ -389,11 +395,11 @@ public final class ClientStats extends return this; } /** - * optional int64 total_requests = 1; - * *
      * The total number of requests sent by the client since the last report.
      * 
+ * + * optional int64 total_requests = 1; */ public Builder clearTotalRequests() { @@ -404,21 +410,21 @@ public final class ClientStats extends private long clientRpcErrors_ ; /** - * optional int64 client_rpc_errors = 2; - * *
      * The number of client rpc errors since the last report.
      * 
+ * + * optional int64 client_rpc_errors = 2; */ public long getClientRpcErrors() { return clientRpcErrors_; } /** - * optional int64 client_rpc_errors = 2; - * *
      * The number of client rpc errors since the last report.
      * 
+ * + * optional int64 client_rpc_errors = 2; */ public Builder setClientRpcErrors(long value) { @@ -427,11 +433,11 @@ public final class ClientStats extends return this; } /** - * optional int64 client_rpc_errors = 2; - * *
      * The number of client rpc errors since the last report.
      * 
+ * + * optional int64 client_rpc_errors = 2; */ public Builder clearClientRpcErrors() { @@ -442,21 +448,21 @@ public final class ClientStats extends private long droppedRequests_ ; /** - * optional int64 dropped_requests = 3; - * *
      * The number of dropped requests since the last report.
      * 
+ * + * optional int64 dropped_requests = 3; */ public long getDroppedRequests() { return droppedRequests_; } /** - * optional int64 dropped_requests = 3; - * *
      * The number of dropped requests since the last report.
      * 
+ * + * optional int64 dropped_requests = 3; */ public Builder setDroppedRequests(long value) { @@ -465,11 +471,11 @@ public final class ClientStats extends return this; } /** - * optional int64 dropped_requests = 3; - * *
      * The number of dropped requests since the last report.
      * 
+ * + * optional int64 dropped_requests = 3; */ public Builder clearDroppedRequests() { @@ -507,16 +513,7 @@ public final class ClientStats extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ClientStats(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStatsOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStatsOrBuilder.java index 27f0cfdda8..fd194b0bb9 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStatsOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStatsOrBuilder.java @@ -8,29 +8,29 @@ public interface ClientStatsOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional int64 total_requests = 1; - * *
    * The total number of requests sent by the client since the last report.
    * 
+ * + * optional int64 total_requests = 1; */ long getTotalRequests(); /** - * optional int64 client_rpc_errors = 2; - * *
    * The number of client rpc errors since the last report.
    * 
+ * + * optional int64 client_rpc_errors = 2; */ long getClientRpcErrors(); /** - * optional int64 dropped_requests = 3; - * *
    * The number of dropped requests since the last report.
    * 
+ * + * optional int64 dropped_requests = 3; */ long getDroppedRequests(); } diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java index 6208304205..f09a492c52 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java @@ -25,7 +25,8 @@ public final class InitialLoadBalanceRequest extends } private InitialLoadBalanceRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -51,11 +52,10 @@ public final class InitialLoadBalanceRequest extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -75,11 +75,11 @@ public final class InitialLoadBalanceRequest extends public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * optional string name = 1; - * *
    * Name of load balanced service
    * 
+ * + * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -94,11 +94,11 @@ public final class InitialLoadBalanceRequest extends } } /** - * optional string name = 1; - * *
    * Name of load balanced service
    * 
+ * + * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -167,34 +167,40 @@ public final class InitialLoadBalanceRequest extends } public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.InitialLoadBalanceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.InitialLoadBalanceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -311,7 +317,7 @@ public final class InitialLoadBalanceRequest extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.InitialLoadBalanceRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -322,11 +328,11 @@ public final class InitialLoadBalanceRequest extends private java.lang.Object name_ = ""; /** - * optional string name = 1; - * *
      * Name of load balanced service
      * 
+ * + * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -341,11 +347,11 @@ public final class InitialLoadBalanceRequest extends } } /** - * optional string name = 1; - * *
      * Name of load balanced service
      * 
+ * + * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -361,11 +367,11 @@ public final class InitialLoadBalanceRequest extends } } /** - * optional string name = 1; - * *
      * Name of load balanced service
      * 
+ * + * optional string name = 1; */ public Builder setName( java.lang.String value) { @@ -378,11 +384,11 @@ public final class InitialLoadBalanceRequest extends return this; } /** - * optional string name = 1; - * *
      * Name of load balanced service
      * 
+ * + * optional string name = 1; */ public Builder clearName() { @@ -391,11 +397,11 @@ public final class InitialLoadBalanceRequest extends return this; } /** - * optional string name = 1; - * *
      * Name of load balanced service
      * 
+ * + * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -438,16 +444,7 @@ public final class InitialLoadBalanceRequest extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new InitialLoadBalanceRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequestOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequestOrBuilder.java index 95da8de27c..122e698268 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequestOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequestOrBuilder.java @@ -8,19 +8,19 @@ public interface InitialLoadBalanceRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string name = 1; - * *
    * Name of load balanced service
    * 
+ * + * optional string name = 1; */ java.lang.String getName(); /** - * optional string name = 1; - * *
    * Name of load balanced service
    * 
+ * + * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java index c7aa0c83cd..b65fa70508 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java @@ -24,7 +24,8 @@ public final class InitialLoadBalanceResponse extends } private InitialLoadBalanceResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -63,11 +64,10 @@ public final class InitialLoadBalanceResponse extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -90,16 +90,23 @@ public final class InitialLoadBalanceResponse extends implements com.google.protobuf.Internal.EnumLite { LOAD_BALANCER_DELEGATE(2), INITIALRESPONSETYPE_NOT_SET(0); - private int value = 0; + private final int value; private InitialResponseTypeCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static InitialResponseTypeCase valueOf(int value) { + return forNumber(value); + } + + public static InitialResponseTypeCase forNumber(int value) { switch (value) { case 2: return LOAD_BALANCER_DELEGATE; case 0: return INITIALRESPONSETYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -109,20 +116,20 @@ public final class InitialLoadBalanceResponse extends public InitialResponseTypeCase getInitialResponseTypeCase() { - return InitialResponseTypeCase.valueOf( + return InitialResponseTypeCase.forNumber( initialResponseTypeCase_); } public static final int LOAD_BALANCER_DELEGATE_FIELD_NUMBER = 2; /** - * optional string load_balancer_delegate = 2; - * *
    * This is an application layer redirect that indicates the client should
    * use the specified server for load balancing. When this field is set in
    * the response, the client should open a separate connection to the
    * load_balancer_delegate and call the BalanceLoad method.
    * 
+ * + * optional string load_balancer_delegate = 2; */ public java.lang.String getLoadBalancerDelegate() { java.lang.Object ref = ""; @@ -142,14 +149,14 @@ public final class InitialLoadBalanceResponse extends } } /** - * optional string load_balancer_delegate = 2; - * *
    * This is an application layer redirect that indicates the client should
    * use the specified server for load balancing. When this field is set in
    * the response, the client should open a separate connection to the
    * load_balancer_delegate and call the BalanceLoad method.
    * 
+ * + * optional string load_balancer_delegate = 2; */ public com.google.protobuf.ByteString getLoadBalancerDelegateBytes() { @@ -173,37 +180,37 @@ public final class InitialLoadBalanceResponse extends public static final int CLIENT_STATS_REPORT_INTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration clientStatsReportInterval_; /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
    * This interval defines how often the client should send the client stats
    * to the load balancer. Stats should only be reported when the duration is
    * positive.
    * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public boolean hasClientStatsReportInterval() { return clientStatsReportInterval_ != null; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
    * This interval defines how often the client should send the client stats
    * to the load balancer. Stats should only be reported when the duration is
    * positive.
    * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public com.google.protobuf.Duration getClientStatsReportInterval() { return clientStatsReportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clientStatsReportInterval_; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
    * This interval defines how often the client should send the client stats
    * to the load balancer. Stats should only be reported when the duration is
    * positive.
    * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder() { return getClientStatsReportInterval(); @@ -269,34 +276,40 @@ public final class InitialLoadBalanceResponse extends } public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.InitialLoadBalanceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.InitialLoadBalanceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -437,7 +450,7 @@ public final class InitialLoadBalanceResponse extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.InitialLoadBalanceResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -449,7 +462,7 @@ public final class InitialLoadBalanceResponse extends private java.lang.Object initialResponseType_; public InitialResponseTypeCase getInitialResponseTypeCase() { - return InitialResponseTypeCase.valueOf( + return InitialResponseTypeCase.forNumber( initialResponseTypeCase_); } @@ -462,14 +475,14 @@ public final class InitialLoadBalanceResponse extends /** - * optional string load_balancer_delegate = 2; - * *
      * This is an application layer redirect that indicates the client should
      * use the specified server for load balancing. When this field is set in
      * the response, the client should open a separate connection to the
      * load_balancer_delegate and call the BalanceLoad method.
      * 
+ * + * optional string load_balancer_delegate = 2; */ public java.lang.String getLoadBalancerDelegate() { java.lang.Object ref = ""; @@ -489,14 +502,14 @@ public final class InitialLoadBalanceResponse extends } } /** - * optional string load_balancer_delegate = 2; - * *
      * This is an application layer redirect that indicates the client should
      * use the specified server for load balancing. When this field is set in
      * the response, the client should open a separate connection to the
      * load_balancer_delegate and call the BalanceLoad method.
      * 
+ * + * optional string load_balancer_delegate = 2; */ public com.google.protobuf.ByteString getLoadBalancerDelegateBytes() { @@ -517,14 +530,14 @@ public final class InitialLoadBalanceResponse extends } } /** - * optional string load_balancer_delegate = 2; - * *
      * This is an application layer redirect that indicates the client should
      * use the specified server for load balancing. When this field is set in
      * the response, the client should open a separate connection to the
      * load_balancer_delegate and call the BalanceLoad method.
      * 
+ * + * optional string load_balancer_delegate = 2; */ public Builder setLoadBalancerDelegate( java.lang.String value) { @@ -537,14 +550,14 @@ public final class InitialLoadBalanceResponse extends return this; } /** - * optional string load_balancer_delegate = 2; - * *
      * This is an application layer redirect that indicates the client should
      * use the specified server for load balancing. When this field is set in
      * the response, the client should open a separate connection to the
      * load_balancer_delegate and call the BalanceLoad method.
      * 
+ * + * optional string load_balancer_delegate = 2; */ public Builder clearLoadBalancerDelegate() { if (initialResponseTypeCase_ == 2) { @@ -555,14 +568,14 @@ public final class InitialLoadBalanceResponse extends return this; } /** - * optional string load_balancer_delegate = 2; - * *
      * This is an application layer redirect that indicates the client should
      * use the specified server for load balancing. When this field is set in
      * the response, the client should open a separate connection to the
      * load_balancer_delegate and call the BalanceLoad method.
      * 
+ * + * optional string load_balancer_delegate = 2; */ public Builder setLoadBalancerDelegateBytes( com.google.protobuf.ByteString value) { @@ -580,25 +593,25 @@ public final class InitialLoadBalanceResponse extends private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> clientStatsReportIntervalBuilder_; /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public boolean hasClientStatsReportInterval() { return clientStatsReportIntervalBuilder_ != null || clientStatsReportInterval_ != null; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public com.google.protobuf.Duration getClientStatsReportInterval() { if (clientStatsReportIntervalBuilder_ == null) { @@ -608,13 +621,13 @@ public final class InitialLoadBalanceResponse extends } } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public Builder setClientStatsReportInterval(com.google.protobuf.Duration value) { if (clientStatsReportIntervalBuilder_ == null) { @@ -630,13 +643,13 @@ public final class InitialLoadBalanceResponse extends return this; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public Builder setClientStatsReportInterval( com.google.protobuf.Duration.Builder builderForValue) { @@ -650,13 +663,13 @@ public final class InitialLoadBalanceResponse extends return this; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public Builder mergeClientStatsReportInterval(com.google.protobuf.Duration value) { if (clientStatsReportIntervalBuilder_ == null) { @@ -674,13 +687,13 @@ public final class InitialLoadBalanceResponse extends return this; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public Builder clearClientStatsReportInterval() { if (clientStatsReportIntervalBuilder_ == null) { @@ -694,13 +707,13 @@ public final class InitialLoadBalanceResponse extends return this; } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public com.google.protobuf.Duration.Builder getClientStatsReportIntervalBuilder() { @@ -708,13 +721,13 @@ public final class InitialLoadBalanceResponse extends return getClientStatsReportIntervalFieldBuilder().getBuilder(); } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ public com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder() { if (clientStatsReportIntervalBuilder_ != null) { @@ -725,13 +738,13 @@ public final class InitialLoadBalanceResponse extends } } /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
      * This interval defines how often the client should send the client stats
      * to the load balancer. Stats should only be reported when the duration is
      * positive.
      * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -776,16 +789,7 @@ public final class InitialLoadBalanceResponse extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new InitialLoadBalanceResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponseOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponseOrBuilder.java index 77b06c8e96..7b495020b2 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponseOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponseOrBuilder.java @@ -8,57 +8,57 @@ public interface InitialLoadBalanceResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string load_balancer_delegate = 2; - * *
    * This is an application layer redirect that indicates the client should
    * use the specified server for load balancing. When this field is set in
    * the response, the client should open a separate connection to the
    * load_balancer_delegate and call the BalanceLoad method.
    * 
+ * + * optional string load_balancer_delegate = 2; */ java.lang.String getLoadBalancerDelegate(); /** - * optional string load_balancer_delegate = 2; - * *
    * This is an application layer redirect that indicates the client should
    * use the specified server for load balancing. When this field is set in
    * the response, the client should open a separate connection to the
    * load_balancer_delegate and call the BalanceLoad method.
    * 
+ * + * optional string load_balancer_delegate = 2; */ com.google.protobuf.ByteString getLoadBalancerDelegateBytes(); /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
    * This interval defines how often the client should send the client stats
    * to the load balancer. Stats should only be reported when the duration is
    * positive.
    * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ boolean hasClientStatsReportInterval(); /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
    * This interval defines how often the client should send the client stats
    * to the load balancer. Stats should only be reported when the duration is
    * positive.
    * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ com.google.protobuf.Duration getClientStatsReportInterval(); /** - * optional .google.protobuf.Duration client_stats_report_interval = 3; - * *
    * This interval defines how often the client should send the client stats
    * to the load balancer. Stats should only be reported when the duration is
    * positive.
    * 
+ * + * optional .google.protobuf.Duration client_stats_report_interval = 3; */ com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder(); diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java index 60b1c5a6cb..1473a81e46 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java @@ -24,7 +24,8 @@ public final class LoadBalanceRequest extends } private LoadBalanceRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -72,11 +73,10 @@ public final class LoadBalanceRequest extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -100,17 +100,24 @@ public final class LoadBalanceRequest extends INITIAL_REQUEST(1), CLIENT_STATS(2), LOADBALANCEREQUESTTYPE_NOT_SET(0); - private int value = 0; + private final int value; private LoadBalanceRequestTypeCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static LoadBalanceRequestTypeCase valueOf(int value) { + return forNumber(value); + } + + public static LoadBalanceRequestTypeCase forNumber(int value) { switch (value) { case 1: return INITIAL_REQUEST; case 2: return CLIENT_STATS; case 0: return LOADBALANCEREQUESTTYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -120,17 +127,17 @@ public final class LoadBalanceRequest extends public LoadBalanceRequestTypeCase getLoadBalanceRequestTypeCase() { - return LoadBalanceRequestTypeCase.valueOf( + return LoadBalanceRequestTypeCase.forNumber( loadBalanceRequestTypeCase_); } public static final int INITIAL_REQUEST_FIELD_NUMBER = 1; /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
    * This message should be sent on the first request to the load balancer.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public io.grpc.grpclb.InitialLoadBalanceRequest getInitialRequest() { if (loadBalanceRequestTypeCase_ == 1) { @@ -139,11 +146,11 @@ public final class LoadBalanceRequest extends return io.grpc.grpclb.InitialLoadBalanceRequest.getDefaultInstance(); } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
    * This message should be sent on the first request to the load balancer.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder getInitialRequestOrBuilder() { if (loadBalanceRequestTypeCase_ == 1) { @@ -154,12 +161,12 @@ public final class LoadBalanceRequest extends public static final int CLIENT_STATS_FIELD_NUMBER = 2; /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
    * The client stats should be periodically reported to the load balancer
    * based on the duration defined in the InitialLoadBalanceResponse.
    * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public io.grpc.grpclb.ClientStats getClientStats() { if (loadBalanceRequestTypeCase_ == 2) { @@ -168,12 +175,12 @@ public final class LoadBalanceRequest extends return io.grpc.grpclb.ClientStats.getDefaultInstance(); } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
    * The client stats should be periodically reported to the load balancer
    * based on the duration defined in the InitialLoadBalanceResponse.
    * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public io.grpc.grpclb.ClientStatsOrBuilder getClientStatsOrBuilder() { if (loadBalanceRequestTypeCase_ == 2) { @@ -243,34 +250,40 @@ public final class LoadBalanceRequest extends } public static io.grpc.grpclb.LoadBalanceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.LoadBalanceRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.LoadBalanceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.LoadBalanceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.LoadBalanceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.LoadBalanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -410,7 +423,7 @@ public final class LoadBalanceRequest extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.LoadBalanceRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -422,7 +435,7 @@ public final class LoadBalanceRequest extends private java.lang.Object loadBalanceRequestType_; public LoadBalanceRequestTypeCase getLoadBalanceRequestTypeCase() { - return LoadBalanceRequestTypeCase.valueOf( + return LoadBalanceRequestTypeCase.forNumber( loadBalanceRequestTypeCase_); } @@ -437,11 +450,11 @@ public final class LoadBalanceRequest extends private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.InitialLoadBalanceRequest, io.grpc.grpclb.InitialLoadBalanceRequest.Builder, io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder> initialRequestBuilder_; /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public io.grpc.grpclb.InitialLoadBalanceRequest getInitialRequest() { if (initialRequestBuilder_ == null) { @@ -457,11 +470,11 @@ public final class LoadBalanceRequest extends } } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public Builder setInitialRequest(io.grpc.grpclb.InitialLoadBalanceRequest value) { if (initialRequestBuilder_ == null) { @@ -477,11 +490,11 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public Builder setInitialRequest( io.grpc.grpclb.InitialLoadBalanceRequest.Builder builderForValue) { @@ -495,11 +508,11 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public Builder mergeInitialRequest(io.grpc.grpclb.InitialLoadBalanceRequest value) { if (initialRequestBuilder_ == null) { @@ -521,11 +534,11 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public Builder clearInitialRequest() { if (initialRequestBuilder_ == null) { @@ -544,21 +557,21 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public io.grpc.grpclb.InitialLoadBalanceRequest.Builder getInitialRequestBuilder() { return getInitialRequestFieldBuilder().getBuilder(); } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ public io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder getInitialRequestOrBuilder() { if ((loadBalanceRequestTypeCase_ == 1) && (initialRequestBuilder_ != null)) { @@ -571,11 +584,11 @@ public final class LoadBalanceRequest extends } } /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
      * This message should be sent on the first request to the load balancer.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.InitialLoadBalanceRequest, io.grpc.grpclb.InitialLoadBalanceRequest.Builder, io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder> @@ -599,12 +612,12 @@ public final class LoadBalanceRequest extends private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.ClientStats, io.grpc.grpclb.ClientStats.Builder, io.grpc.grpclb.ClientStatsOrBuilder> clientStatsBuilder_; /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public io.grpc.grpclb.ClientStats getClientStats() { if (clientStatsBuilder_ == null) { @@ -620,12 +633,12 @@ public final class LoadBalanceRequest extends } } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public Builder setClientStats(io.grpc.grpclb.ClientStats value) { if (clientStatsBuilder_ == null) { @@ -641,12 +654,12 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public Builder setClientStats( io.grpc.grpclb.ClientStats.Builder builderForValue) { @@ -660,12 +673,12 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public Builder mergeClientStats(io.grpc.grpclb.ClientStats value) { if (clientStatsBuilder_ == null) { @@ -687,12 +700,12 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public Builder clearClientStats() { if (clientStatsBuilder_ == null) { @@ -711,23 +724,23 @@ public final class LoadBalanceRequest extends return this; } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public io.grpc.grpclb.ClientStats.Builder getClientStatsBuilder() { return getClientStatsFieldBuilder().getBuilder(); } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ public io.grpc.grpclb.ClientStatsOrBuilder getClientStatsOrBuilder() { if ((loadBalanceRequestTypeCase_ == 2) && (clientStatsBuilder_ != null)) { @@ -740,12 +753,12 @@ public final class LoadBalanceRequest extends } } /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
      * The client stats should be periodically reported to the load balancer
      * based on the duration defined in the InitialLoadBalanceResponse.
      * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.ClientStats, io.grpc.grpclb.ClientStats.Builder, io.grpc.grpclb.ClientStatsOrBuilder> @@ -795,16 +808,7 @@ public final class LoadBalanceRequest extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new LoadBalanceRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequestOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequestOrBuilder.java index 4a1f99e1a3..2b417dbab9 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequestOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequestOrBuilder.java @@ -8,38 +8,38 @@ public interface LoadBalanceRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
    * This message should be sent on the first request to the load balancer.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ io.grpc.grpclb.InitialLoadBalanceRequest getInitialRequest(); /** - * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; - * *
    * This message should be sent on the first request to the load balancer.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1; */ io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder getInitialRequestOrBuilder(); /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
    * The client stats should be periodically reported to the load balancer
    * based on the duration defined in the InitialLoadBalanceResponse.
    * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ io.grpc.grpclb.ClientStats getClientStats(); /** - * optional .grpc.lb.v1.ClientStats client_stats = 2; - * *
    * The client stats should be periodically reported to the load balancer
    * based on the duration defined in the InitialLoadBalanceResponse.
    * 
+ * + * optional .grpc.lb.v1.ClientStats client_stats = 2; */ io.grpc.grpclb.ClientStatsOrBuilder getClientStatsOrBuilder(); diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java index 0444117b00..422a92209a 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java @@ -24,7 +24,8 @@ public final class LoadBalanceResponse extends } private LoadBalanceResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -72,11 +73,10 @@ public final class LoadBalanceResponse extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -100,17 +100,24 @@ public final class LoadBalanceResponse extends INITIAL_RESPONSE(1), SERVER_LIST(2), LOADBALANCERESPONSETYPE_NOT_SET(0); - private int value = 0; + private final int value; private LoadBalanceResponseTypeCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static LoadBalanceResponseTypeCase valueOf(int value) { + return forNumber(value); + } + + public static LoadBalanceResponseTypeCase forNumber(int value) { switch (value) { case 1: return INITIAL_RESPONSE; case 2: return SERVER_LIST; case 0: return LOADBALANCERESPONSETYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -120,17 +127,17 @@ public final class LoadBalanceResponse extends public LoadBalanceResponseTypeCase getLoadBalanceResponseTypeCase() { - return LoadBalanceResponseTypeCase.valueOf( + return LoadBalanceResponseTypeCase.forNumber( loadBalanceResponseTypeCase_); } public static final int INITIAL_RESPONSE_FIELD_NUMBER = 1; /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
    * This message should be sent on the first response to the client.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public io.grpc.grpclb.InitialLoadBalanceResponse getInitialResponse() { if (loadBalanceResponseTypeCase_ == 1) { @@ -139,11 +146,11 @@ public final class LoadBalanceResponse extends return io.grpc.grpclb.InitialLoadBalanceResponse.getDefaultInstance(); } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
    * This message should be sent on the first response to the client.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder getInitialResponseOrBuilder() { if (loadBalanceResponseTypeCase_ == 1) { @@ -154,12 +161,12 @@ public final class LoadBalanceResponse extends public static final int SERVER_LIST_FIELD_NUMBER = 2; /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
    * Contains the list of servers selected by the load balancer. The client
    * should send requests to these servers in the specified order.
    * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public io.grpc.grpclb.ServerList getServerList() { if (loadBalanceResponseTypeCase_ == 2) { @@ -168,12 +175,12 @@ public final class LoadBalanceResponse extends return io.grpc.grpclb.ServerList.getDefaultInstance(); } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
    * Contains the list of servers selected by the load balancer. The client
    * should send requests to these servers in the specified order.
    * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public io.grpc.grpclb.ServerListOrBuilder getServerListOrBuilder() { if (loadBalanceResponseTypeCase_ == 2) { @@ -243,34 +250,40 @@ public final class LoadBalanceResponse extends } public static io.grpc.grpclb.LoadBalanceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.LoadBalanceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.LoadBalanceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.LoadBalanceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.LoadBalanceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.LoadBalanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -410,7 +423,7 @@ public final class LoadBalanceResponse extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.LoadBalanceResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -422,7 +435,7 @@ public final class LoadBalanceResponse extends private java.lang.Object loadBalanceResponseType_; public LoadBalanceResponseTypeCase getLoadBalanceResponseTypeCase() { - return LoadBalanceResponseTypeCase.valueOf( + return LoadBalanceResponseTypeCase.forNumber( loadBalanceResponseTypeCase_); } @@ -437,11 +450,11 @@ public final class LoadBalanceResponse extends private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.InitialLoadBalanceResponse, io.grpc.grpclb.InitialLoadBalanceResponse.Builder, io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder> initialResponseBuilder_; /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public io.grpc.grpclb.InitialLoadBalanceResponse getInitialResponse() { if (initialResponseBuilder_ == null) { @@ -457,11 +470,11 @@ public final class LoadBalanceResponse extends } } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public Builder setInitialResponse(io.grpc.grpclb.InitialLoadBalanceResponse value) { if (initialResponseBuilder_ == null) { @@ -477,11 +490,11 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public Builder setInitialResponse( io.grpc.grpclb.InitialLoadBalanceResponse.Builder builderForValue) { @@ -495,11 +508,11 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public Builder mergeInitialResponse(io.grpc.grpclb.InitialLoadBalanceResponse value) { if (initialResponseBuilder_ == null) { @@ -521,11 +534,11 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public Builder clearInitialResponse() { if (initialResponseBuilder_ == null) { @@ -544,21 +557,21 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public io.grpc.grpclb.InitialLoadBalanceResponse.Builder getInitialResponseBuilder() { return getInitialResponseFieldBuilder().getBuilder(); } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ public io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder getInitialResponseOrBuilder() { if ((loadBalanceResponseTypeCase_ == 1) && (initialResponseBuilder_ != null)) { @@ -571,11 +584,11 @@ public final class LoadBalanceResponse extends } } /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
      * This message should be sent on the first response to the client.
      * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.InitialLoadBalanceResponse, io.grpc.grpclb.InitialLoadBalanceResponse.Builder, io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder> @@ -599,12 +612,12 @@ public final class LoadBalanceResponse extends private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.ServerList, io.grpc.grpclb.ServerList.Builder, io.grpc.grpclb.ServerListOrBuilder> serverListBuilder_; /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public io.grpc.grpclb.ServerList getServerList() { if (serverListBuilder_ == null) { @@ -620,12 +633,12 @@ public final class LoadBalanceResponse extends } } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public Builder setServerList(io.grpc.grpclb.ServerList value) { if (serverListBuilder_ == null) { @@ -641,12 +654,12 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public Builder setServerList( io.grpc.grpclb.ServerList.Builder builderForValue) { @@ -660,12 +673,12 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public Builder mergeServerList(io.grpc.grpclb.ServerList value) { if (serverListBuilder_ == null) { @@ -687,12 +700,12 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public Builder clearServerList() { if (serverListBuilder_ == null) { @@ -711,23 +724,23 @@ public final class LoadBalanceResponse extends return this; } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public io.grpc.grpclb.ServerList.Builder getServerListBuilder() { return getServerListFieldBuilder().getBuilder(); } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ public io.grpc.grpclb.ServerListOrBuilder getServerListOrBuilder() { if ((loadBalanceResponseTypeCase_ == 2) && (serverListBuilder_ != null)) { @@ -740,12 +753,12 @@ public final class LoadBalanceResponse extends } } /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
      * Contains the list of servers selected by the load balancer. The client
      * should send requests to these servers in the specified order.
      * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.grpclb.ServerList, io.grpc.grpclb.ServerList.Builder, io.grpc.grpclb.ServerListOrBuilder> @@ -795,16 +808,7 @@ public final class LoadBalanceResponse extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new LoadBalanceResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponseOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponseOrBuilder.java index 463cb3d8ff..18a76536eb 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponseOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponseOrBuilder.java @@ -8,38 +8,38 @@ public interface LoadBalanceResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
    * This message should be sent on the first response to the client.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ io.grpc.grpclb.InitialLoadBalanceResponse getInitialResponse(); /** - * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; - * *
    * This message should be sent on the first response to the client.
    * 
+ * + * optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1; */ io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder getInitialResponseOrBuilder(); /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
    * Contains the list of servers selected by the load balancer. The client
    * should send requests to these servers in the specified order.
    * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ io.grpc.grpclb.ServerList getServerList(); /** - * optional .grpc.lb.v1.ServerList server_list = 2; - * *
    * Contains the list of servers selected by the load balancer. The client
    * should send requests to these servers in the specified order.
    * 
+ * + * optional .grpc.lb.v1.ServerList server_list = 2; */ io.grpc.grpclb.ServerListOrBuilder getServerListOrBuilder(); diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java index 0720a54ad5..0cf679f5a2 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java @@ -8,39 +8,39 @@ public final class LoadBalancerProto { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_LoadBalanceRequest_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_LoadBalanceRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_InitialLoadBalanceRequest_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_InitialLoadBalanceRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_ClientStats_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_LoadBalanceResponse_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_LoadBalanceResponse_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_ServerList_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_ServerList_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_lb_v1_Server_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_lb_v1_Server_fieldAccessorTable; @@ -48,7 +48,7 @@ public final class LoadBalancerProto { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java b/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java index 1eb8826631..8e876d2f14 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java @@ -28,7 +28,8 @@ public final class Server extends } private Server( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -69,11 +70,10 @@ public final class Server extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -93,12 +93,12 @@ public final class Server extends public static final int IP_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ipAddress_; /** - * optional bytes ip_address = 1; - * *
    * A resolved address for the server, serialized in network-byte-order. It may
    * either be an IPv4 or IPv6 address.
    * 
+ * + * optional bytes ip_address = 1; */ public com.google.protobuf.ByteString getIpAddress() { return ipAddress_; @@ -107,11 +107,11 @@ public final class Server extends public static final int PORT_FIELD_NUMBER = 2; private int port_; /** - * optional int32 port = 2; - * *
    * A resolved port number for the server.
    * 
+ * + * optional int32 port = 2; */ public int getPort() { return port_; @@ -120,13 +120,13 @@ public final class Server extends public static final int LOAD_BALANCE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object loadBalanceToken_; /** - * optional string load_balance_token = 3; - * *
    * An opaque token that is passed from the client to the server in metadata.
    * The server may expect this token to indicate that the request from the
    * client was load balanced.
    * 
+ * + * optional string load_balance_token = 3; */ public java.lang.String getLoadBalanceToken() { java.lang.Object ref = loadBalanceToken_; @@ -141,13 +141,13 @@ public final class Server extends } } /** - * optional string load_balance_token = 3; - * *
    * An opaque token that is passed from the client to the server in metadata.
    * The server may expect this token to indicate that the request from the
    * client was load balanced.
    * 
+ * + * optional string load_balance_token = 3; */ public com.google.protobuf.ByteString getLoadBalanceTokenBytes() { @@ -166,12 +166,12 @@ public final class Server extends public static final int DROP_REQUEST_FIELD_NUMBER = 4; private boolean dropRequest_; /** - * optional bool drop_request = 4; - * *
    * Indicates whether this particular request should be dropped by the client
    * when this server is chosen from the list.
    * 
+ * + * optional bool drop_request = 4; */ public boolean getDropRequest() { return dropRequest_; @@ -251,34 +251,40 @@ public final class Server extends } public static io.grpc.grpclb.Server parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.Server parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.Server parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.Server parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.Server parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.Server parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -413,7 +419,7 @@ public final class Server extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.Server) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -424,23 +430,23 @@ public final class Server extends private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes ip_address = 1; - * *
      * A resolved address for the server, serialized in network-byte-order. It may
      * either be an IPv4 or IPv6 address.
      * 
+ * + * optional bytes ip_address = 1; */ public com.google.protobuf.ByteString getIpAddress() { return ipAddress_; } /** - * optional bytes ip_address = 1; - * *
      * A resolved address for the server, serialized in network-byte-order. It may
      * either be an IPv4 or IPv6 address.
      * 
+ * + * optional bytes ip_address = 1; */ public Builder setIpAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -452,12 +458,12 @@ public final class Server extends return this; } /** - * optional bytes ip_address = 1; - * *
      * A resolved address for the server, serialized in network-byte-order. It may
      * either be an IPv4 or IPv6 address.
      * 
+ * + * optional bytes ip_address = 1; */ public Builder clearIpAddress() { @@ -468,21 +474,21 @@ public final class Server extends private int port_ ; /** - * optional int32 port = 2; - * *
      * A resolved port number for the server.
      * 
+ * + * optional int32 port = 2; */ public int getPort() { return port_; } /** - * optional int32 port = 2; - * *
      * A resolved port number for the server.
      * 
+ * + * optional int32 port = 2; */ public Builder setPort(int value) { @@ -491,11 +497,11 @@ public final class Server extends return this; } /** - * optional int32 port = 2; - * *
      * A resolved port number for the server.
      * 
+ * + * optional int32 port = 2; */ public Builder clearPort() { @@ -506,13 +512,13 @@ public final class Server extends private java.lang.Object loadBalanceToken_ = ""; /** - * optional string load_balance_token = 3; - * *
      * An opaque token that is passed from the client to the server in metadata.
      * The server may expect this token to indicate that the request from the
      * client was load balanced.
      * 
+ * + * optional string load_balance_token = 3; */ public java.lang.String getLoadBalanceToken() { java.lang.Object ref = loadBalanceToken_; @@ -527,13 +533,13 @@ public final class Server extends } } /** - * optional string load_balance_token = 3; - * *
      * An opaque token that is passed from the client to the server in metadata.
      * The server may expect this token to indicate that the request from the
      * client was load balanced.
      * 
+ * + * optional string load_balance_token = 3; */ public com.google.protobuf.ByteString getLoadBalanceTokenBytes() { @@ -549,13 +555,13 @@ public final class Server extends } } /** - * optional string load_balance_token = 3; - * *
      * An opaque token that is passed from the client to the server in metadata.
      * The server may expect this token to indicate that the request from the
      * client was load balanced.
      * 
+ * + * optional string load_balance_token = 3; */ public Builder setLoadBalanceToken( java.lang.String value) { @@ -568,13 +574,13 @@ public final class Server extends return this; } /** - * optional string load_balance_token = 3; - * *
      * An opaque token that is passed from the client to the server in metadata.
      * The server may expect this token to indicate that the request from the
      * client was load balanced.
      * 
+ * + * optional string load_balance_token = 3; */ public Builder clearLoadBalanceToken() { @@ -583,13 +589,13 @@ public final class Server extends return this; } /** - * optional string load_balance_token = 3; - * *
      * An opaque token that is passed from the client to the server in metadata.
      * The server may expect this token to indicate that the request from the
      * client was load balanced.
      * 
+ * + * optional string load_balance_token = 3; */ public Builder setLoadBalanceTokenBytes( com.google.protobuf.ByteString value) { @@ -605,23 +611,23 @@ public final class Server extends private boolean dropRequest_ ; /** - * optional bool drop_request = 4; - * *
      * Indicates whether this particular request should be dropped by the client
      * when this server is chosen from the list.
      * 
+ * + * optional bool drop_request = 4; */ public boolean getDropRequest() { return dropRequest_; } /** - * optional bool drop_request = 4; - * *
      * Indicates whether this particular request should be dropped by the client
      * when this server is chosen from the list.
      * 
+ * + * optional bool drop_request = 4; */ public Builder setDropRequest(boolean value) { @@ -630,12 +636,12 @@ public final class Server extends return this; } /** - * optional bool drop_request = 4; - * *
      * Indicates whether this particular request should be dropped by the client
      * when this server is chosen from the list.
      * 
+ * + * optional bool drop_request = 4; */ public Builder clearDropRequest() { @@ -673,16 +679,7 @@ public final class Server extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Server(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java index 9599427d6b..69a66d2720 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java @@ -25,7 +25,8 @@ public final class ServerList extends } private ServerList( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -66,11 +67,10 @@ public final class ServerList extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { servers_ = java.util.Collections.unmodifiableList(servers_); @@ -94,67 +94,67 @@ public final class ServerList extends public static final int SERVERS_FIELD_NUMBER = 1; private java.util.List servers_; /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public java.util.List getServersList() { return servers_; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public java.util.List getServersOrBuilderList() { return servers_; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public int getServersCount() { return servers_.size(); } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.Server getServers(int index) { return servers_.get(index); } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.ServerOrBuilder getServersOrBuilder( int index) { @@ -164,40 +164,40 @@ public final class ServerList extends public static final int EXPIRATION_INTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration expirationInterval_; /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
    * Indicates the amount of time that the client should consider this server
    * list as valid. It may be considered stale after waiting this interval of
    * time after receiving the list. If the interval is not positive, the
    * client can assume the list is valid until the next list is received.
    * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public boolean hasExpirationInterval() { return expirationInterval_ != null; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
    * Indicates the amount of time that the client should consider this server
    * list as valid. It may be considered stale after waiting this interval of
    * time after receiving the list. If the interval is not positive, the
    * client can assume the list is valid until the next list is received.
    * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public com.google.protobuf.Duration getExpirationInterval() { return expirationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expirationInterval_; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
    * Indicates the amount of time that the client should consider this server
    * list as valid. It may be considered stale after waiting this interval of
    * time after receiving the list. If the interval is not positive, the
    * client can assume the list is valid until the next list is received.
    * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public com.google.protobuf.DurationOrBuilder getExpirationIntervalOrBuilder() { return getExpirationInterval(); @@ -264,34 +264,40 @@ public final class ServerList extends } public static io.grpc.grpclb.ServerList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.ServerList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.ServerList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.grpclb.ServerList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.grpclb.ServerList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.grpclb.ServerList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -460,7 +466,7 @@ public final class ServerList extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.grpclb.ServerList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -483,14 +489,14 @@ public final class ServerList extends io.grpc.grpclb.Server, io.grpc.grpclb.Server.Builder, io.grpc.grpclb.ServerOrBuilder> serversBuilder_; /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public java.util.List getServersList() { if (serversBuilder_ == null) { @@ -500,14 +506,14 @@ public final class ServerList extends } } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public int getServersCount() { if (serversBuilder_ == null) { @@ -517,14 +523,14 @@ public final class ServerList extends } } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.Server getServers(int index) { if (serversBuilder_ == null) { @@ -534,14 +540,14 @@ public final class ServerList extends } } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder setServers( int index, io.grpc.grpclb.Server value) { @@ -558,14 +564,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder setServers( int index, io.grpc.grpclb.Server.Builder builderForValue) { @@ -579,14 +585,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder addServers(io.grpc.grpclb.Server value) { if (serversBuilder_ == null) { @@ -602,14 +608,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder addServers( int index, io.grpc.grpclb.Server value) { @@ -626,14 +632,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder addServers( io.grpc.grpclb.Server.Builder builderForValue) { @@ -647,14 +653,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder addServers( int index, io.grpc.grpclb.Server.Builder builderForValue) { @@ -668,14 +674,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder addAllServers( java.lang.Iterable values) { @@ -690,14 +696,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder clearServers() { if (serversBuilder_ == null) { @@ -710,14 +716,14 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public Builder removeServers(int index) { if (serversBuilder_ == null) { @@ -730,28 +736,28 @@ public final class ServerList extends return this; } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.Server.Builder getServersBuilder( int index) { return getServersFieldBuilder().getBuilder(index); } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.ServerOrBuilder getServersOrBuilder( int index) { @@ -761,14 +767,14 @@ public final class ServerList extends } } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public java.util.List getServersOrBuilderList() { @@ -779,28 +785,28 @@ public final class ServerList extends } } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.Server.Builder addServersBuilder() { return getServersFieldBuilder().addBuilder( io.grpc.grpclb.Server.getDefaultInstance()); } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public io.grpc.grpclb.Server.Builder addServersBuilder( int index) { @@ -808,14 +814,14 @@ public final class ServerList extends index, io.grpc.grpclb.Server.getDefaultInstance()); } /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
      * Contains a list of servers selected by the load balancer. The list will
      * be updated when server resolutions change or as needed to balance load
      * across more servers. The client should consume the server list in order
      * unless instructed otherwise via the client_config.
      * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ public java.util.List getServersBuilderList() { @@ -840,27 +846,27 @@ public final class ServerList extends private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expirationIntervalBuilder_; /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public boolean hasExpirationInterval() { return expirationIntervalBuilder_ != null || expirationInterval_ != null; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public com.google.protobuf.Duration getExpirationInterval() { if (expirationIntervalBuilder_ == null) { @@ -870,14 +876,14 @@ public final class ServerList extends } } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public Builder setExpirationInterval(com.google.protobuf.Duration value) { if (expirationIntervalBuilder_ == null) { @@ -893,14 +899,14 @@ public final class ServerList extends return this; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public Builder setExpirationInterval( com.google.protobuf.Duration.Builder builderForValue) { @@ -914,14 +920,14 @@ public final class ServerList extends return this; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public Builder mergeExpirationInterval(com.google.protobuf.Duration value) { if (expirationIntervalBuilder_ == null) { @@ -939,14 +945,14 @@ public final class ServerList extends return this; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public Builder clearExpirationInterval() { if (expirationIntervalBuilder_ == null) { @@ -960,14 +966,14 @@ public final class ServerList extends return this; } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public com.google.protobuf.Duration.Builder getExpirationIntervalBuilder() { @@ -975,14 +981,14 @@ public final class ServerList extends return getExpirationIntervalFieldBuilder().getBuilder(); } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ public com.google.protobuf.DurationOrBuilder getExpirationIntervalOrBuilder() { if (expirationIntervalBuilder_ != null) { @@ -993,14 +999,14 @@ public final class ServerList extends } } /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
      * Indicates the amount of time that the client should consider this server
      * list as valid. It may be considered stale after waiting this interval of
      * time after receiving the list. If the interval is not positive, the
      * client can assume the list is valid until the next list is received.
      * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -1045,16 +1051,7 @@ public final class ServerList extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ServerList(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerListOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerListOrBuilder.java index 8610e101b8..6d12cc842a 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerListOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerListOrBuilder.java @@ -8,95 +8,95 @@ public interface ServerListOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ java.util.List getServersList(); /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ io.grpc.grpclb.Server getServers(int index); /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ int getServersCount(); /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ java.util.List getServersOrBuilderList(); /** - * repeated .grpc.lb.v1.Server servers = 1; - * *
    * Contains a list of servers selected by the load balancer. The list will
    * be updated when server resolutions change or as needed to balance load
    * across more servers. The client should consume the server list in order
    * unless instructed otherwise via the client_config.
    * 
+ * + * repeated .grpc.lb.v1.Server servers = 1; */ io.grpc.grpclb.ServerOrBuilder getServersOrBuilder( int index); /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
    * Indicates the amount of time that the client should consider this server
    * list as valid. It may be considered stale after waiting this interval of
    * time after receiving the list. If the interval is not positive, the
    * client can assume the list is valid until the next list is received.
    * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ boolean hasExpirationInterval(); /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
    * Indicates the amount of time that the client should consider this server
    * list as valid. It may be considered stale after waiting this interval of
    * time after receiving the list. If the interval is not positive, the
    * client can assume the list is valid until the next list is received.
    * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ com.google.protobuf.Duration getExpirationInterval(); /** - * optional .google.protobuf.Duration expiration_interval = 3; - * *
    * Indicates the amount of time that the client should consider this server
    * list as valid. It may be considered stale after waiting this interval of
    * time after receiving the list. If the interval is not positive, the
    * client can assume the list is valid until the next list is received.
    * 
+ * + * optional .google.protobuf.Duration expiration_interval = 3; */ com.google.protobuf.DurationOrBuilder getExpirationIntervalOrBuilder(); } diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerOrBuilder.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerOrBuilder.java index 9918f75f27..d8b76a94af 100644 --- a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerOrBuilder.java +++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerOrBuilder.java @@ -8,53 +8,53 @@ public interface ServerOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes ip_address = 1; - * *
    * A resolved address for the server, serialized in network-byte-order. It may
    * either be an IPv4 or IPv6 address.
    * 
+ * + * optional bytes ip_address = 1; */ com.google.protobuf.ByteString getIpAddress(); /** - * optional int32 port = 2; - * *
    * A resolved port number for the server.
    * 
+ * + * optional int32 port = 2; */ int getPort(); /** - * optional string load_balance_token = 3; - * *
    * An opaque token that is passed from the client to the server in metadata.
    * The server may expect this token to indicate that the request from the
    * client was load balanced.
    * 
+ * + * optional string load_balance_token = 3; */ java.lang.String getLoadBalanceToken(); /** - * optional string load_balance_token = 3; - * *
    * An opaque token that is passed from the client to the server in metadata.
    * The server may expect this token to indicate that the request from the
    * client was load balanced.
    * 
+ * + * optional string load_balance_token = 3; */ com.google.protobuf.ByteString getLoadBalanceTokenBytes(); /** - * optional bool drop_request = 4; - * *
    * Indicates whether this particular request should be dropped by the client
    * when this server is chosen from the list.
    * 
+ * + * optional bool drop_request = 4; */ boolean getDropRequest(); } diff --git a/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java b/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java index e1b0b21da5..02cde0c1d6 100644 --- a/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java +++ b/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java @@ -13,8 +13,6 @@ public final class EmptyProtos { com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code grpc.testing.Empty} - * *
    * An empty message that you can re-use to avoid defining duplicated empty
    * messages in your project. A typical example is to use it as argument or the
@@ -23,6 +21,8 @@ public final class EmptyProtos {
    *     rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
    *   };
    * 
+ * + * Protobuf type {@code grpc.testing.Empty} */ public static final class Empty extends com.google.protobuf.GeneratedMessage implements @@ -42,7 +42,8 @@ public final class EmptyProtos { } private Empty( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -64,11 +65,10 @@ public final class EmptyProtos { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -135,34 +135,40 @@ public final class EmptyProtos { } public static com.google.protobuf.EmptyProtos.Empty parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static com.google.protobuf.EmptyProtos.Empty parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.EmptyProtos.Empty parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.EmptyProtos.Empty parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.EmptyProtos.Empty parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static com.google.protobuf.EmptyProtos.Empty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -184,8 +190,6 @@ public final class EmptyProtos { return builder; } /** - * Protobuf type {@code grpc.testing.Empty} - * *
      * An empty message that you can re-use to avoid defining duplicated empty
      * messages in your project. A typical example is to use it as argument or the
@@ -194,6 +198,8 @@ public final class EmptyProtos {
      *     rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
      *   };
      * 
+ * + * Protobuf type {@code grpc.testing.Empty} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -282,7 +288,7 @@ public final class EmptyProtos { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.EmptyProtos.Empty) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -310,16 +316,7 @@ public final class EmptyProtos { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Empty(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -338,9 +335,9 @@ public final class EmptyProtos { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_Empty_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_Empty_fieldAccessorTable; @@ -348,7 +345,7 @@ public final class EmptyProtos { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java index 647407b302..9e857ae7cc 100644 --- a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java +++ b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java @@ -9,76 +9,84 @@ public final class Messages { com.google.protobuf.ExtensionRegistry registry) { } /** - * Protobuf enum {@code grpc.testing.PayloadType} - * *
    * The type of payload that should be returned.
    * 
+ * + * Protobuf enum {@code grpc.testing.PayloadType} */ public enum PayloadType implements com.google.protobuf.ProtocolMessageEnum { /** - * COMPRESSABLE = 0; - * *
      * Compressable text format.
      * 
- */ - COMPRESSABLE(0, 0), - /** - * UNCOMPRESSABLE = 1; * + * COMPRESSABLE = 0; + */ + COMPRESSABLE(0), + /** *
      * Uncompressable binary format.
      * 
- */ - UNCOMPRESSABLE(1, 1), - /** - * RANDOM = 2; * + * UNCOMPRESSABLE = 1; + */ + UNCOMPRESSABLE(1), + /** *
      * Randomly chosen from all other formats defined in this enum.
      * 
+ * + * RANDOM = 2; */ - RANDOM(2, 2), - UNRECOGNIZED(-1, -1), + RANDOM(2), + UNRECOGNIZED(-1), ; /** - * COMPRESSABLE = 0; - * *
      * Compressable text format.
      * 
+ * + * COMPRESSABLE = 0; */ public static final int COMPRESSABLE_VALUE = 0; /** - * UNCOMPRESSABLE = 1; - * *
      * Uncompressable binary format.
      * 
+ * + * UNCOMPRESSABLE = 1; */ public static final int UNCOMPRESSABLE_VALUE = 1; /** - * RANDOM = 2; - * *
      * Randomly chosen from all other formats defined in this enum.
      * 
+ * + * RANDOM = 2; */ public static final int RANDOM_VALUE = 2; public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static PayloadType valueOf(int value) { + return forNumber(value); + } + + public static PayloadType forNumber(int value) { switch (value) { case 0: return COMPRESSABLE; case 1: return UNCOMPRESSABLE; @@ -95,13 +103,13 @@ public final class Messages { PayloadType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PayloadType findValueByNumber(int number) { - return PayloadType.valueOf(number); + return PayloadType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -126,11 +134,9 @@ public final class Messages { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private PayloadType(int index, int value) { - this.index = index; + private PayloadType(int value) { this.value = value; } @@ -138,39 +144,39 @@ public final class Messages { } /** - * Protobuf enum {@code grpc.testing.CompressionType} - * *
    * Compression algorithms
    * 
+ * + * Protobuf enum {@code grpc.testing.CompressionType} */ public enum CompressionType implements com.google.protobuf.ProtocolMessageEnum { /** - * NONE = 0; - * *
      * No compression
      * 
+ * + * NONE = 0; */ - NONE(0, 0), + NONE(0), /** * GZIP = 1; */ - GZIP(1, 1), + GZIP(1), /** * DEFLATE = 2; */ - DEFLATE(2, 2), - UNRECOGNIZED(-1, -1), + DEFLATE(2), + UNRECOGNIZED(-1), ; /** - * NONE = 0; - * *
      * No compression
      * 
+ * + * NONE = 0; */ public static final int NONE_VALUE = 0; /** @@ -184,14 +190,22 @@ public final class Messages { public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CompressionType valueOf(int value) { + return forNumber(value); + } + + public static CompressionType forNumber(int value) { switch (value) { case 0: return NONE; case 1: return GZIP; @@ -208,13 +222,13 @@ public final class Messages { CompressionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompressionType findValueByNumber(int number) { - return CompressionType.valueOf(number); + return CompressionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -239,11 +253,9 @@ public final class Messages { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CompressionType(int index, int value) { - this.index = index; + private CompressionType(int value) { this.value = value; } @@ -255,37 +267,37 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ int getTypeValue(); /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ io.grpc.testing.integration.Messages.PayloadType getType(); /** - * optional bytes body = 2; - * *
      * Primary contents of payload.
      * 
+ * + * optional bytes body = 2; */ com.google.protobuf.ByteString getBody(); } /** - * Protobuf type {@code grpc.testing.Payload} - * *
    * A block of data, to simply increase gRPC message size.
    * 
+ * + * Protobuf type {@code grpc.testing.Payload} */ public static final class Payload extends com.google.protobuf.GeneratedMessage implements @@ -307,7 +319,8 @@ public final class Messages { } private Payload( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -338,11 +351,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -362,35 +374,35 @@ public final class Messages { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public int getTypeValue() { return type_; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
      * The type of data in body.
      * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public io.grpc.testing.integration.Messages.PayloadType getType() { - io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_); + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(type_); return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; } public static final int BODY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString body_; /** - * optional bytes body = 2; - * *
      * Primary contents of payload.
      * 
+ * + * optional bytes body = 2; */ public com.google.protobuf.ByteString getBody() { return body_; @@ -457,34 +469,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.Payload parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.Payload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.Payload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.Payload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -506,11 +524,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.Payload} - * *
      * A block of data, to simply increase gRPC message size.
      * 
+ * + * Protobuf type {@code grpc.testing.Payload} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -610,7 +628,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.Payload) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -621,21 +639,21 @@ public final class Messages { private int type_ = 0; /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public int getTypeValue() { return type_; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public Builder setTypeValue(int value) { type_ = value; @@ -643,22 +661,22 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public io.grpc.testing.integration.Messages.PayloadType getType() { - io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_); + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(type_); return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public Builder setType(io.grpc.testing.integration.Messages.PayloadType value) { if (value == null) { @@ -670,11 +688,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType type = 1; - * *
        * The type of data in body.
        * 
+ * + * optional .grpc.testing.PayloadType type = 1; */ public Builder clearType() { @@ -685,21 +703,21 @@ public final class Messages { private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes body = 2; - * *
        * Primary contents of payload.
        * 
+ * + * optional bytes body = 2; */ public com.google.protobuf.ByteString getBody() { return body_; } /** - * optional bytes body = 2; - * *
        * Primary contents of payload.
        * 
+ * + * optional bytes body = 2; */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { @@ -711,11 +729,11 @@ public final class Messages { return this; } /** - * optional bytes body = 2; - * *
        * Primary contents of payload.
        * 
+ * + * optional bytes body = 2; */ public Builder clearBody() { @@ -753,16 +771,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new Payload(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -801,12 +810,12 @@ public final class Messages { getMessageBytes(); } /** - * Protobuf type {@code grpc.testing.EchoStatus} - * *
    * A protobuf representation for grpc status. This is used by test
    * clients to specify a status that the server should attempt to return.
    * 
+ * + * Protobuf type {@code grpc.testing.EchoStatus} */ public static final class EchoStatus extends com.google.protobuf.GeneratedMessage implements @@ -828,7 +837,8 @@ public final class Messages { } private EchoStatus( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -859,11 +869,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -983,34 +992,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.EchoStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.EchoStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1032,12 +1047,12 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.EchoStatus} - * *
      * A protobuf representation for grpc status. This is used by test
      * clients to specify a status that the server should attempt to return.
      * 
+ * + * Protobuf type {@code grpc.testing.EchoStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1138,7 +1153,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.EchoStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1271,16 +1286,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new EchoStatus(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1304,125 +1310,125 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ int getResponseTypeValue(); /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ io.grpc.testing.integration.Messages.PayloadType getResponseType(); /** - * optional int32 response_size = 2; - * *
      * Desired payload size in the response from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 response_size = 2; */ int getResponseSize(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.testing.integration.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); /** - * optional bool fill_username = 4; - * *
      * Whether SimpleResponse should include username.
      * 
+ * + * optional bool fill_username = 4; */ boolean getFillUsername(); /** - * optional bool fill_oauth_scope = 5; - * *
      * Whether SimpleResponse should include OAuth scope.
      * 
+ * + * optional bool fill_oauth_scope = 5; */ boolean getFillOauthScope(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ int getResponseCompressionValue(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ io.grpc.testing.integration.Messages.CompressionType getResponseCompression(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ boolean hasResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.testing.integration.Messages.EchoStatus getResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); } /** - * Protobuf type {@code grpc.testing.SimpleRequest} - * *
    * Unary request.
    * 
+ * + * Protobuf type {@code grpc.testing.SimpleRequest} */ public static final class SimpleRequest extends com.google.protobuf.GeneratedMessage implements @@ -1447,7 +1453,8 @@ public final class Messages { } private SimpleRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -1520,11 +1527,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1544,38 +1550,38 @@ public final class Messages { public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; private int responseType_; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, server randomly chooses one from other formats.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.testing.integration.Messages.PayloadType getResponseType() { - io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; } public static final int RESPONSE_SIZE_FIELD_NUMBER = 2; private int responseSize_; /** - * optional int32 response_size = 2; - * *
      * Desired payload size in the response from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 response_size = 2; */ public int getResponseSize() { return responseSize_; @@ -1584,31 +1590,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 3; private io.grpc.testing.integration.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.Payload getPayload() { return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -1617,11 +1623,11 @@ public final class Messages { public static final int FILL_USERNAME_FIELD_NUMBER = 4; private boolean fillUsername_; /** - * optional bool fill_username = 4; - * *
      * Whether SimpleResponse should include username.
      * 
+ * + * optional bool fill_username = 4; */ public boolean getFillUsername() { return fillUsername_; @@ -1630,11 +1636,11 @@ public final class Messages { public static final int FILL_OAUTH_SCOPE_FIELD_NUMBER = 5; private boolean fillOauthScope_; /** - * optional bool fill_oauth_scope = 5; - * *
      * Whether SimpleResponse should include OAuth scope.
      * 
+ * + * optional bool fill_oauth_scope = 5; */ public boolean getFillOauthScope() { return fillOauthScope_; @@ -1643,55 +1649,55 @@ public final class Messages { public static final int RESPONSE_COMPRESSION_FIELD_NUMBER = 6; private int responseCompression_; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() { - io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result; } public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; private io.grpc.testing.integration.Messages.EchoStatus responseStatus_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { return responseStatus_ == null ? io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { return getResponseStatus(); @@ -1793,34 +1799,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1842,11 +1854,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.SimpleRequest} - * *
      * Unary request.
      * 
+ * + * Protobuf type {@code grpc.testing.SimpleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1992,7 +2004,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.SimpleRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -2003,23 +2015,23 @@ public final class Messages { private int responseType_ = 0; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseTypeValue(int value) { responseType_ = value; @@ -2027,24 +2039,24 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.testing.integration.Messages.PayloadType getResponseType() { - io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseType(io.grpc.testing.integration.Messages.PayloadType value) { if (value == null) { @@ -2056,12 +2068,12 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, server randomly chooses one from other formats.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder clearResponseType() { @@ -2072,23 +2084,23 @@ public final class Messages { private int responseSize_ ; /** - * optional int32 response_size = 2; - * *
        * Desired payload size in the response from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 response_size = 2; */ public int getResponseSize() { return responseSize_; } /** - * optional int32 response_size = 2; - * *
        * Desired payload size in the response from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 response_size = 2; */ public Builder setResponseSize(int value) { @@ -2097,12 +2109,12 @@ public final class Messages { return this; } /** - * optional int32 response_size = 2; - * *
        * Desired payload size in the response from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 response_size = 2; */ public Builder clearResponseSize() { @@ -2115,21 +2127,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -2139,11 +2151,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -2159,11 +2171,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload( io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { @@ -2177,11 +2189,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -2199,11 +2211,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -2217,11 +2229,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { @@ -2229,11 +2241,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -2244,11 +2256,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> @@ -2266,21 +2278,21 @@ public final class Messages { private boolean fillUsername_ ; /** - * optional bool fill_username = 4; - * *
        * Whether SimpleResponse should include username.
        * 
+ * + * optional bool fill_username = 4; */ public boolean getFillUsername() { return fillUsername_; } /** - * optional bool fill_username = 4; - * *
        * Whether SimpleResponse should include username.
        * 
+ * + * optional bool fill_username = 4; */ public Builder setFillUsername(boolean value) { @@ -2289,11 +2301,11 @@ public final class Messages { return this; } /** - * optional bool fill_username = 4; - * *
        * Whether SimpleResponse should include username.
        * 
+ * + * optional bool fill_username = 4; */ public Builder clearFillUsername() { @@ -2304,21 +2316,21 @@ public final class Messages { private boolean fillOauthScope_ ; /** - * optional bool fill_oauth_scope = 5; - * *
        * Whether SimpleResponse should include OAuth scope.
        * 
+ * + * optional bool fill_oauth_scope = 5; */ public boolean getFillOauthScope() { return fillOauthScope_; } /** - * optional bool fill_oauth_scope = 5; - * *
        * Whether SimpleResponse should include OAuth scope.
        * 
+ * + * optional bool fill_oauth_scope = 5; */ public Builder setFillOauthScope(boolean value) { @@ -2327,11 +2339,11 @@ public final class Messages { return this; } /** - * optional bool fill_oauth_scope = 5; - * *
        * Whether SimpleResponse should include OAuth scope.
        * 
+ * + * optional bool fill_oauth_scope = 5; */ public Builder clearFillOauthScope() { @@ -2342,21 +2354,21 @@ public final class Messages { private int responseCompression_ = 0; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompressionValue(int value) { responseCompression_ = value; @@ -2364,22 +2376,22 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() { - io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompression(io.grpc.testing.integration.Messages.CompressionType value) { if (value == null) { @@ -2391,11 +2403,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder clearResponseCompression() { @@ -2408,21 +2420,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> responseStatusBuilder_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatusBuilder_ != null || responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { if (responseStatusBuilder_ == null) { @@ -2432,11 +2444,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -2452,11 +2464,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus( io.grpc.testing.integration.Messages.EchoStatus.Builder builderForValue) { @@ -2470,11 +2482,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder mergeResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -2492,11 +2504,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder clearResponseStatus() { if (responseStatusBuilder_ == null) { @@ -2510,11 +2522,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatus.Builder getResponseStatusBuilder() { @@ -2522,11 +2534,11 @@ public final class Messages { return getResponseStatusFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { if (responseStatusBuilder_ != null) { @@ -2537,11 +2549,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> @@ -2586,16 +2598,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SimpleRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -2619,74 +2622,74 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.testing.integration.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ java.lang.String getUsername(); /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ java.lang.String getOauthScope(); /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ com.google.protobuf.ByteString getOauthScopeBytes(); } /** - * Protobuf type {@code grpc.testing.SimpleResponse} - * *
    * Unary response, as configured by the request.
    * 
+ * + * Protobuf type {@code grpc.testing.SimpleResponse} */ public static final class SimpleResponse extends com.google.protobuf.GeneratedMessage implements @@ -2708,7 +2711,8 @@ public final class Messages { } private SimpleResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -2753,11 +2757,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -2777,31 +2780,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 1; private io.grpc.testing.integration.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload getPayload() { return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase message size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -2810,12 +2813,12 @@ public final class Messages { public static final int USERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object username_; /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -2830,12 +2833,12 @@ public final class Messages { } } /** - * optional string username = 2; - * *
      * The user the request came from, for verifying authentication was
      * successful when the client expected it.
      * 
+ * + * optional string username = 2; */ public com.google.protobuf.ByteString getUsernameBytes() { @@ -2854,11 +2857,11 @@ public final class Messages { public static final int OAUTH_SCOPE_FIELD_NUMBER = 3; private volatile java.lang.Object oauthScope_; /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ public java.lang.String getOauthScope() { java.lang.Object ref = oauthScope_; @@ -2873,11 +2876,11 @@ public final class Messages { } } /** - * optional string oauth_scope = 3; - * *
      * OAuth scope.
      * 
+ * + * optional string oauth_scope = 3; */ public com.google.protobuf.ByteString getOauthScopeBytes() { @@ -2959,34 +2962,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -3008,11 +3017,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.SimpleResponse} - * *
      * Unary response, as configured by the request.
      * 
+ * + * Protobuf type {@code grpc.testing.SimpleResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -3128,7 +3137,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.SimpleResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -3141,21 +3150,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -3165,11 +3174,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -3185,11 +3194,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload( io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { @@ -3203,11 +3212,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -3225,11 +3234,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -3243,11 +3252,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { @@ -3255,11 +3264,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -3270,11 +3279,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase message size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> @@ -3292,12 +3301,12 @@ public final class Messages { private java.lang.Object username_ = ""; /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -3312,12 +3321,12 @@ public final class Messages { } } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public com.google.protobuf.ByteString getUsernameBytes() { @@ -3333,12 +3342,12 @@ public final class Messages { } } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public Builder setUsername( java.lang.String value) { @@ -3351,12 +3360,12 @@ public final class Messages { return this; } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public Builder clearUsername() { @@ -3365,12 +3374,12 @@ public final class Messages { return this; } /** - * optional string username = 2; - * *
        * The user the request came from, for verifying authentication was
        * successful when the client expected it.
        * 
+ * + * optional string username = 2; */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { @@ -3386,11 +3395,11 @@ public final class Messages { private java.lang.Object oauthScope_ = ""; /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public java.lang.String getOauthScope() { java.lang.Object ref = oauthScope_; @@ -3405,11 +3414,11 @@ public final class Messages { } } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public com.google.protobuf.ByteString getOauthScopeBytes() { @@ -3425,11 +3434,11 @@ public final class Messages { } } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public Builder setOauthScope( java.lang.String value) { @@ -3442,11 +3451,11 @@ public final class Messages { return this; } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public Builder clearOauthScope() { @@ -3455,11 +3464,11 @@ public final class Messages { return this; } /** - * optional string oauth_scope = 3; - * *
        * OAuth scope.
        * 
+ * + * optional string oauth_scope = 3; */ public Builder setOauthScopeBytes( com.google.protobuf.ByteString value) { @@ -3502,16 +3511,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SimpleResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -3566,7 +3566,8 @@ public final class Messages { } private SimpleContext( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -3592,11 +3593,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -3700,34 +3700,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.SimpleContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -3844,7 +3850,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.SimpleContext) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -3951,16 +3957,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new SimpleContext(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -3984,36 +3981,36 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.testing.integration.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); } /** - * Protobuf type {@code grpc.testing.StreamingInputCallRequest} - * *
    * Client-streaming request.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallRequest} */ public static final class StreamingInputCallRequest extends com.google.protobuf.GeneratedMessage implements @@ -4033,7 +4030,8 @@ public final class Messages { } private StreamingInputCallRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -4066,11 +4064,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -4090,31 +4087,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 1; private io.grpc.testing.integration.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload getPayload() { return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -4174,34 +4171,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -4223,11 +4226,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingInputCallRequest} - * *
      * Client-streaming request.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -4329,7 +4332,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.StreamingInputCallRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -4342,21 +4345,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -4366,11 +4369,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -4386,11 +4389,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload( io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { @@ -4404,11 +4407,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -4426,11 +4429,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -4444,11 +4447,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { @@ -4456,11 +4459,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -4471,11 +4474,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> @@ -4520,16 +4523,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingInputCallRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -4553,20 +4547,20 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional int32 aggregated_payload_size = 1; - * *
      * Aggregated size of payloads received from the client.
      * 
+ * + * optional int32 aggregated_payload_size = 1; */ int getAggregatedPayloadSize(); } /** - * Protobuf type {@code grpc.testing.StreamingInputCallResponse} - * *
    * Client-streaming response.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallResponse} */ public static final class StreamingInputCallResponse extends com.google.protobuf.GeneratedMessage implements @@ -4587,7 +4581,8 @@ public final class Messages { } private StreamingInputCallResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -4612,11 +4607,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -4636,11 +4630,11 @@ public final class Messages { public static final int AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER = 1; private int aggregatedPayloadSize_; /** - * optional int32 aggregated_payload_size = 1; - * *
      * Aggregated size of payloads received from the client.
      * 
+ * + * optional int32 aggregated_payload_size = 1; */ public int getAggregatedPayloadSize() { return aggregatedPayloadSize_; @@ -4700,34 +4694,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -4749,11 +4749,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingInputCallResponse} - * *
      * Client-streaming response.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingInputCallResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -4847,7 +4847,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.StreamingInputCallResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -4858,21 +4858,21 @@ public final class Messages { private int aggregatedPayloadSize_ ; /** - * optional int32 aggregated_payload_size = 1; - * *
        * Aggregated size of payloads received from the client.
        * 
+ * + * optional int32 aggregated_payload_size = 1; */ public int getAggregatedPayloadSize() { return aggregatedPayloadSize_; } /** - * optional int32 aggregated_payload_size = 1; - * *
        * Aggregated size of payloads received from the client.
        * 
+ * + * optional int32 aggregated_payload_size = 1; */ public Builder setAggregatedPayloadSize(int value) { @@ -4881,11 +4881,11 @@ public final class Messages { return this; } /** - * optional int32 aggregated_payload_size = 1; - * *
        * Aggregated size of payloads received from the client.
        * 
+ * + * optional int32 aggregated_payload_size = 1; */ public Builder clearAggregatedPayloadSize() { @@ -4923,16 +4923,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingInputCallResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -4956,31 +4947,31 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional int32 size = 1; - * *
      * Desired payload sizes in responses from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 size = 1; */ int getSize(); /** - * optional int32 interval_us = 2; - * *
      * Desired interval between consecutive responses in the response stream in
      * microseconds.
      * 
+ * + * optional int32 interval_us = 2; */ int getIntervalUs(); } /** - * Protobuf type {@code grpc.testing.ResponseParameters} - * *
    * Configuration for a particular response.
    * 
+ * + * Protobuf type {@code grpc.testing.ResponseParameters} */ public static final class ResponseParameters extends com.google.protobuf.GeneratedMessage implements @@ -5002,7 +4993,8 @@ public final class Messages { } private ResponseParameters( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -5032,11 +5024,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -5056,12 +5047,12 @@ public final class Messages { public static final int SIZE_FIELD_NUMBER = 1; private int size_; /** - * optional int32 size = 1; - * *
      * Desired payload sizes in responses from the server.
      * If response_type is COMPRESSABLE, this denotes the size before compression.
      * 
+ * + * optional int32 size = 1; */ public int getSize() { return size_; @@ -5070,12 +5061,12 @@ public final class Messages { public static final int INTERVAL_US_FIELD_NUMBER = 2; private int intervalUs_; /** - * optional int32 interval_us = 2; - * *
      * Desired interval between consecutive responses in the response stream in
      * microseconds.
      * 
+ * + * optional int32 interval_us = 2; */ public int getIntervalUs() { return intervalUs_; @@ -5142,34 +5133,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -5191,11 +5188,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.ResponseParameters} - * *
      * Configuration for a particular response.
      * 
+ * + * Protobuf type {@code grpc.testing.ResponseParameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -5295,7 +5292,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.ResponseParameters) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -5306,23 +5303,23 @@ public final class Messages { private int size_ ; /** - * optional int32 size = 1; - * *
        * Desired payload sizes in responses from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 size = 1; */ public int getSize() { return size_; } /** - * optional int32 size = 1; - * *
        * Desired payload sizes in responses from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 size = 1; */ public Builder setSize(int value) { @@ -5331,12 +5328,12 @@ public final class Messages { return this; } /** - * optional int32 size = 1; - * *
        * Desired payload sizes in responses from the server.
        * If response_type is COMPRESSABLE, this denotes the size before compression.
        * 
+ * + * optional int32 size = 1; */ public Builder clearSize() { @@ -5347,23 +5344,23 @@ public final class Messages { private int intervalUs_ ; /** - * optional int32 interval_us = 2; - * *
        * Desired interval between consecutive responses in the response stream in
        * microseconds.
        * 
+ * + * optional int32 interval_us = 2; */ public int getIntervalUs() { return intervalUs_; } /** - * optional int32 interval_us = 2; - * *
        * Desired interval between consecutive responses in the response stream in
        * microseconds.
        * 
+ * + * optional int32 interval_us = 2; */ public Builder setIntervalUs(int value) { @@ -5372,12 +5369,12 @@ public final class Messages { return this; } /** - * optional int32 interval_us = 2; - * *
        * Desired interval between consecutive responses in the response stream in
        * microseconds.
        * 
+ * + * optional int32 interval_us = 2; */ public Builder clearIntervalUs() { @@ -5415,16 +5412,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ResponseParameters(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -5448,145 +5436,145 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ int getResponseTypeValue(); /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ io.grpc.testing.integration.Messages.PayloadType getResponseType(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ java.util.List getResponseParametersList(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ int getResponseParametersCount(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ java.util.List getResponseParametersOrBuilderList(); /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( int index); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.testing.integration.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ int getResponseCompressionValue(); /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ io.grpc.testing.integration.Messages.CompressionType getResponseCompression(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ boolean hasResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.testing.integration.Messages.EchoStatus getResponseStatus(); /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} - * *
    * Server-streaming request.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} */ public static final class StreamingOutputCallRequest extends com.google.protobuf.GeneratedMessage implements @@ -5609,7 +5597,8 @@ public final class Messages { } private StreamingOutputCallRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -5675,11 +5664,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); @@ -5703,82 +5691,82 @@ public final class Messages { public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; private int responseType_; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
      * Desired payload type in the response from the server.
      * If response_type is RANDOM, the payload from each response in the stream
      * might be of different types. This is to simulate a mixed type of payload
      * stream.
      * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.testing.integration.Messages.PayloadType getResponseType() { - io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; } public static final int RESPONSE_PARAMETERS_FIELD_NUMBER = 2; private java.util.List responseParameters_; /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersList() { return responseParameters_; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersOrBuilderList() { return responseParameters_; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public int getResponseParametersCount() { return responseParameters_.size(); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index) { return responseParameters_.get(index); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
      * Configuration for each expected response message.
      * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( int index) { @@ -5788,31 +5776,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 3; private io.grpc.testing.integration.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.Payload getPayload() { return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 3; - * *
      * Optional input payload sent along with the request.
      * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -5821,55 +5809,55 @@ public final class Messages { public static final int RESPONSE_COMPRESSION_FIELD_NUMBER = 6; private int responseCompression_; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
      * Compression algorithm to be used by the server for the response (stream)
      * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() { - io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result; } public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; private io.grpc.testing.integration.Messages.EchoStatus responseStatus_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { return responseStatus_ == null ? io.grpc.testing.integration.Messages.EchoStatus.getDefaultInstance() : responseStatus_; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
      * Whether server should return a given status
      * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { return getResponseStatus(); @@ -5957,34 +5945,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -6006,11 +6000,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} - * *
      * Server-streaming request.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -6183,7 +6177,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.StreamingOutputCallRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -6195,27 +6189,27 @@ public final class Messages { private int responseType_ = 0; /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public int getResponseTypeValue() { return responseType_; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseTypeValue(int value) { responseType_ = value; @@ -6223,28 +6217,28 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public io.grpc.testing.integration.Messages.PayloadType getResponseType() { - io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_); + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_); return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder setResponseType(io.grpc.testing.integration.Messages.PayloadType value) { if (value == null) { @@ -6256,14 +6250,14 @@ public final class Messages { return this; } /** - * optional .grpc.testing.PayloadType response_type = 1; - * *
        * Desired payload type in the response from the server.
        * If response_type is RANDOM, the payload from each response in the stream
        * might be of different types. This is to simulate a mixed type of payload
        * stream.
        * 
+ * + * optional .grpc.testing.PayloadType response_type = 1; */ public Builder clearResponseType() { @@ -6285,11 +6279,11 @@ public final class Messages { io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> responseParametersBuilder_; /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersList() { if (responseParametersBuilder_ == null) { @@ -6299,11 +6293,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public int getResponseParametersCount() { if (responseParametersBuilder_ == null) { @@ -6313,11 +6307,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index) { if (responseParametersBuilder_ == null) { @@ -6327,11 +6321,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder setResponseParameters( int index, io.grpc.testing.integration.Messages.ResponseParameters value) { @@ -6348,11 +6342,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder setResponseParameters( int index, io.grpc.testing.integration.Messages.ResponseParameters.Builder builderForValue) { @@ -6366,11 +6360,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters(io.grpc.testing.integration.Messages.ResponseParameters value) { if (responseParametersBuilder_ == null) { @@ -6386,11 +6380,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters( int index, io.grpc.testing.integration.Messages.ResponseParameters value) { @@ -6407,11 +6401,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters( io.grpc.testing.integration.Messages.ResponseParameters.Builder builderForValue) { @@ -6425,11 +6419,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addResponseParameters( int index, io.grpc.testing.integration.Messages.ResponseParameters.Builder builderForValue) { @@ -6443,11 +6437,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder addAllResponseParameters( java.lang.Iterable values) { @@ -6462,11 +6456,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder clearResponseParameters() { if (responseParametersBuilder_ == null) { @@ -6479,11 +6473,11 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public Builder removeResponseParameters(int index) { if (responseParametersBuilder_ == null) { @@ -6496,22 +6490,22 @@ public final class Messages { return this; } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParameters.Builder getResponseParametersBuilder( int index) { return getResponseParametersFieldBuilder().getBuilder(index); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( int index) { @@ -6521,11 +6515,11 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersOrBuilderList() { @@ -6536,22 +6530,22 @@ public final class Messages { } } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParameters.Builder addResponseParametersBuilder() { return getResponseParametersFieldBuilder().addBuilder( io.grpc.testing.integration.Messages.ResponseParameters.getDefaultInstance()); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public io.grpc.testing.integration.Messages.ResponseParameters.Builder addResponseParametersBuilder( int index) { @@ -6559,11 +6553,11 @@ public final class Messages { index, io.grpc.testing.integration.Messages.ResponseParameters.getDefaultInstance()); } /** - * repeated .grpc.testing.ResponseParameters response_parameters = 2; - * *
        * Configuration for each expected response message.
        * 
+ * + * repeated .grpc.testing.ResponseParameters response_parameters = 2; */ public java.util.List getResponseParametersBuilderList() { @@ -6588,21 +6582,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -6612,11 +6606,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -6632,11 +6626,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder setPayload( io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { @@ -6650,11 +6644,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -6672,11 +6666,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -6690,11 +6684,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { @@ -6702,11 +6696,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -6717,11 +6711,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 3; - * *
        * Optional input payload sent along with the request.
        * 
+ * + * optional .grpc.testing.Payload payload = 3; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> @@ -6739,21 +6733,21 @@ public final class Messages { private int responseCompression_ = 0; /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public int getResponseCompressionValue() { return responseCompression_; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompressionValue(int value) { responseCompression_ = value; @@ -6761,22 +6755,22 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() { - io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_); + io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_); return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder setResponseCompression(io.grpc.testing.integration.Messages.CompressionType value) { if (value == null) { @@ -6788,11 +6782,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.CompressionType response_compression = 6; - * *
        * Compression algorithm to be used by the server for the response (stream)
        * 
+ * + * optional .grpc.testing.CompressionType response_compression = 6; */ public Builder clearResponseCompression() { @@ -6805,21 +6799,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> responseStatusBuilder_; /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public boolean hasResponseStatus() { return responseStatusBuilder_ != null || responseStatus_ != null; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatus getResponseStatus() { if (responseStatusBuilder_ == null) { @@ -6829,11 +6823,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -6849,11 +6843,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder setResponseStatus( io.grpc.testing.integration.Messages.EchoStatus.Builder builderForValue) { @@ -6867,11 +6861,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder mergeResponseStatus(io.grpc.testing.integration.Messages.EchoStatus value) { if (responseStatusBuilder_ == null) { @@ -6889,11 +6883,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public Builder clearResponseStatus() { if (responseStatusBuilder_ == null) { @@ -6907,11 +6901,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatus.Builder getResponseStatusBuilder() { @@ -6919,11 +6913,11 @@ public final class Messages { return getResponseStatusFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ public io.grpc.testing.integration.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { if (responseStatusBuilder_ != null) { @@ -6934,11 +6928,11 @@ public final class Messages { } } /** - * optional .grpc.testing.EchoStatus response_status = 7; - * *
        * Whether server should return a given status
        * 
+ * + * optional .grpc.testing.EchoStatus response_status = 7; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> @@ -6983,16 +6977,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingOutputCallRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7016,36 +7001,36 @@ public final class Messages { com.google.protobuf.MessageOrBuilder { /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ boolean hasPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.testing.integration.Messages.Payload getPayload(); /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} - * *
    * Server-streaming response, as configured by the request and parameters.
    * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} */ public static final class StreamingOutputCallResponse extends com.google.protobuf.GeneratedMessage implements @@ -7065,7 +7050,8 @@ public final class Messages { } private StreamingOutputCallResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -7098,11 +7084,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -7122,31 +7107,31 @@ public final class Messages { public static final int PAYLOAD_FIELD_NUMBER = 1; private io.grpc.testing.integration.Messages.Payload payload_; /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload getPayload() { return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; } /** - * optional .grpc.testing.Payload payload = 1; - * *
      * Payload to increase response size.
      * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); @@ -7206,34 +7191,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -7255,11 +7246,11 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} - * *
      * Server-streaming response, as configured by the request and parameters.
      * 
+ * + * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -7361,7 +7352,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.StreamingOutputCallResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -7374,21 +7365,21 @@ public final class Messages { private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_; /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload getPayload() { if (payloadBuilder_ == null) { @@ -7398,11 +7389,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -7418,11 +7409,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder setPayload( io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { @@ -7436,11 +7427,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { if (payloadBuilder_ == null) { @@ -7458,11 +7449,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -7476,11 +7467,11 @@ public final class Messages { return this; } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { @@ -7488,11 +7479,11 @@ public final class Messages { return getPayloadFieldBuilder().getBuilder(); } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { @@ -7503,11 +7494,11 @@ public final class Messages { } } /** - * optional .grpc.testing.Payload payload = 1; - * *
        * Payload to increase response size.
        * 
+ * + * optional .grpc.testing.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilder< io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> @@ -7552,16 +7543,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new StreamingOutputCallResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7590,12 +7572,12 @@ public final class Messages { int getMaxReconnectBackoffMs(); } /** - * Protobuf type {@code grpc.testing.ReconnectParams} - * *
    * For reconnect interop test only.
    * Client tells server what reconnection parameters it used.
    * 
+ * + * Protobuf type {@code grpc.testing.ReconnectParams} */ public static final class ReconnectParams extends com.google.protobuf.GeneratedMessage implements @@ -7616,7 +7598,8 @@ public final class Messages { } private ReconnectParams( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -7641,11 +7624,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -7725,34 +7707,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.ReconnectParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ReconnectParams parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -7774,12 +7762,12 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.ReconnectParams} - * *
      * For reconnect interop test only.
      * Client tells server what reconnection parameters it used.
      * 
+ * + * Protobuf type {@code grpc.testing.ReconnectParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -7873,7 +7861,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.ReconnectParams) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -7937,16 +7925,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ReconnectParams(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -7988,13 +7967,13 @@ public final class Messages { int getBackoffMs(int index); } /** - * Protobuf type {@code grpc.testing.ReconnectInfo} - * *
    * For reconnect interop test only.
    * Server tells client whether its reconnects are following the spec and the
    * reconnect backoffs it saw.
    * 
+ * + * Protobuf type {@code grpc.testing.ReconnectInfo} */ public static final class ReconnectInfo extends com.google.protobuf.GeneratedMessage implements @@ -8016,7 +7995,8 @@ public final class Messages { } private ReconnectInfo( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -8062,11 +8042,10 @@ public final class Messages { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { backoffMs_ = java.util.Collections.unmodifiableList(backoffMs_); @@ -8195,34 +8174,40 @@ public final class Messages { } public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ReconnectInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -8244,13 +8229,13 @@ public final class Messages { return builder; } /** - * Protobuf type {@code grpc.testing.ReconnectInfo} - * *
      * For reconnect interop test only.
      * Server tells client whether its reconnects are following the spec and the
      * reconnect backoffs it saw.
      * 
+ * + * Protobuf type {@code grpc.testing.ReconnectInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -8364,7 +8349,7 @@ public final class Messages { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Messages.ReconnectInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -8495,16 +8480,7 @@ public final class Messages { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new ReconnectInfo(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -8523,64 +8499,64 @@ public final class Messages { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_Payload_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_Payload_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_EchoStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_EchoStatus_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SimpleRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SimpleRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SimpleResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SimpleResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_SimpleContext_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_SimpleContext_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingInputCallRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingInputCallResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ResponseParameters_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ResponseParameters_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ReconnectParams_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ReconnectParams_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_ReconnectInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable; @@ -8588,7 +8564,7 @@ public final class Messages { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java index f9faf0377c..de70c66c5b 100644 --- a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java +++ b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java @@ -45,11 +45,11 @@ public final class Metrics { public io.grpc.testing.integration.Metrics.GaugeResponse.ValueCase getValueCase(); } /** - * Protobuf type {@code grpc.testing.GaugeResponse} - * *
    * Reponse message containing the gauge name and value
    * 
+ * + * Protobuf type {@code grpc.testing.GaugeResponse} */ public static final class GaugeResponse extends com.google.protobuf.GeneratedMessage implements @@ -70,7 +70,8 @@ public final class Metrics { } private GaugeResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -112,11 +113,10 @@ public final class Metrics { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -141,18 +141,25 @@ public final class Metrics { DOUBLE_VALUE(3), STRING_VALUE(4), VALUE_NOT_SET(0); - private int value = 0; + private final int value; private ValueCase(int value) { this.value = value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { switch (value) { case 2: return LONG_VALUE; case 3: return DOUBLE_VALUE; case 4: return STRING_VALUE; case 0: return VALUE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); + default: return null; } } public int getNumber() { @@ -162,7 +169,7 @@ public final class Metrics { public ValueCase getValueCase() { - return ValueCase.valueOf( + return ValueCase.forNumber( valueCase_); } @@ -342,34 +349,40 @@ public final class Metrics { } public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Metrics.GaugeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.GaugeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -391,11 +404,11 @@ public final class Metrics { return builder; } /** - * Protobuf type {@code grpc.testing.GaugeResponse} - * *
      * Reponse message containing the gauge name and value
      * 
+ * + * Protobuf type {@code grpc.testing.GaugeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -521,7 +534,7 @@ public final class Metrics { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Metrics.GaugeResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -533,7 +546,7 @@ public final class Metrics { private java.lang.Object value_; public ValueCase getValueCase() { - return ValueCase.valueOf( + return ValueCase.forNumber( valueCase_); } @@ -783,16 +796,7 @@ public final class Metrics { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new GaugeResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -826,11 +830,11 @@ public final class Metrics { getNameBytes(); } /** - * Protobuf type {@code grpc.testing.GaugeRequest} - * *
    * Request message containing the gauge name
    * 
+ * + * Protobuf type {@code grpc.testing.GaugeRequest} */ public static final class GaugeRequest extends com.google.protobuf.GeneratedMessage implements @@ -851,7 +855,8 @@ public final class Metrics { } private GaugeRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -877,11 +882,10 @@ public final class Metrics { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -985,34 +989,40 @@ public final class Metrics { } public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Metrics.GaugeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.GaugeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1034,11 +1044,11 @@ public final class Metrics { return builder; } /** - * Protobuf type {@code grpc.testing.GaugeRequest} - * *
      * Request message containing the gauge name
      * 
+ * + * Protobuf type {@code grpc.testing.GaugeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements @@ -1133,7 +1143,7 @@ public final class Metrics { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Metrics.GaugeRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1240,16 +1250,7 @@ public final class Metrics { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new GaugeRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1293,7 +1294,8 @@ public final class Metrics { } private EmptyMessage( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; @@ -1312,11 +1314,10 @@ public final class Metrics { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -1380,34 +1381,40 @@ public final class Metrics { } public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Metrics.EmptyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.EmptyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -1517,7 +1524,7 @@ public final class Metrics { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.testing.integration.Metrics.EmptyMessage) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1555,16 +1562,7 @@ public final class Metrics { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new EmptyMessage(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; @@ -1583,19 +1581,19 @@ public final class Metrics { } - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_GaugeResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_GaugeResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_GaugeRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_GaugeRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_testing_EmptyMessage_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_testing_EmptyMessage_fieldAccessorTable; @@ -1603,7 +1601,7 @@ public final class Metrics { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java index 7ecf881d63..d8e2ee1a8f 100644 --- a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java +++ b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java @@ -13,7 +13,7 @@ public final class Test { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { diff --git a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java index b06ac1b991..99d309c799 100644 --- a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java +++ b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java @@ -25,7 +25,8 @@ public final class HealthCheckRequest extends } private HealthCheckRequest( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -51,11 +52,10 @@ public final class HealthCheckRequest extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -159,34 +159,40 @@ public final class HealthCheckRequest extends } public static io.grpc.health.v1.HealthCheckRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.health.v1.HealthCheckRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.health.v1.HealthCheckRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.health.v1.HealthCheckRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.health.v1.HealthCheckRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.health.v1.HealthCheckRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -303,7 +309,7 @@ public final class HealthCheckRequest extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.health.v1.HealthCheckRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -410,16 +416,7 @@ public final class HealthCheckRequest extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new HealthCheckRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java index 2f945916ae..3a0a9ea4c4 100644 --- a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java +++ b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java @@ -25,7 +25,8 @@ public final class HealthCheckResponse extends } private HealthCheckResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { @@ -51,11 +52,10 @@ public final class HealthCheckResponse extends } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } @@ -80,16 +80,16 @@ public final class HealthCheckResponse extends /** * UNKNOWN = 0; */ - UNKNOWN(0, 0), + UNKNOWN(0), /** * SERVING = 1; */ - SERVING(1, 1), + SERVING(1), /** * NOT_SERVING = 2; */ - NOT_SERVING(2, 2), - UNRECOGNIZED(-1, -1), + NOT_SERVING(2), + UNRECOGNIZED(-1), ; /** @@ -107,14 +107,22 @@ public final class HealthCheckResponse extends public final int getNumber() { - if (index == -1) { + if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ServingStatus valueOf(int value) { + return forNumber(value); + } + + public static ServingStatus forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return SERVING; @@ -131,13 +139,13 @@ public final class HealthCheckResponse extends ServingStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ServingStatus findValueByNumber(int number) { - return ServingStatus.valueOf(number); + return ServingStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -162,11 +170,9 @@ public final class HealthCheckResponse extends return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ServingStatus(int index, int value) { - this.index = index; + private ServingStatus(int value) { this.value = value; } @@ -185,7 +191,7 @@ public final class HealthCheckResponse extends * optional .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; */ public io.grpc.health.v1.HealthCheckResponse.ServingStatus getStatus() { - io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.valueOf(status_); + io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.forNumber(status_); return result == null ? io.grpc.health.v1.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result; } @@ -243,34 +249,40 @@ public final class HealthCheckResponse extends } public static io.grpc.health.v1.HealthCheckResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.health.v1.HealthCheckResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.health.v1.HealthCheckResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.health.v1.HealthCheckResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.health.v1.HealthCheckResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static io.grpc.health.v1.HealthCheckResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } @@ -386,7 +398,7 @@ public final class HealthCheckResponse extends parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grpc.health.v1.HealthCheckResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -414,7 +426,7 @@ public final class HealthCheckResponse extends * optional .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; */ public io.grpc.health.v1.HealthCheckResponse.ServingStatus getStatus() { - io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.valueOf(status_); + io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.forNumber(status_); return result == null ? io.grpc.health.v1.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result; } /** @@ -468,16 +480,7 @@ public final class HealthCheckResponse extends com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - try { return new HealthCheckResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } } }; diff --git a/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java b/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java index 31f1e78f00..526b98c872 100644 --- a/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java +++ b/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java @@ -8,14 +8,14 @@ public final class HealthProto { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_health_v1_HealthCheckRequest_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_health_v1_HealthCheckRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor + static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_health_v1_HealthCheckResponse_descriptor; - static + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_grpc_health_v1_HealthCheckResponse_fieldAccessorTable; @@ -23,7 +23,7 @@ public final class HealthProto { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = {