diff --git a/README.md b/README.md
index 608ce417155..a1df2565177 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,13 @@ $ mvn install -pl codec-http2 -am -DskipTests=true
```
### Build Protobuf
-The codegen plugin requires protobuf 3.0.0-alpha-2.
+The codegen plugin is C++ code and requires protobuf 3.0.0-alpha-2.
+
+If you are not changing the codegen plugin, nor any of the ``.proto`` files in
+the source tree, you can skip this chapter and add ``grpc.skip.codegen=true``
+to ``$HOME/.gradle/gradle.properties``. It will make the build script skip the
+build and invocation of the codegen, and use generated code that has been
+checked in.
For Linux, Mac and MinGW:
```
@@ -47,8 +53,8 @@ $ sudo ldconfig
#### Mac
Some versions of Mac OS X (e.g., 10.10) doesn't have ``/usr/local`` in the
-default search paths for header files and libraries. You will need to set
-environment variables:
+default search paths for header files and libraries. It will fail the build of
+the codegen. To work around this, you will need to set environment variables:
```
$ export CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
```
diff --git a/benchmarks/build.gradle b/benchmarks/build.gradle
index a48e25e8c38..477877a76be 100644
--- a/benchmarks/build.gradle
+++ b/benchmarks/build.gradle
@@ -1,6 +1,4 @@
apply plugin: 'application'
-apply plugin: 'com.google.protobuf'
-
description = "grpc Benchmarks"
@@ -46,7 +44,7 @@ dependencies {
alpnboot alpnboot_package_name
}
-
+configureProtoCompilation()
task qps_client(type: CreateStartScripts) {
mainClassName = "io.grpc.benchmarks.qps.AsyncClient"
@@ -79,12 +77,6 @@ applicationDistribution.into("bin") {
fileMode = 0755
}
-protobufCodeGenPlugins = ["java_plugin:$javaPluginPath"]
-
-project.afterEvaluate {
- generateProto.dependsOn ':grpc-compiler:java_pluginExecutable'
-}
-
// Allow intellij projects to refer to generated-sources
idea {
module {
diff --git a/benchmarks/src/generated/main/grpc/testing/Qpstest.java b/benchmarks/src/generated/main/grpc/testing/Qpstest.java
new file mode 100644
index 00000000000..d61b071efa5
--- /dev/null
+++ b/benchmarks/src/generated/main/grpc/testing/Qpstest.java
@@ -0,0 +1,9996 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: qpstest.proto
+
+package grpc.testing;
+
+public final class Qpstest {
+ private Qpstest() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ /**
+ * Protobuf enum {@code grpc.testing.PayloadType}
+ */
+ public enum PayloadType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * COMPRESSABLE = 1;
+ *
+ *
+ * Compressable text format. + *+ */ + COMPRESSABLE(0, 1), + /** + *
UNCOMPRESSABLE = 2;
+ *
+ * + * Uncompressable binary format. + *+ */ + UNCOMPRESSABLE(1, 2), + /** + *
RANDOM = 3;
+ *
+ * + * Randomly chosen from all other formats defined in this enum. + *+ */ + RANDOM(2, 3), + ; + + /** + *
COMPRESSABLE = 1;
+ *
+ * + * Compressable text format. + *+ */ + public static final int COMPRESSABLE_VALUE = 1; + /** + *
UNCOMPRESSABLE = 2;
+ *
+ * + * Uncompressable binary format. + *+ */ + public static final int UNCOMPRESSABLE_VALUE = 2; + /** + *
RANDOM = 3;
+ *
+ * + * Randomly chosen from all other formats defined in this enum. + *+ */ + public static final int RANDOM_VALUE = 3; + + + public final int getNumber() { + return value; + } + + public static PayloadType valueOf(int value) { + switch (value) { + case 1: return COMPRESSABLE; + case 2: return UNCOMPRESSABLE; + case 3: return RANDOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap
SYNCHRONOUS_CLIENT = 1;
+ */
+ SYNCHRONOUS_CLIENT(0, 1),
+ /**
+ * ASYNC_CLIENT = 2;
+ */
+ ASYNC_CLIENT(1, 2),
+ ;
+
+ /**
+ * SYNCHRONOUS_CLIENT = 1;
+ */
+ public static final int SYNCHRONOUS_CLIENT_VALUE = 1;
+ /**
+ * ASYNC_CLIENT = 2;
+ */
+ public static final int ASYNC_CLIENT_VALUE = 2;
+
+
+ public final int getNumber() {
+ return value;
+ }
+
+ public static ClientType valueOf(int value) {
+ switch (value) {
+ case 1: return SYNCHRONOUS_CLIENT;
+ case 2: return ASYNC_CLIENT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapSYNCHRONOUS_SERVER = 1;
+ */
+ SYNCHRONOUS_SERVER(0, 1),
+ /**
+ * ASYNC_SERVER = 2;
+ */
+ ASYNC_SERVER(1, 2),
+ ;
+
+ /**
+ * SYNCHRONOUS_SERVER = 1;
+ */
+ public static final int SYNCHRONOUS_SERVER_VALUE = 1;
+ /**
+ * ASYNC_SERVER = 2;
+ */
+ public static final int ASYNC_SERVER_VALUE = 2;
+
+
+ public final int getNumber() {
+ return value;
+ }
+
+ public static ServerType valueOf(int value) {
+ switch (value) {
+ case 1: return SYNCHRONOUS_SERVER;
+ case 2: return ASYNC_SERVER;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapUNARY = 1;
+ */
+ UNARY(0, 1),
+ /**
+ * STREAMING = 2;
+ */
+ STREAMING(1, 2),
+ ;
+
+ /**
+ * UNARY = 1;
+ */
+ public static final int UNARY_VALUE = 1;
+ /**
+ * STREAMING = 2;
+ */
+ public static final int STREAMING_VALUE = 2;
+
+
+ public final int getNumber() {
+ return value;
+ }
+
+ public static RpcType valueOf(int value) {
+ switch (value) {
+ case 1: return UNARY;
+ case 2: return STREAMING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapoptional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + boolean hasTestNum(); + /** + *
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + int getTestNum(); + } + /** + * Protobuf type {@code grpc.testing.StatsRequest} + */ + public static final class StatsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.StatsRequest) + StatsRequestOrBuilder { + // Use StatsRequest.newBuilder() to construct. + private StatsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StatsRequest() { + testNum_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StatsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + testNum_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return grpc.testing.Qpstest.internal_static_grpc_testing_StatsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return grpc.testing.Qpstest.internal_static_grpc_testing_StatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + grpc.testing.Qpstest.StatsRequest.class, grpc.testing.Qpstest.StatsRequest.Builder.class); + } + + public static final com.google.protobuf.Parser
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + public boolean hasTestNum() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + public int getTestNum() { + return testNum_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, testNum_); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, testNum_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static grpc.testing.Qpstest.StatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.StatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static grpc.testing.Qpstest.StatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.StatsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(grpc.testing.Qpstest.StatsRequest prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.StatsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + public boolean hasTestNum() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + public int getTestNum() { + return testNum_; + } + /** + *
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + public Builder setTestNum(int value) { + bitField0_ |= 0x00000001; + testNum_ = value; + onChanged(); + return this; + } + /** + *
optional int32 test_num = 1;
+ *
+ * + * run number + *+ */ + public Builder clearTestNum() { + bitField0_ = (bitField0_ & ~0x00000001); + testNum_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:grpc.testing.StatsRequest) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.StatsRequest) + private static final grpc.testing.Qpstest.StatsRequest defaultInstance; + static { + defaultInstance = new grpc.testing.Qpstest.StatsRequest(); + } + + public static grpc.testing.Qpstest.StatsRequest getDefaultInstance() { + return defaultInstance; + } + + public grpc.testing.Qpstest.StatsRequest getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface ServerStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ServerStats) + com.google.protobuf.MessageOrBuilder { + + /** + *
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + boolean hasTimeElapsed(); + /** + *
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + double getTimeElapsed(); + + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + boolean hasTimeUser(); + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + double getTimeUser(); + + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + boolean hasTimeSystem(); + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + double getTimeSystem(); + } + /** + * Protobuf type {@code grpc.testing.ServerStats} + */ + public static final class ServerStats extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ServerStats) + ServerStatsOrBuilder { + // Use ServerStats.newBuilder() to construct. + private ServerStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ServerStats() { + timeElapsed_ = 0D; + timeUser_ = 0D; + timeSystem_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServerStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + bitField0_ |= 0x00000001; + timeElapsed_ = input.readDouble(); + break; + } + case 17: { + bitField0_ |= 0x00000002; + timeUser_ = input.readDouble(); + break; + } + case 25: { + bitField0_ |= 0x00000004; + timeSystem_ = input.readDouble(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return grpc.testing.Qpstest.internal_static_grpc_testing_ServerStats_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return grpc.testing.Qpstest.internal_static_grpc_testing_ServerStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + grpc.testing.Qpstest.ServerStats.class, grpc.testing.Qpstest.ServerStats.Builder.class); + } + + public static final com.google.protobuf.Parser
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + public boolean hasTimeElapsed() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + public double getTimeElapsed() { + return timeElapsed_; + } + + public static final int TIME_USER_FIELD_NUMBER = 2; + private double timeUser_; + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + public boolean hasTimeUser() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + public double getTimeUser() { + return timeUser_; + } + + public static final int TIME_SYSTEM_FIELD_NUMBER = 3; + private double timeSystem_; + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + public boolean hasTimeSystem() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + public double getTimeSystem() { + return timeSystem_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasTimeElapsed()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTimeUser()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTimeSystem()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeDouble(1, timeElapsed_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeDouble(2, timeUser_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeDouble(3, timeSystem_); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, timeElapsed_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, timeUser_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, timeSystem_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static grpc.testing.Qpstest.ServerStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.ServerStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.ServerStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.ServerStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.ServerStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.ServerStats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.ServerStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static grpc.testing.Qpstest.ServerStats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.ServerStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.ServerStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(grpc.testing.Qpstest.ServerStats prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.ServerStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + public boolean hasTimeElapsed() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + public double getTimeElapsed() { + return timeElapsed_; + } + /** + *
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + public Builder setTimeElapsed(double value) { + bitField0_ |= 0x00000001; + timeElapsed_ = value; + onChanged(); + return this; + } + /** + *
required double time_elapsed = 1;
+ *
+ * + * wall clock time + *+ */ + public Builder clearTimeElapsed() { + bitField0_ = (bitField0_ & ~0x00000001); + timeElapsed_ = 0D; + onChanged(); + return this; + } + + private double timeUser_ ; + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + public boolean hasTimeUser() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + public double getTimeUser() { + return timeUser_; + } + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + public Builder setTimeUser(double value) { + bitField0_ |= 0x00000002; + timeUser_ = value; + onChanged(); + return this; + } + /** + *
required double time_user = 2;
+ *
+ * + * user time used by the server process and threads + *+ */ + public Builder clearTimeUser() { + bitField0_ = (bitField0_ & ~0x00000002); + timeUser_ = 0D; + onChanged(); + return this; + } + + private double timeSystem_ ; + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + public boolean hasTimeSystem() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + public double getTimeSystem() { + return timeSystem_; + } + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + public Builder setTimeSystem(double value) { + bitField0_ |= 0x00000004; + timeSystem_ = value; + onChanged(); + return this; + } + /** + *
required double time_system = 3;
+ *
+ * + * server time used by the server process and all threads + *+ */ + public Builder clearTimeSystem() { + bitField0_ = (bitField0_ & ~0x00000004); + timeSystem_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:grpc.testing.ServerStats) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ServerStats) + private static final grpc.testing.Qpstest.ServerStats defaultInstance; + static { + defaultInstance = new grpc.testing.Qpstest.ServerStats(); + } + + public static grpc.testing.Qpstest.ServerStats getDefaultInstance() { + return defaultInstance; + } + + public grpc.testing.Qpstest.ServerStats getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface PayloadOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.Payload) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + boolean hasType(); + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + grpc.testing.Qpstest.PayloadType getType(); + + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + boolean hasBody(); + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + com.google.protobuf.ByteString getBody(); + } + /** + * Protobuf type {@code grpc.testing.Payload} + */ + public static final class Payload extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.Payload) + PayloadOrBuilder { + // Use Payload.newBuilder() to construct. + private Payload(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Payload() { + type_ = 1; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Payload( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + grpc.testing.Qpstest.PayloadType value = grpc.testing.Qpstest.PayloadType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = rawValue; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + body_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return grpc.testing.Qpstest.internal_static_grpc_testing_Payload_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return grpc.testing.Qpstest.internal_static_grpc_testing_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + grpc.testing.Qpstest.Payload.class, grpc.testing.Qpstest.Payload.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public grpc.testing.Qpstest.PayloadType getType() { + grpc.testing.Qpstest.PayloadType result = grpc.testing.Qpstest.PayloadType.valueOf(type_); + return result == null ? grpc.testing.Qpstest.PayloadType.COMPRESSABLE : result; + } + + public static final int BODY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString body_; + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public boolean hasBody() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, body_); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, body_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static grpc.testing.Qpstest.Payload parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.Payload parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.Payload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.Payload parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.Payload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.Payload parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.Payload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static grpc.testing.Qpstest.Payload parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.Payload parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.Payload parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(grpc.testing.Qpstest.Payload prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.Payload} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public grpc.testing.Qpstest.PayloadType getType() { + grpc.testing.Qpstest.PayloadType result = grpc.testing.Qpstest.PayloadType.valueOf(type_); + return result == null ? grpc.testing.Qpstest.PayloadType.COMPRESSABLE : result; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public Builder setType(grpc.testing.Qpstest.PayloadType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 1; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public boolean hasBody() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public Builder setBody(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + body_ = value; + onChanged(); + return this; + } + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000002); + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:grpc.testing.Payload) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.Payload) + private static final grpc.testing.Qpstest.Payload defaultInstance; + static { + defaultInstance = new grpc.testing.Qpstest.Payload(); + } + + public static grpc.testing.Qpstest.Payload getDefaultInstance() { + return defaultInstance; + } + + public grpc.testing.Qpstest.Payload getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface HistogramDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.HistogramData) + com.google.protobuf.MessageOrBuilder { + + /** + *
repeated uint32 bucket = 1;
+ */
+ java.util.Listrepeated uint32 bucket = 1;
+ */
+ int getBucketCount();
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ int getBucket(int index);
+
+ /**
+ * required double min_seen = 2;
+ */
+ boolean hasMinSeen();
+ /**
+ * required double min_seen = 2;
+ */
+ double getMinSeen();
+
+ /**
+ * required double max_seen = 3;
+ */
+ boolean hasMaxSeen();
+ /**
+ * required double max_seen = 3;
+ */
+ double getMaxSeen();
+
+ /**
+ * required double sum = 4;
+ */
+ boolean hasSum();
+ /**
+ * required double sum = 4;
+ */
+ double getSum();
+
+ /**
+ * required double sum_of_squares = 5;
+ */
+ boolean hasSumOfSquares();
+ /**
+ * required double sum_of_squares = 5;
+ */
+ double getSumOfSquares();
+
+ /**
+ * required double count = 6;
+ */
+ boolean hasCount();
+ /**
+ * required double count = 6;
+ */
+ double getCount();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.HistogramData}
+ */
+ public static final class HistogramData extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.HistogramData)
+ HistogramDataOrBuilder {
+ // Use HistogramData.newBuilder() to construct.
+ private HistogramData(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private HistogramData() {
+ bucket_ = java.util.Collections.emptyList();
+ minSeen_ = 0D;
+ maxSeen_ = 0D;
+ sum_ = 0D;
+ sumOfSquares_ = 0D;
+ count_ = 0D;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private HistogramData(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ bucket_ = new java.util.ArrayListrepeated uint32 bucket = 1;
+ */
+ public java.util.Listrepeated uint32 bucket = 1;
+ */
+ public int getBucketCount() {
+ return bucket_.size();
+ }
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ public int getBucket(int index) {
+ return bucket_.get(index);
+ }
+
+ public static final int MIN_SEEN_FIELD_NUMBER = 2;
+ private double minSeen_;
+ /**
+ * required double min_seen = 2;
+ */
+ public boolean hasMinSeen() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required double min_seen = 2;
+ */
+ public double getMinSeen() {
+ return minSeen_;
+ }
+
+ public static final int MAX_SEEN_FIELD_NUMBER = 3;
+ private double maxSeen_;
+ /**
+ * required double max_seen = 3;
+ */
+ public boolean hasMaxSeen() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required double max_seen = 3;
+ */
+ public double getMaxSeen() {
+ return maxSeen_;
+ }
+
+ public static final int SUM_FIELD_NUMBER = 4;
+ private double sum_;
+ /**
+ * required double sum = 4;
+ */
+ public boolean hasSum() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required double sum = 4;
+ */
+ public double getSum() {
+ return sum_;
+ }
+
+ public static final int SUM_OF_SQUARES_FIELD_NUMBER = 5;
+ private double sumOfSquares_;
+ /**
+ * required double sum_of_squares = 5;
+ */
+ public boolean hasSumOfSquares() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * required double sum_of_squares = 5;
+ */
+ public double getSumOfSquares() {
+ return sumOfSquares_;
+ }
+
+ public static final int COUNT_FIELD_NUMBER = 6;
+ private double count_;
+ /**
+ * required double count = 6;
+ */
+ public boolean hasCount() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * required double count = 6;
+ */
+ public double getCount() {
+ return count_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (!hasMinSeen()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasMaxSeen()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasSum()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasSumOfSquares()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasCount()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < bucket_.size(); i++) {
+ output.writeUInt32(1, bucket_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeDouble(2, minSeen_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeDouble(3, maxSeen_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeDouble(4, sum_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeDouble(5, sumOfSquares_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeDouble(6, count_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < bucket_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(bucket_.get(i));
+ }
+ size += dataSize;
+ size += 1 * getBucketList().size();
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, minSeen_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, maxSeen_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, sum_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(5, sumOfSquares_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(6, count_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.HistogramData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.HistogramData parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.HistogramData prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.HistogramData}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated uint32 bucket = 1;
+ */
+ public java.util.Listrepeated uint32 bucket = 1;
+ */
+ public int getBucketCount() {
+ return bucket_.size();
+ }
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ public int getBucket(int index) {
+ return bucket_.get(index);
+ }
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ public Builder setBucket(
+ int index, int value) {
+ ensureBucketIsMutable();
+ bucket_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ public Builder addBucket(int value) {
+ ensureBucketIsMutable();
+ bucket_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ public Builder addAllBucket(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureBucketIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, bucket_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 bucket = 1;
+ */
+ public Builder clearBucket() {
+ bucket_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private double minSeen_ ;
+ /**
+ * required double min_seen = 2;
+ */
+ public boolean hasMinSeen() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required double min_seen = 2;
+ */
+ public double getMinSeen() {
+ return minSeen_;
+ }
+ /**
+ * required double min_seen = 2;
+ */
+ public Builder setMinSeen(double value) {
+ bitField0_ |= 0x00000002;
+ minSeen_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double min_seen = 2;
+ */
+ public Builder clearMinSeen() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ minSeen_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double maxSeen_ ;
+ /**
+ * required double max_seen = 3;
+ */
+ public boolean hasMaxSeen() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required double max_seen = 3;
+ */
+ public double getMaxSeen() {
+ return maxSeen_;
+ }
+ /**
+ * required double max_seen = 3;
+ */
+ public Builder setMaxSeen(double value) {
+ bitField0_ |= 0x00000004;
+ maxSeen_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double max_seen = 3;
+ */
+ public Builder clearMaxSeen() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ maxSeen_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double sum_ ;
+ /**
+ * required double sum = 4;
+ */
+ public boolean hasSum() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * required double sum = 4;
+ */
+ public double getSum() {
+ return sum_;
+ }
+ /**
+ * required double sum = 4;
+ */
+ public Builder setSum(double value) {
+ bitField0_ |= 0x00000008;
+ sum_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double sum = 4;
+ */
+ public Builder clearSum() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ sum_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double sumOfSquares_ ;
+ /**
+ * required double sum_of_squares = 5;
+ */
+ public boolean hasSumOfSquares() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * required double sum_of_squares = 5;
+ */
+ public double getSumOfSquares() {
+ return sumOfSquares_;
+ }
+ /**
+ * required double sum_of_squares = 5;
+ */
+ public Builder setSumOfSquares(double value) {
+ bitField0_ |= 0x00000010;
+ sumOfSquares_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double sum_of_squares = 5;
+ */
+ public Builder clearSumOfSquares() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ sumOfSquares_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double count_ ;
+ /**
+ * required double count = 6;
+ */
+ public boolean hasCount() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * required double count = 6;
+ */
+ public double getCount() {
+ return count_;
+ }
+ /**
+ * required double count = 6;
+ */
+ public Builder setCount(double value) {
+ bitField0_ |= 0x00000020;
+ count_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double count = 6;
+ */
+ public Builder clearCount() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ count_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.HistogramData)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.HistogramData)
+ private static final grpc.testing.Qpstest.HistogramData defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.HistogramData();
+ }
+
+ public static grpc.testing.Qpstest.HistogramData getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.HistogramData getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface ClientConfigOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.ClientConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated string server_targets = 1;
+ */
+ com.google.protobuf.ProtocolStringList
+ getServerTargetsList();
+ /**
+ * repeated string server_targets = 1;
+ */
+ int getServerTargetsCount();
+ /**
+ * repeated string server_targets = 1;
+ */
+ java.lang.String getServerTargets(int index);
+ /**
+ * repeated string server_targets = 1;
+ */
+ com.google.protobuf.ByteString
+ getServerTargetsBytes(int index);
+
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ boolean hasClientType();
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ grpc.testing.Qpstest.ClientType getClientType();
+
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ boolean hasEnableSsl();
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ boolean getEnableSsl();
+
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ boolean hasOutstandingRpcsPerChannel();
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ int getOutstandingRpcsPerChannel();
+
+ /**
+ * required int32 client_channels = 5;
+ */
+ boolean hasClientChannels();
+ /**
+ * required int32 client_channels = 5;
+ */
+ int getClientChannels();
+
+ /**
+ * required int32 payload_size = 6;
+ */
+ boolean hasPayloadSize();
+ /**
+ * required int32 payload_size = 6;
+ */
+ int getPayloadSize();
+
+ /**
+ * optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + boolean hasAsyncClientThreads(); + /** + *
optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + int getAsyncClientThreads(); + + /** + *
optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ boolean hasRpcType();
+ /**
+ * optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ grpc.testing.Qpstest.RpcType getRpcType();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientConfig}
+ */
+ public static final class ClientConfig extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ClientConfig)
+ ClientConfigOrBuilder {
+ // Use ClientConfig.newBuilder() to construct.
+ private ClientConfig(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ClientConfig() {
+ serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ clientType_ = 1;
+ enableSsl_ = false;
+ outstandingRpcsPerChannel_ = 0;
+ clientChannels_ = 0;
+ payloadSize_ = 0;
+ asyncClientThreads_ = 0;
+ rpcType_ = 1;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ClientConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ serverTargets_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ serverTargets_.add(bs);
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+ grpc.testing.Qpstest.ClientType value = grpc.testing.Qpstest.ClientType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(2, rawValue);
+ } else {
+ bitField0_ |= 0x00000001;
+ clientType_ = rawValue;
+ }
+ break;
+ }
+ case 24: {
+ bitField0_ |= 0x00000002;
+ enableSsl_ = input.readBool();
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000004;
+ outstandingRpcsPerChannel_ = input.readInt32();
+ break;
+ }
+ case 40: {
+ bitField0_ |= 0x00000008;
+ clientChannels_ = input.readInt32();
+ break;
+ }
+ case 48: {
+ bitField0_ |= 0x00000010;
+ payloadSize_ = input.readInt32();
+ break;
+ }
+ case 56: {
+ bitField0_ |= 0x00000020;
+ asyncClientThreads_ = input.readInt32();
+ break;
+ }
+ case 64: {
+ int rawValue = input.readEnum();
+ grpc.testing.Qpstest.RpcType value = grpc.testing.Qpstest.RpcType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(8, rawValue);
+ } else {
+ bitField0_ |= 0x00000040;
+ rpcType_ = rawValue;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ serverTargets_ = serverTargets_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientConfig_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ClientConfig.class, grpc.testing.Qpstest.ClientConfig.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parserrepeated string server_targets = 1;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getServerTargetsList() {
+ return serverTargets_;
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public int getServerTargetsCount() {
+ return serverTargets_.size();
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public java.lang.String getServerTargets(int index) {
+ return serverTargets_.get(index);
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public com.google.protobuf.ByteString
+ getServerTargetsBytes(int index) {
+ return serverTargets_.getByteString(index);
+ }
+
+ public static final int CLIENT_TYPE_FIELD_NUMBER = 2;
+ private int clientType_;
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ public boolean hasClientType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ public grpc.testing.Qpstest.ClientType getClientType() {
+ grpc.testing.Qpstest.ClientType result = grpc.testing.Qpstest.ClientType.valueOf(clientType_);
+ return result == null ? grpc.testing.Qpstest.ClientType.SYNCHRONOUS_CLIENT : result;
+ }
+
+ public static final int ENABLE_SSL_FIELD_NUMBER = 3;
+ private boolean enableSsl_;
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean hasEnableSsl() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean getEnableSsl() {
+ return enableSsl_;
+ }
+
+ public static final int OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER = 4;
+ private int outstandingRpcsPerChannel_;
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ public boolean hasOutstandingRpcsPerChannel() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ public int getOutstandingRpcsPerChannel() {
+ return outstandingRpcsPerChannel_;
+ }
+
+ public static final int CLIENT_CHANNELS_FIELD_NUMBER = 5;
+ private int clientChannels_;
+ /**
+ * required int32 client_channels = 5;
+ */
+ public boolean hasClientChannels() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * required int32 client_channels = 5;
+ */
+ public int getClientChannels() {
+ return clientChannels_;
+ }
+
+ public static final int PAYLOAD_SIZE_FIELD_NUMBER = 6;
+ private int payloadSize_;
+ /**
+ * required int32 payload_size = 6;
+ */
+ public boolean hasPayloadSize() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * required int32 payload_size = 6;
+ */
+ public int getPayloadSize() {
+ return payloadSize_;
+ }
+
+ public static final int ASYNC_CLIENT_THREADS_FIELD_NUMBER = 7;
+ private int asyncClientThreads_;
+ /**
+ * optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + public boolean hasAsyncClientThreads() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + public int getAsyncClientThreads() { + return asyncClientThreads_; + } + + public static final int RPC_TYPE_FIELD_NUMBER = 8; + private int rpcType_; + /** + *
optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ public boolean hasRpcType() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ public grpc.testing.Qpstest.RpcType getRpcType() {
+ grpc.testing.Qpstest.RpcType result = grpc.testing.Qpstest.RpcType.valueOf(rpcType_);
+ return result == null ? grpc.testing.Qpstest.RpcType.UNARY : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (!hasClientType()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasOutstandingRpcsPerChannel()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasClientChannels()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasPayloadSize()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < serverTargets_.size(); i++) {
+ output.writeBytes(1, serverTargets_.getByteString(i));
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeEnum(2, clientType_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBool(3, enableSsl_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt32(4, outstandingRpcsPerChannel_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt32(5, clientChannels_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeInt32(6, payloadSize_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt32(7, asyncClientThreads_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ output.writeEnum(8, rpcType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < serverTargets_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(serverTargets_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getServerTargetsList().size();
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, clientType_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, enableSsl_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(4, outstandingRpcsPerChannel_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(5, clientChannels_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(6, payloadSize_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(7, asyncClientThreads_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(8, rpcType_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ClientConfig prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientConfig}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated string server_targets = 1;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getServerTargetsList() {
+ return serverTargets_.getUnmodifiableView();
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public int getServerTargetsCount() {
+ return serverTargets_.size();
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public java.lang.String getServerTargets(int index) {
+ return serverTargets_.get(index);
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public com.google.protobuf.ByteString
+ getServerTargetsBytes(int index) {
+ return serverTargets_.getByteString(index);
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public Builder setServerTargets(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerTargetsIsMutable();
+ serverTargets_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public Builder addServerTargets(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerTargetsIsMutable();
+ serverTargets_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public Builder addAllServerTargets(
+ java.lang.Iterablerepeated string server_targets = 1;
+ */
+ public Builder clearServerTargets() {
+ serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string server_targets = 1;
+ */
+ public Builder addServerTargetsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerTargetsIsMutable();
+ serverTargets_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private int clientType_ = 1;
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ public boolean hasClientType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ public grpc.testing.Qpstest.ClientType getClientType() {
+ grpc.testing.Qpstest.ClientType result = grpc.testing.Qpstest.ClientType.valueOf(clientType_);
+ return result == null ? grpc.testing.Qpstest.ClientType.SYNCHRONOUS_CLIENT : result;
+ }
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ public Builder setClientType(grpc.testing.Qpstest.ClientType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ clientType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * required .grpc.testing.ClientType client_type = 2;
+ */
+ public Builder clearClientType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ clientType_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableSsl_ ;
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean hasEnableSsl() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean getEnableSsl() {
+ return enableSsl_;
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public Builder setEnableSsl(boolean value) {
+ bitField0_ |= 0x00000004;
+ enableSsl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public Builder clearEnableSsl() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ enableSsl_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int outstandingRpcsPerChannel_ ;
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ public boolean hasOutstandingRpcsPerChannel() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ public int getOutstandingRpcsPerChannel() {
+ return outstandingRpcsPerChannel_;
+ }
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ public Builder setOutstandingRpcsPerChannel(int value) {
+ bitField0_ |= 0x00000008;
+ outstandingRpcsPerChannel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required int32 outstanding_rpcs_per_channel = 4;
+ */
+ public Builder clearOutstandingRpcsPerChannel() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ outstandingRpcsPerChannel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int clientChannels_ ;
+ /**
+ * required int32 client_channels = 5;
+ */
+ public boolean hasClientChannels() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * required int32 client_channels = 5;
+ */
+ public int getClientChannels() {
+ return clientChannels_;
+ }
+ /**
+ * required int32 client_channels = 5;
+ */
+ public Builder setClientChannels(int value) {
+ bitField0_ |= 0x00000010;
+ clientChannels_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required int32 client_channels = 5;
+ */
+ public Builder clearClientChannels() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ clientChannels_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int payloadSize_ ;
+ /**
+ * required int32 payload_size = 6;
+ */
+ public boolean hasPayloadSize() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * required int32 payload_size = 6;
+ */
+ public int getPayloadSize() {
+ return payloadSize_;
+ }
+ /**
+ * required int32 payload_size = 6;
+ */
+ public Builder setPayloadSize(int value) {
+ bitField0_ |= 0x00000020;
+ payloadSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required int32 payload_size = 6;
+ */
+ public Builder clearPayloadSize() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ payloadSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int asyncClientThreads_ ;
+ /**
+ * optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + public boolean hasAsyncClientThreads() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + public int getAsyncClientThreads() { + return asyncClientThreads_; + } + /** + *
optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + public Builder setAsyncClientThreads(int value) { + bitField0_ |= 0x00000040; + asyncClientThreads_ = value; + onChanged(); + return this; + } + /** + *
optional int32 async_client_threads = 7;
+ *
+ * + * only for async client: + *+ */ + public Builder clearAsyncClientThreads() { + bitField0_ = (bitField0_ & ~0x00000040); + asyncClientThreads_ = 0; + onChanged(); + return this; + } + + private int rpcType_ = 1; + /** + *
optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ public boolean hasRpcType() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ public grpc.testing.Qpstest.RpcType getRpcType() {
+ grpc.testing.Qpstest.RpcType result = grpc.testing.Qpstest.RpcType.valueOf(rpcType_);
+ return result == null ? grpc.testing.Qpstest.RpcType.UNARY : result;
+ }
+ /**
+ * optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ public Builder setRpcType(grpc.testing.Qpstest.RpcType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ rpcType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .grpc.testing.RpcType rpc_type = 8 [default = UNARY];
+ */
+ public Builder clearRpcType() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ rpcType_ = 1;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ClientConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ClientConfig)
+ private static final grpc.testing.Qpstest.ClientConfig defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ClientConfig();
+ }
+
+ public static grpc.testing.Qpstest.ClientConfig getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ClientConfig getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface MarkOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.Mark)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code grpc.testing.Mark}
+ *
+ * + * Request current stats + *+ */ + public static final class Mark extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.Mark) + MarkOrBuilder { + // Use Mark.newBuilder() to construct. + private Mark(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Mark() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Mark( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return grpc.testing.Qpstest.internal_static_grpc_testing_Mark_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return grpc.testing.Qpstest.internal_static_grpc_testing_Mark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + grpc.testing.Qpstest.Mark.class, grpc.testing.Qpstest.Mark.Builder.class); + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Mark parsePartialFrom( + 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; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static grpc.testing.Qpstest.Mark parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.Mark parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.Mark parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.Mark parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.Mark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.Mark parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.Mark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static grpc.testing.Qpstest.Mark parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.Mark parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.Mark parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(grpc.testing.Qpstest.Mark prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.Mark} + * + *
+ * Request current stats + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .grpc.testing.ClientConfig setup = 1;
+ */
+ boolean hasSetup();
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ grpc.testing.Qpstest.ClientConfig getSetup();
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ grpc.testing.Qpstest.ClientConfigOrBuilder getSetupOrBuilder();
+
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ boolean hasMark();
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ grpc.testing.Qpstest.Mark getMark();
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ grpc.testing.Qpstest.MarkOrBuilder getMarkOrBuilder();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientArgs}
+ */
+ public static final class ClientArgs extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ClientArgs)
+ ClientArgsOrBuilder {
+ // Use ClientArgs.newBuilder() to construct.
+ private ClientArgs(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ClientArgs() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ClientArgs(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ grpc.testing.Qpstest.ClientConfig.Builder subBuilder = null;
+ if (argtypeCase_ == 1) {
+ subBuilder = ((grpc.testing.Qpstest.ClientConfig) argtype_).toBuilder();
+ }
+ argtype_ = input.readMessage(grpc.testing.Qpstest.ClientConfig.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((grpc.testing.Qpstest.ClientConfig) argtype_);
+ argtype_ = subBuilder.buildPartial();
+ }
+ argtypeCase_ = 1;
+ break;
+ }
+ case 18: {
+ grpc.testing.Qpstest.Mark.Builder subBuilder = null;
+ if (argtypeCase_ == 2) {
+ subBuilder = ((grpc.testing.Qpstest.Mark) argtype_).toBuilder();
+ }
+ argtype_ = input.readMessage(grpc.testing.Qpstest.Mark.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((grpc.testing.Qpstest.Mark) argtype_);
+ argtype_ = subBuilder.buildPartial();
+ }
+ argtypeCase_ = 2;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientArgs_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientArgs_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ClientArgs.class, grpc.testing.Qpstest.ClientArgs.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parseroptional .grpc.testing.ClientConfig setup = 1;
+ */
+ public boolean hasSetup() {
+ return argtypeCase_ == 1;
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ClientConfig getSetup() {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ClientConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ClientConfig.getDefaultInstance();
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ClientConfigOrBuilder getSetupOrBuilder() {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ClientConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ClientConfig.getDefaultInstance();
+ }
+
+ public static final int MARK_FIELD_NUMBER = 2;
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public boolean hasMark() {
+ return argtypeCase_ == 2;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.Mark getMark() {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.MarkOrBuilder getMarkOrBuilder() {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (hasSetup()) {
+ if (!getSetup().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (argtypeCase_ == 1) {
+ output.writeMessage(1, (grpc.testing.Qpstest.ClientConfig) argtype_);
+ }
+ if (argtypeCase_ == 2) {
+ output.writeMessage(2, (grpc.testing.Qpstest.Mark) argtype_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (argtypeCase_ == 1) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, (grpc.testing.Qpstest.ClientConfig) argtype_);
+ }
+ if (argtypeCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, (grpc.testing.Qpstest.Mark) argtype_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientArgs parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ClientArgs prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientArgs}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional .grpc.testing.ClientConfig setup = 1;
+ */
+ public boolean hasSetup() {
+ return argtypeCase_ == 1;
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ClientConfig getSetup() {
+ if (setupBuilder_ == null) {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ClientConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ClientConfig.getDefaultInstance();
+ } else {
+ if (argtypeCase_ == 1) {
+ return setupBuilder_.getMessage();
+ }
+ return grpc.testing.Qpstest.ClientConfig.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public Builder setSetup(grpc.testing.Qpstest.ClientConfig value) {
+ if (setupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ argtype_ = value;
+ onChanged();
+ } else {
+ setupBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 1;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public Builder setSetup(
+ grpc.testing.Qpstest.ClientConfig.Builder builderForValue) {
+ if (setupBuilder_ == null) {
+ argtype_ = builderForValue.build();
+ onChanged();
+ } else {
+ setupBuilder_.setMessage(builderForValue.build());
+ }
+ argtypeCase_ = 1;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public Builder mergeSetup(grpc.testing.Qpstest.ClientConfig value) {
+ if (setupBuilder_ == null) {
+ if (argtypeCase_ == 1 &&
+ argtype_ != grpc.testing.Qpstest.ClientConfig.getDefaultInstance()) {
+ argtype_ = grpc.testing.Qpstest.ClientConfig.newBuilder((grpc.testing.Qpstest.ClientConfig) argtype_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ argtype_ = value;
+ }
+ onChanged();
+ } else {
+ if (argtypeCase_ == 1) {
+ setupBuilder_.mergeFrom(value);
+ }
+ setupBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 1;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public Builder clearSetup() {
+ if (setupBuilder_ == null) {
+ if (argtypeCase_ == 1) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ onChanged();
+ }
+ } else {
+ if (argtypeCase_ == 1) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ }
+ setupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ClientConfig.Builder getSetupBuilder() {
+ return getSetupFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ClientConfigOrBuilder getSetupOrBuilder() {
+ if ((argtypeCase_ == 1) && (setupBuilder_ != null)) {
+ return setupBuilder_.getMessageOrBuilder();
+ } else {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ClientConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ClientConfig.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.ClientConfig setup = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ClientConfig, grpc.testing.Qpstest.ClientConfig.Builder, grpc.testing.Qpstest.ClientConfigOrBuilder>
+ getSetupFieldBuilder() {
+ if (setupBuilder_ == null) {
+ if (!(argtypeCase_ == 1)) {
+ argtype_ = grpc.testing.Qpstest.ClientConfig.getDefaultInstance();
+ }
+ setupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ClientConfig, grpc.testing.Qpstest.ClientConfig.Builder, grpc.testing.Qpstest.ClientConfigOrBuilder>(
+ (grpc.testing.Qpstest.ClientConfig) argtype_,
+ getParentForChildren(),
+ isClean());
+ argtype_ = null;
+ }
+ argtypeCase_ = 1;
+ onChanged();;
+ return setupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Mark, grpc.testing.Qpstest.Mark.Builder, grpc.testing.Qpstest.MarkOrBuilder> markBuilder_;
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public boolean hasMark() {
+ return argtypeCase_ == 2;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.Mark getMark() {
+ if (markBuilder_ == null) {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ } else {
+ if (argtypeCase_ == 2) {
+ return markBuilder_.getMessage();
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder setMark(grpc.testing.Qpstest.Mark value) {
+ if (markBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ argtype_ = value;
+ onChanged();
+ } else {
+ markBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 2;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder setMark(
+ grpc.testing.Qpstest.Mark.Builder builderForValue) {
+ if (markBuilder_ == null) {
+ argtype_ = builderForValue.build();
+ onChanged();
+ } else {
+ markBuilder_.setMessage(builderForValue.build());
+ }
+ argtypeCase_ = 2;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder mergeMark(grpc.testing.Qpstest.Mark value) {
+ if (markBuilder_ == null) {
+ if (argtypeCase_ == 2 &&
+ argtype_ != grpc.testing.Qpstest.Mark.getDefaultInstance()) {
+ argtype_ = grpc.testing.Qpstest.Mark.newBuilder((grpc.testing.Qpstest.Mark) argtype_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ argtype_ = value;
+ }
+ onChanged();
+ } else {
+ if (argtypeCase_ == 2) {
+ markBuilder_.mergeFrom(value);
+ }
+ markBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 2;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder clearMark() {
+ if (markBuilder_ == null) {
+ if (argtypeCase_ == 2) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ onChanged();
+ }
+ } else {
+ if (argtypeCase_ == 2) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ }
+ markBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.Mark.Builder getMarkBuilder() {
+ return getMarkFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.MarkOrBuilder getMarkOrBuilder() {
+ if ((argtypeCase_ == 2) && (markBuilder_ != null)) {
+ return markBuilder_.getMessageOrBuilder();
+ } else {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Mark, grpc.testing.Qpstest.Mark.Builder, grpc.testing.Qpstest.MarkOrBuilder>
+ getMarkFieldBuilder() {
+ if (markBuilder_ == null) {
+ if (!(argtypeCase_ == 2)) {
+ argtype_ = grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ markBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Mark, grpc.testing.Qpstest.Mark.Builder, grpc.testing.Qpstest.MarkOrBuilder>(
+ (grpc.testing.Qpstest.Mark) argtype_,
+ getParentForChildren(),
+ isClean());
+ argtype_ = null;
+ }
+ argtypeCase_ = 2;
+ onChanged();;
+ return markBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ClientArgs)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ClientArgs)
+ private static final grpc.testing.Qpstest.ClientArgs defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ClientArgs();
+ }
+
+ public static grpc.testing.Qpstest.ClientArgs getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ClientArgs getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface ClientStatsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.ClientStats)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ boolean hasLatencies();
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ grpc.testing.Qpstest.HistogramData getLatencies();
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ grpc.testing.Qpstest.HistogramDataOrBuilder getLatenciesOrBuilder();
+
+ /**
+ * required double time_elapsed = 3;
+ */
+ boolean hasTimeElapsed();
+ /**
+ * required double time_elapsed = 3;
+ */
+ double getTimeElapsed();
+
+ /**
+ * required double time_user = 4;
+ */
+ boolean hasTimeUser();
+ /**
+ * required double time_user = 4;
+ */
+ double getTimeUser();
+
+ /**
+ * required double time_system = 5;
+ */
+ boolean hasTimeSystem();
+ /**
+ * required double time_system = 5;
+ */
+ double getTimeSystem();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientStats}
+ */
+ public static final class ClientStats extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ClientStats)
+ ClientStatsOrBuilder {
+ // Use ClientStats.newBuilder() to construct.
+ private ClientStats(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ClientStats() {
+ timeElapsed_ = 0D;
+ timeUser_ = 0D;
+ timeSystem_ = 0D;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ClientStats(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ grpc.testing.Qpstest.HistogramData.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = latencies_.toBuilder();
+ }
+ latencies_ = input.readMessage(grpc.testing.Qpstest.HistogramData.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(latencies_);
+ latencies_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 25: {
+ bitField0_ |= 0x00000002;
+ timeElapsed_ = input.readDouble();
+ break;
+ }
+ case 33: {
+ bitField0_ |= 0x00000004;
+ timeUser_ = input.readDouble();
+ break;
+ }
+ case 41: {
+ bitField0_ |= 0x00000008;
+ timeSystem_ = input.readDouble();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientStats_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientStats_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ClientStats.class, grpc.testing.Qpstest.ClientStats.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parserrequired .grpc.testing.HistogramData latencies = 1;
+ */
+ public boolean hasLatencies() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public grpc.testing.Qpstest.HistogramData getLatencies() {
+ return latencies_ == null ? grpc.testing.Qpstest.HistogramData.getDefaultInstance() : latencies_;
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public grpc.testing.Qpstest.HistogramDataOrBuilder getLatenciesOrBuilder() {
+ return latencies_ == null ? grpc.testing.Qpstest.HistogramData.getDefaultInstance() : latencies_;
+ }
+
+ public static final int TIME_ELAPSED_FIELD_NUMBER = 3;
+ private double timeElapsed_;
+ /**
+ * required double time_elapsed = 3;
+ */
+ public boolean hasTimeElapsed() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required double time_elapsed = 3;
+ */
+ public double getTimeElapsed() {
+ return timeElapsed_;
+ }
+
+ public static final int TIME_USER_FIELD_NUMBER = 4;
+ private double timeUser_;
+ /**
+ * required double time_user = 4;
+ */
+ public boolean hasTimeUser() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required double time_user = 4;
+ */
+ public double getTimeUser() {
+ return timeUser_;
+ }
+
+ public static final int TIME_SYSTEM_FIELD_NUMBER = 5;
+ private double timeSystem_;
+ /**
+ * required double time_system = 5;
+ */
+ public boolean hasTimeSystem() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * required double time_system = 5;
+ */
+ public double getTimeSystem() {
+ return timeSystem_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (!hasLatencies()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasTimeElapsed()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasTimeUser()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasTimeSystem()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getLatencies().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getLatencies());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeDouble(3, timeElapsed_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeDouble(4, timeUser_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeDouble(5, timeSystem_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getLatencies());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, timeElapsed_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, timeUser_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(5, timeSystem_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ClientStats parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientStats parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ClientStats prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientStats}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrequired .grpc.testing.HistogramData latencies = 1;
+ */
+ public boolean hasLatencies() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public grpc.testing.Qpstest.HistogramData getLatencies() {
+ if (latenciesBuilder_ == null) {
+ return latencies_ == null ? grpc.testing.Qpstest.HistogramData.getDefaultInstance() : latencies_;
+ } else {
+ return latenciesBuilder_.getMessage();
+ }
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public Builder setLatencies(grpc.testing.Qpstest.HistogramData value) {
+ if (latenciesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ latencies_ = value;
+ onChanged();
+ } else {
+ latenciesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public Builder setLatencies(
+ grpc.testing.Qpstest.HistogramData.Builder builderForValue) {
+ if (latenciesBuilder_ == null) {
+ latencies_ = builderForValue.build();
+ onChanged();
+ } else {
+ latenciesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public Builder mergeLatencies(grpc.testing.Qpstest.HistogramData value) {
+ if (latenciesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ latencies_ != null &&
+ latencies_ != grpc.testing.Qpstest.HistogramData.getDefaultInstance()) {
+ latencies_ =
+ grpc.testing.Qpstest.HistogramData.newBuilder(latencies_).mergeFrom(value).buildPartial();
+ } else {
+ latencies_ = value;
+ }
+ onChanged();
+ } else {
+ latenciesBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public Builder clearLatencies() {
+ if (latenciesBuilder_ == null) {
+ latencies_ = null;
+ onChanged();
+ } else {
+ latenciesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public grpc.testing.Qpstest.HistogramData.Builder getLatenciesBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getLatenciesFieldBuilder().getBuilder();
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ public grpc.testing.Qpstest.HistogramDataOrBuilder getLatenciesOrBuilder() {
+ if (latenciesBuilder_ != null) {
+ return latenciesBuilder_.getMessageOrBuilder();
+ } else {
+ return latencies_ == null ?
+ grpc.testing.Qpstest.HistogramData.getDefaultInstance() : latencies_;
+ }
+ }
+ /**
+ * required .grpc.testing.HistogramData latencies = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.HistogramData, grpc.testing.Qpstest.HistogramData.Builder, grpc.testing.Qpstest.HistogramDataOrBuilder>
+ getLatenciesFieldBuilder() {
+ if (latenciesBuilder_ == null) {
+ latenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.HistogramData, grpc.testing.Qpstest.HistogramData.Builder, grpc.testing.Qpstest.HistogramDataOrBuilder>(
+ getLatencies(),
+ getParentForChildren(),
+ isClean());
+ latencies_ = null;
+ }
+ return latenciesBuilder_;
+ }
+
+ private double timeElapsed_ ;
+ /**
+ * required double time_elapsed = 3;
+ */
+ public boolean hasTimeElapsed() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required double time_elapsed = 3;
+ */
+ public double getTimeElapsed() {
+ return timeElapsed_;
+ }
+ /**
+ * required double time_elapsed = 3;
+ */
+ public Builder setTimeElapsed(double value) {
+ bitField0_ |= 0x00000002;
+ timeElapsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double time_elapsed = 3;
+ */
+ public Builder clearTimeElapsed() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ timeElapsed_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double timeUser_ ;
+ /**
+ * required double time_user = 4;
+ */
+ public boolean hasTimeUser() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required double time_user = 4;
+ */
+ public double getTimeUser() {
+ return timeUser_;
+ }
+ /**
+ * required double time_user = 4;
+ */
+ public Builder setTimeUser(double value) {
+ bitField0_ |= 0x00000004;
+ timeUser_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double time_user = 4;
+ */
+ public Builder clearTimeUser() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ timeUser_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double timeSystem_ ;
+ /**
+ * required double time_system = 5;
+ */
+ public boolean hasTimeSystem() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * required double time_system = 5;
+ */
+ public double getTimeSystem() {
+ return timeSystem_;
+ }
+ /**
+ * required double time_system = 5;
+ */
+ public Builder setTimeSystem(double value) {
+ bitField0_ |= 0x00000008;
+ timeSystem_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required double time_system = 5;
+ */
+ public Builder clearTimeSystem() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ timeSystem_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ClientStats)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ClientStats)
+ private static final grpc.testing.Qpstest.ClientStats defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ClientStats();
+ }
+
+ public static grpc.testing.Qpstest.ClientStats getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ClientStats getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface ClientStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.ClientStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ boolean hasStats();
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ grpc.testing.Qpstest.ClientStats getStats();
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ grpc.testing.Qpstest.ClientStatsOrBuilder getStatsOrBuilder();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientStatus}
+ */
+ public static final class ClientStatus extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ClientStatus)
+ ClientStatusOrBuilder {
+ // Use ClientStatus.newBuilder() to construct.
+ private ClientStatus(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ClientStatus() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ClientStatus(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ grpc.testing.Qpstest.ClientStats.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = stats_.toBuilder();
+ }
+ stats_ = input.readMessage(grpc.testing.Qpstest.ClientStats.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(stats_);
+ stats_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientStatus_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ClientStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ClientStatus.class, grpc.testing.Qpstest.ClientStatus.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parseroptional .grpc.testing.ClientStats stats = 1;
+ */
+ public boolean hasStats() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ClientStats getStats() {
+ return stats_ == null ? grpc.testing.Qpstest.ClientStats.getDefaultInstance() : stats_;
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ClientStatsOrBuilder getStatsOrBuilder() {
+ return stats_ == null ? grpc.testing.Qpstest.ClientStats.getDefaultInstance() : stats_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (hasStats()) {
+ if (!getStats().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getStats());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getStats());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ClientStatus parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ClientStatus prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ClientStatus}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional .grpc.testing.ClientStats stats = 1;
+ */
+ public boolean hasStats() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ClientStats getStats() {
+ if (statsBuilder_ == null) {
+ return stats_ == null ? grpc.testing.Qpstest.ClientStats.getDefaultInstance() : stats_;
+ } else {
+ return statsBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public Builder setStats(grpc.testing.Qpstest.ClientStats value) {
+ if (statsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stats_ = value;
+ onChanged();
+ } else {
+ statsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public Builder setStats(
+ grpc.testing.Qpstest.ClientStats.Builder builderForValue) {
+ if (statsBuilder_ == null) {
+ stats_ = builderForValue.build();
+ onChanged();
+ } else {
+ statsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public Builder mergeStats(grpc.testing.Qpstest.ClientStats value) {
+ if (statsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ stats_ != null &&
+ stats_ != grpc.testing.Qpstest.ClientStats.getDefaultInstance()) {
+ stats_ =
+ grpc.testing.Qpstest.ClientStats.newBuilder(stats_).mergeFrom(value).buildPartial();
+ } else {
+ stats_ = value;
+ }
+ onChanged();
+ } else {
+ statsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public Builder clearStats() {
+ if (statsBuilder_ == null) {
+ stats_ = null;
+ onChanged();
+ } else {
+ statsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ClientStats.Builder getStatsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getStatsFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ClientStatsOrBuilder getStatsOrBuilder() {
+ if (statsBuilder_ != null) {
+ return statsBuilder_.getMessageOrBuilder();
+ } else {
+ return stats_ == null ?
+ grpc.testing.Qpstest.ClientStats.getDefaultInstance() : stats_;
+ }
+ }
+ /**
+ * optional .grpc.testing.ClientStats stats = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ClientStats, grpc.testing.Qpstest.ClientStats.Builder, grpc.testing.Qpstest.ClientStatsOrBuilder>
+ getStatsFieldBuilder() {
+ if (statsBuilder_ == null) {
+ statsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ClientStats, grpc.testing.Qpstest.ClientStats.Builder, grpc.testing.Qpstest.ClientStatsOrBuilder>(
+ getStats(),
+ getParentForChildren(),
+ isClean());
+ stats_ = null;
+ }
+ return statsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ClientStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ClientStatus)
+ private static final grpc.testing.Qpstest.ClientStatus defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ClientStatus();
+ }
+
+ public static grpc.testing.Qpstest.ClientStatus getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ClientStatus getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface ServerConfigOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.ServerConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * required .grpc.testing.ServerType server_type = 1;
+ */
+ boolean hasServerType();
+ /**
+ * required .grpc.testing.ServerType server_type = 1;
+ */
+ grpc.testing.Qpstest.ServerType getServerType();
+
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ boolean hasThreads();
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ int getThreads();
+
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ boolean hasEnableSsl();
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ boolean getEnableSsl();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ServerConfig}
+ */
+ public static final class ServerConfig extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ServerConfig)
+ ServerConfigOrBuilder {
+ // Use ServerConfig.newBuilder() to construct.
+ private ServerConfig(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ServerConfig() {
+ serverType_ = 1;
+ threads_ = 1;
+ enableSsl_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ServerConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+ int rawValue = input.readEnum();
+ grpc.testing.Qpstest.ServerType value = grpc.testing.Qpstest.ServerType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(1, rawValue);
+ } else {
+ bitField0_ |= 0x00000001;
+ serverType_ = rawValue;
+ }
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ threads_ = input.readInt32();
+ break;
+ }
+ case 24: {
+ bitField0_ |= 0x00000004;
+ enableSsl_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ServerConfig_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ServerConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ServerConfig.class, grpc.testing.Qpstest.ServerConfig.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parserrequired .grpc.testing.ServerType server_type = 1;
+ */
+ public boolean hasServerType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required .grpc.testing.ServerType server_type = 1;
+ */
+ public grpc.testing.Qpstest.ServerType getServerType() {
+ grpc.testing.Qpstest.ServerType result = grpc.testing.Qpstest.ServerType.valueOf(serverType_);
+ return result == null ? grpc.testing.Qpstest.ServerType.SYNCHRONOUS_SERVER : result;
+ }
+
+ public static final int THREADS_FIELD_NUMBER = 2;
+ private int threads_;
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ public boolean hasThreads() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ public int getThreads() {
+ return threads_;
+ }
+
+ public static final int ENABLE_SSL_FIELD_NUMBER = 3;
+ private boolean enableSsl_;
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean hasEnableSsl() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean getEnableSsl() {
+ return enableSsl_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (!hasServerType()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeEnum(1, serverType_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt32(2, threads_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBool(3, enableSsl_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, serverType_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, threads_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, enableSsl_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ServerConfig prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ServerConfig}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrequired .grpc.testing.ServerType server_type = 1;
+ */
+ public boolean hasServerType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required .grpc.testing.ServerType server_type = 1;
+ */
+ public grpc.testing.Qpstest.ServerType getServerType() {
+ grpc.testing.Qpstest.ServerType result = grpc.testing.Qpstest.ServerType.valueOf(serverType_);
+ return result == null ? grpc.testing.Qpstest.ServerType.SYNCHRONOUS_SERVER : result;
+ }
+ /**
+ * required .grpc.testing.ServerType server_type = 1;
+ */
+ public Builder setServerType(grpc.testing.Qpstest.ServerType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ serverType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * required .grpc.testing.ServerType server_type = 1;
+ */
+ public Builder clearServerType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ serverType_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private int threads_ = 1;
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ public boolean hasThreads() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ public int getThreads() {
+ return threads_;
+ }
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ public Builder setThreads(int value) {
+ bitField0_ |= 0x00000002;
+ threads_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 threads = 2 [default = 1];
+ */
+ public Builder clearThreads() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ threads_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableSsl_ ;
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean hasEnableSsl() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public boolean getEnableSsl() {
+ return enableSsl_;
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public Builder setEnableSsl(boolean value) {
+ bitField0_ |= 0x00000004;
+ enableSsl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool enable_ssl = 3 [default = false];
+ */
+ public Builder clearEnableSsl() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ enableSsl_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ServerConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ServerConfig)
+ private static final grpc.testing.Qpstest.ServerConfig defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ServerConfig();
+ }
+
+ public static grpc.testing.Qpstest.ServerConfig getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ServerConfig getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface ServerArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.ServerArgs)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ boolean hasSetup();
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ grpc.testing.Qpstest.ServerConfig getSetup();
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ grpc.testing.Qpstest.ServerConfigOrBuilder getSetupOrBuilder();
+
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ boolean hasMark();
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ grpc.testing.Qpstest.Mark getMark();
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ grpc.testing.Qpstest.MarkOrBuilder getMarkOrBuilder();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ServerArgs}
+ */
+ public static final class ServerArgs extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ServerArgs)
+ ServerArgsOrBuilder {
+ // Use ServerArgs.newBuilder() to construct.
+ private ServerArgs(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ServerArgs() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ServerArgs(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ grpc.testing.Qpstest.ServerConfig.Builder subBuilder = null;
+ if (argtypeCase_ == 1) {
+ subBuilder = ((grpc.testing.Qpstest.ServerConfig) argtype_).toBuilder();
+ }
+ argtype_ = input.readMessage(grpc.testing.Qpstest.ServerConfig.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((grpc.testing.Qpstest.ServerConfig) argtype_);
+ argtype_ = subBuilder.buildPartial();
+ }
+ argtypeCase_ = 1;
+ break;
+ }
+ case 18: {
+ grpc.testing.Qpstest.Mark.Builder subBuilder = null;
+ if (argtypeCase_ == 2) {
+ subBuilder = ((grpc.testing.Qpstest.Mark) argtype_).toBuilder();
+ }
+ argtype_ = input.readMessage(grpc.testing.Qpstest.Mark.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((grpc.testing.Qpstest.Mark) argtype_);
+ argtype_ = subBuilder.buildPartial();
+ }
+ argtypeCase_ = 2;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ServerArgs_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ServerArgs_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ServerArgs.class, grpc.testing.Qpstest.ServerArgs.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parseroptional .grpc.testing.ServerConfig setup = 1;
+ */
+ public boolean hasSetup() {
+ return argtypeCase_ == 1;
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ServerConfig getSetup() {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ServerConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ServerConfig.getDefaultInstance();
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ServerConfigOrBuilder getSetupOrBuilder() {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ServerConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ServerConfig.getDefaultInstance();
+ }
+
+ public static final int MARK_FIELD_NUMBER = 2;
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public boolean hasMark() {
+ return argtypeCase_ == 2;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.Mark getMark() {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.MarkOrBuilder getMarkOrBuilder() {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (hasSetup()) {
+ if (!getSetup().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (argtypeCase_ == 1) {
+ output.writeMessage(1, (grpc.testing.Qpstest.ServerConfig) argtype_);
+ }
+ if (argtypeCase_ == 2) {
+ output.writeMessage(2, (grpc.testing.Qpstest.Mark) argtype_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (argtypeCase_ == 1) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, (grpc.testing.Qpstest.ServerConfig) argtype_);
+ }
+ if (argtypeCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, (grpc.testing.Qpstest.Mark) argtype_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerArgs parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ServerArgs prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ServerArgs}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional .grpc.testing.ServerConfig setup = 1;
+ */
+ public boolean hasSetup() {
+ return argtypeCase_ == 1;
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ServerConfig getSetup() {
+ if (setupBuilder_ == null) {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ServerConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ServerConfig.getDefaultInstance();
+ } else {
+ if (argtypeCase_ == 1) {
+ return setupBuilder_.getMessage();
+ }
+ return grpc.testing.Qpstest.ServerConfig.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public Builder setSetup(grpc.testing.Qpstest.ServerConfig value) {
+ if (setupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ argtype_ = value;
+ onChanged();
+ } else {
+ setupBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 1;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public Builder setSetup(
+ grpc.testing.Qpstest.ServerConfig.Builder builderForValue) {
+ if (setupBuilder_ == null) {
+ argtype_ = builderForValue.build();
+ onChanged();
+ } else {
+ setupBuilder_.setMessage(builderForValue.build());
+ }
+ argtypeCase_ = 1;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public Builder mergeSetup(grpc.testing.Qpstest.ServerConfig value) {
+ if (setupBuilder_ == null) {
+ if (argtypeCase_ == 1 &&
+ argtype_ != grpc.testing.Qpstest.ServerConfig.getDefaultInstance()) {
+ argtype_ = grpc.testing.Qpstest.ServerConfig.newBuilder((grpc.testing.Qpstest.ServerConfig) argtype_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ argtype_ = value;
+ }
+ onChanged();
+ } else {
+ if (argtypeCase_ == 1) {
+ setupBuilder_.mergeFrom(value);
+ }
+ setupBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 1;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public Builder clearSetup() {
+ if (setupBuilder_ == null) {
+ if (argtypeCase_ == 1) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ onChanged();
+ }
+ } else {
+ if (argtypeCase_ == 1) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ }
+ setupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ServerConfig.Builder getSetupBuilder() {
+ return getSetupFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ public grpc.testing.Qpstest.ServerConfigOrBuilder getSetupOrBuilder() {
+ if ((argtypeCase_ == 1) && (setupBuilder_ != null)) {
+ return setupBuilder_.getMessageOrBuilder();
+ } else {
+ if (argtypeCase_ == 1) {
+ return (grpc.testing.Qpstest.ServerConfig) argtype_;
+ }
+ return grpc.testing.Qpstest.ServerConfig.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.ServerConfig setup = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ServerConfig, grpc.testing.Qpstest.ServerConfig.Builder, grpc.testing.Qpstest.ServerConfigOrBuilder>
+ getSetupFieldBuilder() {
+ if (setupBuilder_ == null) {
+ if (!(argtypeCase_ == 1)) {
+ argtype_ = grpc.testing.Qpstest.ServerConfig.getDefaultInstance();
+ }
+ setupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ServerConfig, grpc.testing.Qpstest.ServerConfig.Builder, grpc.testing.Qpstest.ServerConfigOrBuilder>(
+ (grpc.testing.Qpstest.ServerConfig) argtype_,
+ getParentForChildren(),
+ isClean());
+ argtype_ = null;
+ }
+ argtypeCase_ = 1;
+ onChanged();;
+ return setupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Mark, grpc.testing.Qpstest.Mark.Builder, grpc.testing.Qpstest.MarkOrBuilder> markBuilder_;
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public boolean hasMark() {
+ return argtypeCase_ == 2;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.Mark getMark() {
+ if (markBuilder_ == null) {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ } else {
+ if (argtypeCase_ == 2) {
+ return markBuilder_.getMessage();
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder setMark(grpc.testing.Qpstest.Mark value) {
+ if (markBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ argtype_ = value;
+ onChanged();
+ } else {
+ markBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 2;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder setMark(
+ grpc.testing.Qpstest.Mark.Builder builderForValue) {
+ if (markBuilder_ == null) {
+ argtype_ = builderForValue.build();
+ onChanged();
+ } else {
+ markBuilder_.setMessage(builderForValue.build());
+ }
+ argtypeCase_ = 2;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder mergeMark(grpc.testing.Qpstest.Mark value) {
+ if (markBuilder_ == null) {
+ if (argtypeCase_ == 2 &&
+ argtype_ != grpc.testing.Qpstest.Mark.getDefaultInstance()) {
+ argtype_ = grpc.testing.Qpstest.Mark.newBuilder((grpc.testing.Qpstest.Mark) argtype_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ argtype_ = value;
+ }
+ onChanged();
+ } else {
+ if (argtypeCase_ == 2) {
+ markBuilder_.mergeFrom(value);
+ }
+ markBuilder_.setMessage(value);
+ }
+ argtypeCase_ = 2;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public Builder clearMark() {
+ if (markBuilder_ == null) {
+ if (argtypeCase_ == 2) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ onChanged();
+ }
+ } else {
+ if (argtypeCase_ == 2) {
+ argtypeCase_ = 0;
+ argtype_ = null;
+ }
+ markBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.Mark.Builder getMarkBuilder() {
+ return getMarkFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ public grpc.testing.Qpstest.MarkOrBuilder getMarkOrBuilder() {
+ if ((argtypeCase_ == 2) && (markBuilder_ != null)) {
+ return markBuilder_.getMessageOrBuilder();
+ } else {
+ if (argtypeCase_ == 2) {
+ return (grpc.testing.Qpstest.Mark) argtype_;
+ }
+ return grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ }
+ /**
+ * optional .grpc.testing.Mark mark = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Mark, grpc.testing.Qpstest.Mark.Builder, grpc.testing.Qpstest.MarkOrBuilder>
+ getMarkFieldBuilder() {
+ if (markBuilder_ == null) {
+ if (!(argtypeCase_ == 2)) {
+ argtype_ = grpc.testing.Qpstest.Mark.getDefaultInstance();
+ }
+ markBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Mark, grpc.testing.Qpstest.Mark.Builder, grpc.testing.Qpstest.MarkOrBuilder>(
+ (grpc.testing.Qpstest.Mark) argtype_,
+ getParentForChildren(),
+ isClean());
+ argtype_ = null;
+ }
+ argtypeCase_ = 2;
+ onChanged();;
+ return markBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ServerArgs)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ServerArgs)
+ private static final grpc.testing.Qpstest.ServerArgs defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ServerArgs();
+ }
+
+ public static grpc.testing.Qpstest.ServerArgs getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ServerArgs getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface ServerStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.ServerStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ boolean hasStats();
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ grpc.testing.Qpstest.ServerStats getStats();
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ grpc.testing.Qpstest.ServerStatsOrBuilder getStatsOrBuilder();
+
+ /**
+ * required int32 port = 2;
+ */
+ boolean hasPort();
+ /**
+ * required int32 port = 2;
+ */
+ int getPort();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ServerStatus}
+ */
+ public static final class ServerStatus extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.ServerStatus)
+ ServerStatusOrBuilder {
+ // Use ServerStatus.newBuilder() to construct.
+ private ServerStatus(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ServerStatus() {
+ port_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ServerStatus(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ grpc.testing.Qpstest.ServerStats.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = stats_.toBuilder();
+ }
+ stats_ = input.readMessage(grpc.testing.Qpstest.ServerStats.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(stats_);
+ stats_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ port_ = input.readInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ServerStatus_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_ServerStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.ServerStatus.class, grpc.testing.Qpstest.ServerStatus.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parseroptional .grpc.testing.ServerStats stats = 1;
+ */
+ public boolean hasStats() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ServerStats getStats() {
+ return stats_ == null ? grpc.testing.Qpstest.ServerStats.getDefaultInstance() : stats_;
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ServerStatsOrBuilder getStatsOrBuilder() {
+ return stats_ == null ? grpc.testing.Qpstest.ServerStats.getDefaultInstance() : stats_;
+ }
+
+ public static final int PORT_FIELD_NUMBER = 2;
+ private int port_;
+ /**
+ * required int32 port = 2;
+ */
+ public boolean hasPort() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required int32 port = 2;
+ */
+ public int getPort() {
+ return port_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (!hasPort()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (hasStats()) {
+ if (!getStats().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getStats());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt32(2, port_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getStats());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, port_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.ServerStatus parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.ServerStatus prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.ServerStatus}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional .grpc.testing.ServerStats stats = 1;
+ */
+ public boolean hasStats() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ServerStats getStats() {
+ if (statsBuilder_ == null) {
+ return stats_ == null ? grpc.testing.Qpstest.ServerStats.getDefaultInstance() : stats_;
+ } else {
+ return statsBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public Builder setStats(grpc.testing.Qpstest.ServerStats value) {
+ if (statsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stats_ = value;
+ onChanged();
+ } else {
+ statsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public Builder setStats(
+ grpc.testing.Qpstest.ServerStats.Builder builderForValue) {
+ if (statsBuilder_ == null) {
+ stats_ = builderForValue.build();
+ onChanged();
+ } else {
+ statsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public Builder mergeStats(grpc.testing.Qpstest.ServerStats value) {
+ if (statsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ stats_ != null &&
+ stats_ != grpc.testing.Qpstest.ServerStats.getDefaultInstance()) {
+ stats_ =
+ grpc.testing.Qpstest.ServerStats.newBuilder(stats_).mergeFrom(value).buildPartial();
+ } else {
+ stats_ = value;
+ }
+ onChanged();
+ } else {
+ statsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public Builder clearStats() {
+ if (statsBuilder_ == null) {
+ stats_ = null;
+ onChanged();
+ } else {
+ statsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ServerStats.Builder getStatsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getStatsFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ public grpc.testing.Qpstest.ServerStatsOrBuilder getStatsOrBuilder() {
+ if (statsBuilder_ != null) {
+ return statsBuilder_.getMessageOrBuilder();
+ } else {
+ return stats_ == null ?
+ grpc.testing.Qpstest.ServerStats.getDefaultInstance() : stats_;
+ }
+ }
+ /**
+ * optional .grpc.testing.ServerStats stats = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ServerStats, grpc.testing.Qpstest.ServerStats.Builder, grpc.testing.Qpstest.ServerStatsOrBuilder>
+ getStatsFieldBuilder() {
+ if (statsBuilder_ == null) {
+ statsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.ServerStats, grpc.testing.Qpstest.ServerStats.Builder, grpc.testing.Qpstest.ServerStatsOrBuilder>(
+ getStats(),
+ getParentForChildren(),
+ isClean());
+ stats_ = null;
+ }
+ return statsBuilder_;
+ }
+
+ private int port_ ;
+ /**
+ * required int32 port = 2;
+ */
+ public boolean hasPort() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * required int32 port = 2;
+ */
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * required int32 port = 2;
+ */
+ public Builder setPort(int value) {
+ bitField0_ |= 0x00000002;
+ port_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required int32 port = 2;
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.ServerStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.ServerStatus)
+ private static final grpc.testing.Qpstest.ServerStatus defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.ServerStatus();
+ }
+
+ public static grpc.testing.Qpstest.ServerStatus getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.ServerStatus getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface SimpleRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + boolean hasResponseType(); + /** + *
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + grpc.testing.Qpstest.PayloadType getResponseType(); + + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + boolean hasResponseSize(); + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + int getResponseSize(); + + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + boolean hasPayload(); + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + grpc.testing.Qpstest.Payload getPayload(); + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + grpc.testing.Qpstest.PayloadOrBuilder getPayloadOrBuilder(); + } + /** + * Protobuf type {@code grpc.testing.SimpleRequest} + */ + public static final class SimpleRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.SimpleRequest) + SimpleRequestOrBuilder { + // Use SimpleRequest.newBuilder() to construct. + private SimpleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SimpleRequest() { + responseType_ = 1; + responseSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SimpleRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + grpc.testing.Qpstest.PayloadType value = grpc.testing.Qpstest.PayloadType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + responseType_ = rawValue; + } + break; + } + case 16: { + bitField0_ |= 0x00000002; + responseSize_ = input.readInt32(); + break; + } + case 26: { + grpc.testing.Qpstest.Payload.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(grpc.testing.Qpstest.Payload.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return grpc.testing.Qpstest.internal_static_grpc_testing_SimpleRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return grpc.testing.Qpstest.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + grpc.testing.Qpstest.SimpleRequest.class, grpc.testing.Qpstest.SimpleRequest.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + public boolean hasResponseType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + public grpc.testing.Qpstest.PayloadType getResponseType() { + grpc.testing.Qpstest.PayloadType result = grpc.testing.Qpstest.PayloadType.valueOf(responseType_); + return result == null ? grpc.testing.Qpstest.PayloadType.COMPRESSABLE : result; + } + + public static final int RESPONSE_SIZE_FIELD_NUMBER = 2; + private int responseSize_; + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public boolean hasResponseSize() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public int getResponseSize() { + return responseSize_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private grpc.testing.Qpstest.Payload payload_; + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public grpc.testing.Qpstest.Payload getPayload() { + return payload_ == null ? grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public grpc.testing.Qpstest.PayloadOrBuilder getPayloadOrBuilder() { + return payload_ == null ? grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, responseType_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, responseSize_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getPayload()); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, responseType_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, responseSize_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPayload()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static grpc.testing.Qpstest.SimpleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.SimpleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static grpc.testing.Qpstest.SimpleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static grpc.testing.Qpstest.SimpleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(grpc.testing.Qpstest.SimpleRequest prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.SimpleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + public boolean hasResponseType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + public grpc.testing.Qpstest.PayloadType getResponseType() { + grpc.testing.Qpstest.PayloadType result = grpc.testing.Qpstest.PayloadType.valueOf(responseType_); + return result == null ? grpc.testing.Qpstest.PayloadType.COMPRESSABLE : result; + } + /** + *
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + public Builder setResponseType(grpc.testing.Qpstest.PayloadType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + responseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
optional .grpc.testing.PayloadType response_type = 1 [default = COMPRESSABLE];
+ *
+ * + * Desired payload type in the response from the server. + * If response_type is RANDOM, server randomly chooses one from other formats. + *+ */ + public Builder clearResponseType() { + bitField0_ = (bitField0_ & ~0x00000001); + responseType_ = 1; + onChanged(); + return this; + } + + private int responseSize_ ; + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public boolean hasResponseSize() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public int getResponseSize() { + return responseSize_; + } + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public Builder setResponseSize(int value) { + bitField0_ |= 0x00000002; + responseSize_ = value; + onChanged(); + return this; + } + /** + *
optional int32 response_size = 2 [default = 0];
+ *
+ * + * Desired payload size in the response from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public Builder clearResponseSize() { + bitField0_ = (bitField0_ & ~0x00000002); + responseSize_ = 0; + onChanged(); + return this; + } + + private grpc.testing.Qpstest.Payload payload_ = null; + private com.google.protobuf.SingleFieldBuilder< + grpc.testing.Qpstest.Payload, grpc.testing.Qpstest.Payload.Builder, grpc.testing.Qpstest.PayloadOrBuilder> payloadBuilder_; + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public grpc.testing.Qpstest.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder setPayload(grpc.testing.Qpstest.Payload value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder setPayload( + grpc.testing.Qpstest.Payload.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder mergePayload(grpc.testing.Qpstest.Payload value) { + if (payloadBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + payload_ != null && + payload_ != grpc.testing.Qpstest.Payload.getDefaultInstance()) { + payload_ = + grpc.testing.Qpstest.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + payloadBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + payload_ = null; + onChanged(); + } else { + payloadBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public grpc.testing.Qpstest.Payload.Builder getPayloadBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public grpc.testing.Qpstest.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_; + } + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + grpc.testing.Qpstest.Payload, grpc.testing.Qpstest.Payload.Builder, grpc.testing.Qpstest.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + grpc.testing.Qpstest.Payload, grpc.testing.Qpstest.Payload.Builder, grpc.testing.Qpstest.PayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); + payload_ = null; + } + return payloadBuilder_; + } + + // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleRequest) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.SimpleRequest) + private static final grpc.testing.Qpstest.SimpleRequest defaultInstance; + static { + defaultInstance = new grpc.testing.Qpstest.SimpleRequest(); + } + + public static grpc.testing.Qpstest.SimpleRequest getDefaultInstance() { + return defaultInstance; + } + + public grpc.testing.Qpstest.SimpleRequest getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface SimpleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional .grpc.testing.Payload payload = 1;
+ */
+ boolean hasPayload();
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ grpc.testing.Qpstest.Payload getPayload();
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ grpc.testing.Qpstest.PayloadOrBuilder getPayloadOrBuilder();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.SimpleResponse}
+ */
+ public static final class SimpleResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.SimpleResponse)
+ SimpleResponseOrBuilder {
+ // Use SimpleResponse.newBuilder() to construct.
+ private SimpleResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private SimpleResponse() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SimpleResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ grpc.testing.Qpstest.Payload.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = payload_.toBuilder();
+ }
+ payload_ = input.readMessage(grpc.testing.Qpstest.Payload.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(payload_);
+ payload_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_SimpleResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return grpc.testing.Qpstest.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ grpc.testing.Qpstest.SimpleResponse.class, grpc.testing.Qpstest.SimpleResponse.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parseroptional .grpc.testing.Payload payload = 1;
+ */
+ public boolean hasPayload() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public grpc.testing.Qpstest.Payload getPayload() {
+ return payload_ == null ? grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_;
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public grpc.testing.Qpstest.PayloadOrBuilder getPayloadOrBuilder() {
+ return payload_ == null ? grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getPayload());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getPayload());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static grpc.testing.Qpstest.SimpleResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(grpc.testing.Qpstest.SimpleResponse prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.SimpleResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional .grpc.testing.Payload payload = 1;
+ */
+ public boolean hasPayload() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public grpc.testing.Qpstest.Payload getPayload() {
+ if (payloadBuilder_ == null) {
+ return payload_ == null ? grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_;
+ } else {
+ return payloadBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public Builder setPayload(grpc.testing.Qpstest.Payload value) {
+ if (payloadBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ payload_ = value;
+ onChanged();
+ } else {
+ payloadBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public Builder setPayload(
+ grpc.testing.Qpstest.Payload.Builder builderForValue) {
+ if (payloadBuilder_ == null) {
+ payload_ = builderForValue.build();
+ onChanged();
+ } else {
+ payloadBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public Builder mergePayload(grpc.testing.Qpstest.Payload value) {
+ if (payloadBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ payload_ != null &&
+ payload_ != grpc.testing.Qpstest.Payload.getDefaultInstance()) {
+ payload_ =
+ grpc.testing.Qpstest.Payload.newBuilder(payload_).mergeFrom(value).buildPartial();
+ } else {
+ payload_ = value;
+ }
+ onChanged();
+ } else {
+ payloadBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public Builder clearPayload() {
+ if (payloadBuilder_ == null) {
+ payload_ = null;
+ onChanged();
+ } else {
+ payloadBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public grpc.testing.Qpstest.Payload.Builder getPayloadBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getPayloadFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ public grpc.testing.Qpstest.PayloadOrBuilder getPayloadOrBuilder() {
+ if (payloadBuilder_ != null) {
+ return payloadBuilder_.getMessageOrBuilder();
+ } else {
+ return payload_ == null ?
+ grpc.testing.Qpstest.Payload.getDefaultInstance() : payload_;
+ }
+ }
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Payload, grpc.testing.Qpstest.Payload.Builder, grpc.testing.Qpstest.PayloadOrBuilder>
+ getPayloadFieldBuilder() {
+ if (payloadBuilder_ == null) {
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ grpc.testing.Qpstest.Payload, grpc.testing.Qpstest.Payload.Builder, grpc.testing.Qpstest.PayloadOrBuilder>(
+ getPayload(),
+ getParentForChildren(),
+ isClean());
+ payload_ = null;
+ }
+ return payloadBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.SimpleResponse)
+ private static final grpc.testing.Qpstest.SimpleResponse defaultInstance;
+ static {
+ defaultInstance = new grpc.testing.Qpstest.SimpleResponse();
+ }
+
+ public static grpc.testing.Qpstest.SimpleResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public grpc.testing.Qpstest.SimpleResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_StatsRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_StatsRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ServerStats_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ServerStats_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_Payload_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_Payload_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_HistogramData_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_HistogramData_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ClientConfig_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ClientConfig_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_Mark_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_Mark_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ClientArgs_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ClientArgs_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ClientStats_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ClientStats_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ClientStatus_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ClientStatus_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ServerConfig_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ServerConfig_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ServerArgs_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ServerArgs_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_ServerStatus_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_ServerStatus_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_SimpleRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_SimpleRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_grpc_testing_SimpleResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_grpc_testing_SimpleResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\rqpstest.proto\022\014grpc.testing\" \n\014StatsRe" +
+ "quest\022\020\n\010test_num\030\001 \001(\005\"K\n\013ServerStats\022\024" +
+ "\n\014time_elapsed\030\001 \002(\001\022\021\n\ttime_user\030\002 \002(\001\022" +
+ "\023\n\013time_system\030\003 \002(\001\"@\n\007Payload\022\'\n\004type\030" +
+ "\001 \001(\0162\031.grpc.testing.PayloadType\022\014\n\004body" +
+ "\030\002 \001(\014\"w\n\rHistogramData\022\016\n\006bucket\030\001 \003(\r\022" +
+ "\020\n\010min_seen\030\002 \002(\001\022\020\n\010max_seen\030\003 \002(\001\022\013\n\003s" +
+ "um\030\004 \002(\001\022\026\n\016sum_of_squares\030\005 \002(\001\022\r\n\005coun" +
+ "t\030\006 \002(\001\"\223\002\n\014ClientConfig\022\026\n\016server_targe" +
+ "ts\030\001 \003(\t\022-\n\013client_type\030\002 \002(\0162\030.grpc.tes",
+ "ting.ClientType\022\031\n\nenable_ssl\030\003 \001(\010:\005fal" +
+ "se\022$\n\034outstanding_rpcs_per_channel\030\004 \002(\005" +
+ "\022\027\n\017client_channels\030\005 \002(\005\022\024\n\014payload_siz" +
+ "e\030\006 \002(\005\022\034\n\024async_client_threads\030\007 \001(\005\022.\n" +
+ "\010rpc_type\030\010 \001(\0162\025.grpc.testing.RpcType:\005" +
+ "UNARY\"\006\n\004Mark\"h\n\nClientArgs\022+\n\005setup\030\001 \001" +
+ "(\0132\032.grpc.testing.ClientConfigH\000\022\"\n\004mark" +
+ "\030\002 \001(\0132\022.grpc.testing.MarkH\000B\t\n\007argtype\"" +
+ "{\n\013ClientStats\022.\n\tlatencies\030\001 \002(\0132\033.grpc" +
+ ".testing.HistogramData\022\024\n\014time_elapsed\030\003",
+ " \002(\001\022\021\n\ttime_user\030\004 \002(\001\022\023\n\013time_system\030\005" +
+ " \002(\001\"8\n\014ClientStatus\022(\n\005stats\030\001 \001(\0132\031.gr" +
+ "pc.testing.ClientStats\"l\n\014ServerConfig\022-" +
+ "\n\013server_type\030\001 \002(\0162\030.grpc.testing.Serve" +
+ "rType\022\022\n\007threads\030\002 \001(\005:\0011\022\031\n\nenable_ssl\030" +
+ "\003 \001(\010:\005false\"h\n\nServerArgs\022+\n\005setup\030\001 \001(" +
+ "\0132\032.grpc.testing.ServerConfigH\000\022\"\n\004mark\030" +
+ "\002 \001(\0132\022.grpc.testing.MarkH\000B\t\n\007argtype\"F" +
+ "\n\014ServerStatus\022(\n\005stats\030\001 \001(\0132\031.grpc.tes" +
+ "ting.ServerStats\022\014\n\004port\030\002 \002(\005\"\221\001\n\rSimpl",
+ "eRequest\022>\n\rresponse_type\030\001 \001(\0162\031.grpc.t" +
+ "esting.PayloadType:\014COMPRESSABLE\022\030\n\rresp" +
+ "onse_size\030\002 \001(\005:\0010\022&\n\007payload\030\003 \001(\0132\025.gr" +
+ "pc.testing.Payload\"8\n\016SimpleResponse\022&\n\007" +
+ "payload\030\001 \001(\0132\025.grpc.testing.Payload*?\n\013" +
+ "PayloadType\022\020\n\014COMPRESSABLE\020\001\022\022\n\016UNCOMPR" +
+ "ESSABLE\020\002\022\n\n\006RANDOM\020\003*6\n\nClientType\022\026\n\022S" +
+ "YNCHRONOUS_CLIENT\020\001\022\020\n\014ASYNC_CLIENT\020\002*6\n" +
+ "\nServerType\022\026\n\022SYNCHRONOUS_SERVER\020\001\022\020\n\014A" +
+ "SYNC_SERVER\020\002*#\n\007RpcType\022\t\n\005UNARY\020\001\022\r\n\tS",
+ "TREAMING\020\0022\245\001\n\013TestService\022F\n\tUnaryCall\022" +
+ "\033.grpc.testing.SimpleRequest\032\034.grpc.test" +
+ "ing.SimpleResponse\022N\n\rStreamingCall\022\033.gr" +
+ "pc.testing.SimpleRequest\032\034.grpc.testing." +
+ "SimpleResponse(\0010\0012\224\001\n\006Worker\022C\n\007RunTest" +
+ "\022\030.grpc.testing.ClientArgs\032\032.grpc.testin" +
+ "g.ClientStatus(\0010\001\022E\n\tRunServer\022\030.grpc.t" +
+ "esting.ServerArgs\032\032.grpc.testing.ServerS" +
+ "tatus(\0010\001"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_grpc_testing_StatsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_grpc_testing_StatsRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_StatsRequest_descriptor,
+ new java.lang.String[] { "TestNum", });
+ internal_static_grpc_testing_ServerStats_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_grpc_testing_ServerStats_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ServerStats_descriptor,
+ new java.lang.String[] { "TimeElapsed", "TimeUser", "TimeSystem", });
+ internal_static_grpc_testing_Payload_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_grpc_testing_Payload_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_Payload_descriptor,
+ new java.lang.String[] { "Type", "Body", });
+ internal_static_grpc_testing_HistogramData_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_grpc_testing_HistogramData_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_HistogramData_descriptor,
+ new java.lang.String[] { "Bucket", "MinSeen", "MaxSeen", "Sum", "SumOfSquares", "Count", });
+ internal_static_grpc_testing_ClientConfig_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_grpc_testing_ClientConfig_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ClientConfig_descriptor,
+ new java.lang.String[] { "ServerTargets", "ClientType", "EnableSsl", "OutstandingRpcsPerChannel", "ClientChannels", "PayloadSize", "AsyncClientThreads", "RpcType", });
+ internal_static_grpc_testing_Mark_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_grpc_testing_Mark_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_Mark_descriptor,
+ new java.lang.String[] { });
+ internal_static_grpc_testing_ClientArgs_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_grpc_testing_ClientArgs_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ClientArgs_descriptor,
+ new java.lang.String[] { "Setup", "Mark", "Argtype", });
+ internal_static_grpc_testing_ClientStats_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_grpc_testing_ClientStats_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ClientStats_descriptor,
+ new java.lang.String[] { "Latencies", "TimeElapsed", "TimeUser", "TimeSystem", });
+ internal_static_grpc_testing_ClientStatus_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_grpc_testing_ClientStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ClientStatus_descriptor,
+ new java.lang.String[] { "Stats", });
+ internal_static_grpc_testing_ServerConfig_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_grpc_testing_ServerConfig_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ServerConfig_descriptor,
+ new java.lang.String[] { "ServerType", "Threads", "EnableSsl", });
+ internal_static_grpc_testing_ServerArgs_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_grpc_testing_ServerArgs_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ServerArgs_descriptor,
+ new java.lang.String[] { "Setup", "Mark", "Argtype", });
+ internal_static_grpc_testing_ServerStatus_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_grpc_testing_ServerStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_ServerStatus_descriptor,
+ new java.lang.String[] { "Stats", "Port", });
+ internal_static_grpc_testing_SimpleRequest_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_grpc_testing_SimpleRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_SimpleRequest_descriptor,
+ new java.lang.String[] { "ResponseType", "ResponseSize", "Payload", });
+ internal_static_grpc_testing_SimpleResponse_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_grpc_testing_SimpleResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_grpc_testing_SimpleResponse_descriptor,
+ new java.lang.String[] { "Payload", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/benchmarks/src/generated/main/grpc/testing/TestServiceGrpc.java b/benchmarks/src/generated/main/grpc/testing/TestServiceGrpc.java
new file mode 100644
index 00000000000..626716768e6
--- /dev/null
+++ b/benchmarks/src/generated/main/grpc/testing/TestServiceGrpc.java
@@ -0,0 +1,209 @@
+package grpc.testing;
+
+import static io.grpc.stub.Calls.createMethodDescriptor;
+import static io.grpc.stub.Calls.asyncUnaryCall;
+import static io.grpc.stub.Calls.asyncServerStreamingCall;
+import static io.grpc.stub.Calls.asyncClientStreamingCall;
+import static io.grpc.stub.Calls.duplexStreamingCall;
+import static io.grpc.stub.Calls.blockingUnaryCall;
+import static io.grpc.stub.Calls.blockingServerStreamingCall;
+import static io.grpc.stub.Calls.unaryFutureCall;
+import static io.grpc.stub.ServerCalls.createMethodDefinition;
+import static io.grpc.stub.ServerCalls.asyncUnaryRequestCall;
+import static io.grpc.stub.ServerCalls.asyncStreamingRequestCall;
+
+@javax.annotation.Generated("by gRPC proto compiler")
+public class TestServiceGrpc {
+
+ private static final io.grpc.stub.Method+ * The request message containing the user's name. + *+ */ +public final class HelloRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:helloworld.HelloRequest) + HelloRequestOrBuilder { + // Use HelloRequest.newBuilder() to construct. + private HelloRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private HelloRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private HelloRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + + name_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.helloworld.HelloWorldProto.internal_static_helloworld_HelloRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.helloworld.HelloWorldProto.internal_static_helloworld_HelloRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.helloworld.HelloRequest.class, io.grpc.examples.helloworld.HelloRequest.Builder.class); + } + + public static final com.google.protobuf.Parser
optional string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ output.writeBytes(1, getNameBytes());
+ }
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getNameBytes());
+ }
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static io.grpc.examples.helloworld.HelloRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.examples.helloworld.HelloRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.examples.helloworld.HelloRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.examples.helloworld.HelloRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.examples.helloworld.HelloRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(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);
+ }
+ public static io.grpc.examples.helloworld.HelloRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(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);
+ }
+ public static io.grpc.examples.helloworld.HelloRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(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);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(io.grpc.examples.helloworld.HelloRequest prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code helloworld.HelloRequest}
+ *
+ * + * The request message containing the user's name. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:helloworld.HelloRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:helloworld.HelloRequest)
+ private static final io.grpc.examples.helloworld.HelloRequest defaultInstance;
+ static {
+ defaultInstance = new io.grpc.examples.helloworld.HelloRequest();
+ }
+
+ public static io.grpc.examples.helloworld.HelloRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public io.grpc.examples.helloworld.HelloRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+}
+
diff --git a/examples/src/generated/main/io/grpc/examples/helloworld/HelloRequestOrBuilder.java b/examples/src/generated/main/io/grpc/examples/helloworld/HelloRequestOrBuilder.java
new file mode 100644
index 00000000000..554dff3b1ae
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/helloworld/HelloRequestOrBuilder.java
@@ -0,0 +1,19 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: hello_world.proto
+
+package io.grpc.examples.helloworld;
+
+public interface HelloRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:helloworld.HelloRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * optional string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/examples/src/generated/main/io/grpc/examples/helloworld/HelloResponse.java b/examples/src/generated/main/io/grpc/examples/helloworld/HelloResponse.java
new file mode 100644
index 00000000000..e5cfd9cfd4a
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/helloworld/HelloResponse.java
@@ -0,0 +1,451 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: hello_world.proto
+
+package io.grpc.examples.helloworld;
+
+/**
+ * Protobuf type {@code helloworld.HelloResponse}
+ *
+ * + * The response message containing the greetings + *+ */ +public final class HelloResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:helloworld.HelloResponse) + HelloResponseOrBuilder { + // Use HelloResponse.newBuilder() to construct. + private HelloResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private HelloResponse() { + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private HelloResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + + message_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.helloworld.HelloWorldProto.internal_static_helloworld_HelloResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.helloworld.HelloWorldProto.internal_static_helloworld_HelloResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.helloworld.HelloResponse.class, io.grpc.examples.helloworld.HelloResponse.Builder.class); + } + + public static final com.google.protobuf.Parser
optional string message = 1;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ message_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string message = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getMessageBytes().isEmpty()) {
+ output.writeBytes(1, getMessageBytes());
+ }
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getMessageBytes().isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getMessageBytes());
+ }
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.grpc.examples.helloworld.HelloResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(io.grpc.examples.helloworld.HelloResponse prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code helloworld.HelloResponse}
+ *
+ * + * The response message containing the greetings + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional string message = 1;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ message_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string message = 1;
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string message = 1;
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string message = 1;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string message = 1;
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:helloworld.HelloResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:helloworld.HelloResponse)
+ private static final io.grpc.examples.helloworld.HelloResponse defaultInstance;
+ static {
+ defaultInstance = new io.grpc.examples.helloworld.HelloResponse();
+ }
+
+ public static io.grpc.examples.helloworld.HelloResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public io.grpc.examples.helloworld.HelloResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+}
+
diff --git a/examples/src/generated/main/io/grpc/examples/helloworld/HelloResponseOrBuilder.java b/examples/src/generated/main/io/grpc/examples/helloworld/HelloResponseOrBuilder.java
new file mode 100644
index 00000000000..b68cd1a0211
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/helloworld/HelloResponseOrBuilder.java
@@ -0,0 +1,19 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: hello_world.proto
+
+package io.grpc.examples.helloworld;
+
+public interface HelloResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:helloworld.HelloResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string message = 1;
+ */
+ java.lang.String getMessage();
+ /**
+ * optional string message = 1;
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+}
diff --git a/examples/src/generated/main/io/grpc/examples/helloworld/HelloWorldProto.java b/examples/src/generated/main/io/grpc/examples/helloworld/HelloWorldProto.java
new file mode 100644
index 00000000000..3c80f407ac2
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/helloworld/HelloWorldProto.java
@@ -0,0 +1,64 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: hello_world.proto
+
+package io.grpc.examples.helloworld;
+
+public final class HelloWorldProto {
+ private HelloWorldProto() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_helloworld_HelloRequest_descriptor;
+ static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_helloworld_HelloRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_helloworld_HelloResponse_descriptor;
+ static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_helloworld_HelloResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\021hello_world.proto\022\nhelloworld\"\034\n\014Hello" +
+ "Request\022\014\n\004name\030\001 \001(\t\" \n\rHelloResponse\022\017" +
+ "\n\007message\030\001 \001(\t2L\n\007Greeter\022A\n\010SayHello\022\030" +
+ ".helloworld.HelloRequest\032\031.helloworld.He" +
+ "lloResponse\"\000B0\n\033io.grpc.examples.hellow" +
+ "orldB\017HelloWorldProtoP\001b\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_helloworld_HelloRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_helloworld_HelloRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_helloworld_HelloRequest_descriptor,
+ new java.lang.String[] { "Name", });
+ internal_static_helloworld_HelloResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_helloworld_HelloResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_helloworld_HelloResponse_descriptor,
+ new java.lang.String[] { "Message", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/Feature.java b/examples/src/generated/main/io/grpc/examples/routeguide/Feature.java
new file mode 100644
index 00000000000..0f4250c9550
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/routeguide/Feature.java
@@ -0,0 +1,701 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: route_guide.proto
+
+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. + *+ */ +public final class Feature extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:routeguide.Feature) + FeatureOrBuilder { + // Use Feature.newBuilder() to construct. + private Feature(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Feature() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Feature( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + + name_ = bs; + break; + } + case 18: { + io.grpc.examples.routeguide.Point.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(io.grpc.examples.routeguide.Point.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_Feature_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.routeguide.Feature.class, io.grpc.examples.routeguide.Feature.Builder.class); + } + + public static final com.google.protobuf.Parser
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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. + *+ */ + public boolean hasLocation() { + return location_ != null; + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + 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. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { + return getLocation(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + output.writeBytes(1, getNameBytes()); + } + if (location_ != null) { + output.writeMessage(2, getLocation()); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (location_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLocation()); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.examples.routeguide.Feature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.Feature parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.Feature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.Feature parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.Feature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.examples.routeguide.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.examples.routeguide.Feature parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.examples.routeguide.Feature prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + 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. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + private io.grpc.examples.routeguide.Point location_ = null; + 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. + *+ */ + public boolean hasLocation() { + return locationBuilder_ != null || location_ != null; + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public io.grpc.examples.routeguide.Point getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public Builder setLocation(io.grpc.examples.routeguide.Point value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public Builder setLocation( + io.grpc.examples.routeguide.Point.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public Builder mergeLocation(io.grpc.examples.routeguide.Point value) { + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + io.grpc.examples.routeguide.Point.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + + return this; + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public io.grpc.examples.routeguide.Point.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + io.grpc.examples.routeguide.Point.getDefaultInstance() : location_; + } + } + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:routeguide.Feature) + } + + // @@protoc_insertion_point(class_scope:routeguide.Feature) + private static final io.grpc.examples.routeguide.Feature defaultInstance; + static { + defaultInstance = new io.grpc.examples.routeguide.Feature(); + } + + public static io.grpc.examples.routeguide.Feature getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.examples.routeguide.Feature getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } +} + diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/FeatureOrBuilder.java b/examples/src/generated/main/io/grpc/examples/routeguide/FeatureOrBuilder.java new file mode 100644 index 00000000000..e8fb7264f84 --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/FeatureOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: route_guide.proto + +package io.grpc.examples.routeguide; + +public interface FeatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:routeguide.Feature) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + java.lang.String getName(); + /** + *
optional string name = 1;
+ *
+ * + * The name of the feature. + *+ */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + boolean hasLocation(); + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + io.grpc.examples.routeguide.Point getLocation(); + /** + *
optional .routeguide.Point location = 2;
+ *
+ * + * The point where the feature is detected. + *+ */ + io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder(); +} diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/Point.java b/examples/src/generated/main/io/grpc/examples/routeguide/Point.java new file mode 100644 index 00000000000..f3e2fb41ac9 --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/Point.java @@ -0,0 +1,438 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: route_guide.proto + +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). + *+ */ +public final class Point extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:routeguide.Point) + PointOrBuilder { + // Use Point.newBuilder() to construct. + private Point(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Point() { + latitude_ = 0; + longitude_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Point( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + latitude_ = input.readInt32(); + break; + } + case 16: { + + longitude_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_Point_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_Point_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.routeguide.Point.class, io.grpc.examples.routeguide.Point.Builder.class); + } + + public static final com.google.protobuf.Parser
optional int32 latitude = 1;
+ */
+ public int getLatitude() {
+ return latitude_;
+ }
+
+ public static final int LONGITUDE_FIELD_NUMBER = 2;
+ private int longitude_;
+ /**
+ * optional int32 longitude = 2;
+ */
+ public int getLongitude() {
+ return longitude_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (latitude_ != 0) {
+ output.writeInt32(1, latitude_);
+ }
+ if (longitude_ != 0) {
+ output.writeInt32(2, longitude_);
+ }
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (latitude_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, latitude_);
+ }
+ if (longitude_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, longitude_);
+ }
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static io.grpc.examples.routeguide.Point parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.examples.routeguide.Point parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.examples.routeguide.Point parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.examples.routeguide.Point parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.examples.routeguide.Point parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(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);
+ }
+ public static io.grpc.examples.routeguide.Point parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(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);
+ }
+ public static io.grpc.examples.routeguide.Point parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(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);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(io.grpc.examples.routeguide.Point prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ 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). + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional int32 latitude = 1;
+ */
+ public int getLatitude() {
+ return latitude_;
+ }
+ /**
+ * optional int32 latitude = 1;
+ */
+ public Builder setLatitude(int value) {
+
+ latitude_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 latitude = 1;
+ */
+ public Builder clearLatitude() {
+
+ latitude_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int longitude_ ;
+ /**
+ * optional int32 longitude = 2;
+ */
+ public int getLongitude() {
+ return longitude_;
+ }
+ /**
+ * optional int32 longitude = 2;
+ */
+ public Builder setLongitude(int value) {
+
+ longitude_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 longitude = 2;
+ */
+ public Builder clearLongitude() {
+
+ longitude_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:routeguide.Point)
+ }
+
+ // @@protoc_insertion_point(class_scope:routeguide.Point)
+ private static final io.grpc.examples.routeguide.Point defaultInstance;
+ static {
+ defaultInstance = new io.grpc.examples.routeguide.Point();
+ }
+
+ public static io.grpc.examples.routeguide.Point getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public io.grpc.examples.routeguide.Point getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+}
+
diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/PointOrBuilder.java b/examples/src/generated/main/io/grpc/examples/routeguide/PointOrBuilder.java
new file mode 100644
index 00000000000..0ae9ac05a95
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/routeguide/PointOrBuilder.java
@@ -0,0 +1,19 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: route_guide.proto
+
+package io.grpc.examples.routeguide;
+
+public interface PointOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:routeguide.Point)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int32 latitude = 1;
+ */
+ int getLatitude();
+
+ /**
+ * optional int32 longitude = 2;
+ */
+ int getLongitude();
+}
diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/Rectangle.java b/examples/src/generated/main/io/grpc/examples/routeguide/Rectangle.java
new file mode 100644
index 00000000000..d58ff09a720
--- /dev/null
+++ b/examples/src/generated/main/io/grpc/examples/routeguide/Rectangle.java
@@ -0,0 +1,766 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: route_guide.proto
+
+package io.grpc.examples.routeguide;
+
+/**
+ * Protobuf type {@code routeguide.Rectangle}
+ *
+ * + * A latitude-longitude rectangle, represented as two diagonally opposite + * points "lo" and "hi". + *+ */ +public final class Rectangle extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:routeguide.Rectangle) + RectangleOrBuilder { + // Use Rectangle.newBuilder() to construct. + private Rectangle(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Rectangle() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Rectangle( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + io.grpc.examples.routeguide.Point.Builder subBuilder = null; + if (lo_ != null) { + subBuilder = lo_.toBuilder(); + } + lo_ = input.readMessage(io.grpc.examples.routeguide.Point.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lo_); + lo_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + io.grpc.examples.routeguide.Point.Builder subBuilder = null; + if (hi_ != null) { + subBuilder = hi_.toBuilder(); + } + hi_ = input.readMessage(io.grpc.examples.routeguide.Point.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hi_); + hi_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_Rectangle_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_Rectangle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.routeguide.Rectangle.class, io.grpc.examples.routeguide.Rectangle.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public boolean hasLo() { + return lo_ != null; + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + 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. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getLoOrBuilder() { + return getLo(); + } + + 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. + *+ */ + public boolean hasHi() { + return hi_ != null; + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + 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. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getHiOrBuilder() { + return getHi(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (lo_ != null) { + output.writeMessage(1, getLo()); + } + if (hi_ != null) { + output.writeMessage(2, getHi()); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (lo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLo()); + } + if (hi_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHi()); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.examples.routeguide.Rectangle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.Rectangle parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.Rectangle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.Rectangle parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.Rectangle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.examples.routeguide.Rectangle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.examples.routeguide.Rectangle parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.examples.routeguide.Rectangle prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code routeguide.Rectangle} + * + *
+ * A latitude-longitude rectangle, represented as two diagonally opposite + * points "lo" and "hi". + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public boolean hasLo() { + return loBuilder_ != null || lo_ != null; + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public io.grpc.examples.routeguide.Point getLo() { + if (loBuilder_ == null) { + return lo_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : lo_; + } else { + return loBuilder_.getMessage(); + } + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public Builder setLo(io.grpc.examples.routeguide.Point value) { + if (loBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lo_ = value; + onChanged(); + } else { + loBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public Builder setLo( + io.grpc.examples.routeguide.Point.Builder builderForValue) { + if (loBuilder_ == null) { + lo_ = builderForValue.build(); + onChanged(); + } else { + loBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public Builder mergeLo(io.grpc.examples.routeguide.Point value) { + if (loBuilder_ == null) { + if (lo_ != null) { + lo_ = + io.grpc.examples.routeguide.Point.newBuilder(lo_).mergeFrom(value).buildPartial(); + } else { + lo_ = value; + } + onChanged(); + } else { + loBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public Builder clearLo() { + if (loBuilder_ == null) { + lo_ = null; + onChanged(); + } else { + lo_ = null; + loBuilder_ = null; + } + + return this; + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public io.grpc.examples.routeguide.Point.Builder getLoBuilder() { + + onChanged(); + return getLoFieldBuilder().getBuilder(); + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getLoOrBuilder() { + if (loBuilder_ != null) { + return loBuilder_.getMessageOrBuilder(); + } else { + return lo_ == null ? + io.grpc.examples.routeguide.Point.getDefaultInstance() : lo_; + } + } + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> + getLoFieldBuilder() { + if (loBuilder_ == null) { + loBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder>( + getLo(), + getParentForChildren(), + isClean()); + lo_ = null; + } + return loBuilder_; + } + + private io.grpc.examples.routeguide.Point hi_ = null; + 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. + *+ */ + public boolean hasHi() { + return hiBuilder_ != null || hi_ != null; + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public io.grpc.examples.routeguide.Point getHi() { + if (hiBuilder_ == null) { + return hi_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : hi_; + } else { + return hiBuilder_.getMessage(); + } + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public Builder setHi(io.grpc.examples.routeguide.Point value) { + if (hiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hi_ = value; + onChanged(); + } else { + hiBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public Builder setHi( + io.grpc.examples.routeguide.Point.Builder builderForValue) { + if (hiBuilder_ == null) { + hi_ = builderForValue.build(); + onChanged(); + } else { + hiBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public Builder mergeHi(io.grpc.examples.routeguide.Point value) { + if (hiBuilder_ == null) { + if (hi_ != null) { + hi_ = + io.grpc.examples.routeguide.Point.newBuilder(hi_).mergeFrom(value).buildPartial(); + } else { + hi_ = value; + } + onChanged(); + } else { + hiBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public Builder clearHi() { + if (hiBuilder_ == null) { + hi_ = null; + onChanged(); + } else { + hi_ = null; + hiBuilder_ = null; + } + + return this; + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public io.grpc.examples.routeguide.Point.Builder getHiBuilder() { + + onChanged(); + return getHiFieldBuilder().getBuilder(); + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getHiOrBuilder() { + if (hiBuilder_ != null) { + return hiBuilder_.getMessageOrBuilder(); + } else { + return hi_ == null ? + io.grpc.examples.routeguide.Point.getDefaultInstance() : hi_; + } + } + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> + getHiFieldBuilder() { + if (hiBuilder_ == null) { + hiBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder>( + getHi(), + getParentForChildren(), + isClean()); + hi_ = null; + } + return hiBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:routeguide.Rectangle) + } + + // @@protoc_insertion_point(class_scope:routeguide.Rectangle) + private static final io.grpc.examples.routeguide.Rectangle defaultInstance; + static { + defaultInstance = new io.grpc.examples.routeguide.Rectangle(); + } + + public static io.grpc.examples.routeguide.Rectangle getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.examples.routeguide.Rectangle getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } +} + diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/RectangleOrBuilder.java b/examples/src/generated/main/io/grpc/examples/routeguide/RectangleOrBuilder.java new file mode 100644 index 00000000000..df3961d6301 --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/RectangleOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: route_guide.proto + +package io.grpc.examples.routeguide; + +public interface RectangleOrBuilder extends + // @@protoc_insertion_point(interface_extends:routeguide.Rectangle) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + boolean hasLo(); + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + io.grpc.examples.routeguide.Point getLo(); + /** + *
optional .routeguide.Point lo = 1;
+ *
+ * + * One corner of the rectangle. + *+ */ + io.grpc.examples.routeguide.PointOrBuilder getLoOrBuilder(); + + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + boolean hasHi(); + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + io.grpc.examples.routeguide.Point getHi(); + /** + *
optional .routeguide.Point hi = 2;
+ *
+ * + * The other corner of the rectangle. + *+ */ + io.grpc.examples.routeguide.PointOrBuilder getHiOrBuilder(); +} diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/RouteGuideGrpc.java b/examples/src/generated/main/io/grpc/examples/routeguide/RouteGuideGrpc.java new file mode 100644 index 00000000000..3d580ae42cd --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/RouteGuideGrpc.java @@ -0,0 +1,292 @@ +package io.grpc.examples.routeguide; + +import static io.grpc.stub.Calls.createMethodDescriptor; +import static io.grpc.stub.Calls.asyncUnaryCall; +import static io.grpc.stub.Calls.asyncServerStreamingCall; +import static io.grpc.stub.Calls.asyncClientStreamingCall; +import static io.grpc.stub.Calls.duplexStreamingCall; +import static io.grpc.stub.Calls.blockingUnaryCall; +import static io.grpc.stub.Calls.blockingServerStreamingCall; +import static io.grpc.stub.Calls.unaryFutureCall; +import static io.grpc.stub.ServerCalls.createMethodDefinition; +import static io.grpc.stub.ServerCalls.asyncUnaryRequestCall; +import static io.grpc.stub.ServerCalls.asyncStreamingRequestCall; + +@javax.annotation.Generated("by gRPC proto compiler") +public class RouteGuideGrpc { + + private static final io.grpc.stub.Method
+ * A RouteNote is a message sent while at a given point. + *+ */ +public final class RouteNote extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:routeguide.RouteNote) + RouteNoteOrBuilder { + // Use RouteNote.newBuilder() to construct. + private RouteNote(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RouteNote() { + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RouteNote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + io.grpc.examples.routeguide.Point.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(io.grpc.examples.routeguide.Point.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + + message_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_RouteNote_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_RouteNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.routeguide.RouteNote.class, io.grpc.examples.routeguide.RouteNote.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public boolean hasLocation() { + return location_ != null; + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + 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. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { + return getLocation(); + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private java.lang.Object message_; + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } + } + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (location_ != null) { + output.writeMessage(1, getLocation()); + } + if (!getMessageBytes().isEmpty()) { + output.writeBytes(2, getMessageBytes()); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (location_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLocation()); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getMessageBytes()); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.examples.routeguide.RouteNote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.RouteNote parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.RouteNote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.RouteNote parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.RouteNote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.examples.routeguide.RouteNote parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.examples.routeguide.RouteNote parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.examples.routeguide.RouteNote prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code routeguide.RouteNote} + * + *
+ * A RouteNote is a message sent while at a given point. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public boolean hasLocation() { + return locationBuilder_ != null || location_ != null; + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public io.grpc.examples.routeguide.Point getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? io.grpc.examples.routeguide.Point.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public Builder setLocation(io.grpc.examples.routeguide.Point value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public Builder setLocation( + io.grpc.examples.routeguide.Point.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public Builder mergeLocation(io.grpc.examples.routeguide.Point value) { + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + io.grpc.examples.routeguide.Point.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + + return this; + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public io.grpc.examples.routeguide.Point.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + public io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + io.grpc.examples.routeguide.Point.getDefaultInstance() : location_; + } + } + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.Point.Builder, io.grpc.examples.routeguide.PointOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + + private java.lang.Object message_ = ""; + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:routeguide.RouteNote) + } + + // @@protoc_insertion_point(class_scope:routeguide.RouteNote) + private static final io.grpc.examples.routeguide.RouteNote defaultInstance; + static { + defaultInstance = new io.grpc.examples.routeguide.RouteNote(); + } + + public static io.grpc.examples.routeguide.RouteNote getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.examples.routeguide.RouteNote getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } +} + diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/RouteNoteOrBuilder.java b/examples/src/generated/main/io/grpc/examples/routeguide/RouteNoteOrBuilder.java new file mode 100644 index 00000000000..f6b429a048f --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/RouteNoteOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: route_guide.proto + +package io.grpc.examples.routeguide; + +public interface RouteNoteOrBuilder extends + // @@protoc_insertion_point(interface_extends:routeguide.RouteNote) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + boolean hasLocation(); + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + io.grpc.examples.routeguide.Point getLocation(); + /** + *
optional .routeguide.Point location = 1;
+ *
+ * + * The location from which the message is sent. + *+ */ + io.grpc.examples.routeguide.PointOrBuilder getLocationOrBuilder(); + + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + java.lang.String getMessage(); + /** + *
optional string message = 2;
+ *
+ * + * The message to be sent. + *+ */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/RouteSummary.java b/examples/src/generated/main/io/grpc/examples/routeguide/RouteSummary.java new file mode 100644 index 00000000000..89459656845 --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/RouteSummary.java @@ -0,0 +1,610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: route_guide.proto + +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. + *+ */ +public final class RouteSummary extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:routeguide.RouteSummary) + RouteSummaryOrBuilder { + // Use RouteSummary.newBuilder() to construct. + private RouteSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RouteSummary() { + pointCount_ = 0; + featureCount_ = 0; + distance_ = 0; + elapsedTime_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RouteSummary( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + pointCount_ = input.readInt32(); + break; + } + case 16: { + + featureCount_ = input.readInt32(); + break; + } + case 24: { + + distance_ = input.readInt32(); + break; + } + case 32: { + + elapsedTime_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_RouteSummary_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.examples.routeguide.RouteGuideProto.internal_static_routeguide_RouteSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.examples.routeguide.RouteSummary.class, io.grpc.examples.routeguide.RouteSummary.Builder.class); + } + + public static final com.google.protobuf.Parser
optional int32 point_count = 1;
+ *
+ * + * The number of points received. + *+ */ + public int getPointCount() { + return pointCount_; + } + + 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. + *+ */ + public int getFeatureCount() { + return featureCount_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private int distance_; + /** + *
optional int32 distance = 3;
+ *
+ * + * The distance covered in metres. + *+ */ + public int getDistance() { + return distance_; + } + + public static final int ELAPSED_TIME_FIELD_NUMBER = 4; + private int elapsedTime_; + /** + *
optional int32 elapsed_time = 4;
+ *
+ * + * The duration of the traversal in seconds. + *+ */ + public int getElapsedTime() { + return elapsedTime_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pointCount_ != 0) { + output.writeInt32(1, pointCount_); + } + if (featureCount_ != 0) { + output.writeInt32(2, featureCount_); + } + if (distance_ != 0) { + output.writeInt32(3, distance_); + } + if (elapsedTime_ != 0) { + output.writeInt32(4, elapsedTime_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (pointCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pointCount_); + } + if (featureCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, featureCount_); + } + if (distance_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, distance_); + } + if (elapsedTime_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, elapsedTime_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.examples.routeguide.RouteSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.RouteSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.RouteSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.examples.routeguide.RouteSummary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.examples.routeguide.RouteSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.examples.routeguide.RouteSummary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.examples.routeguide.RouteSummary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.examples.routeguide.RouteSummary prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + 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. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional int32 point_count = 1;
+ *
+ * + * The number of points received. + *+ */ + public int getPointCount() { + return pointCount_; + } + /** + *
optional int32 point_count = 1;
+ *
+ * + * The number of points received. + *+ */ + public Builder setPointCount(int value) { + + pointCount_ = value; + onChanged(); + return this; + } + /** + *
optional int32 point_count = 1;
+ *
+ * + * The number of points received. + *+ */ + public Builder clearPointCount() { + + pointCount_ = 0; + onChanged(); + return this; + } + + private int featureCount_ ; + /** + *
optional int32 feature_count = 2;
+ *
+ * + * The number of known features passed while traversing the route. + *+ */ + public int getFeatureCount() { + return featureCount_; + } + /** + *
optional int32 feature_count = 2;
+ *
+ * + * The number of known features passed while traversing the route. + *+ */ + public Builder setFeatureCount(int value) { + + featureCount_ = value; + onChanged(); + return this; + } + /** + *
optional int32 feature_count = 2;
+ *
+ * + * The number of known features passed while traversing the route. + *+ */ + public Builder clearFeatureCount() { + + featureCount_ = 0; + onChanged(); + return this; + } + + private int distance_ ; + /** + *
optional int32 distance = 3;
+ *
+ * + * The distance covered in metres. + *+ */ + public int getDistance() { + return distance_; + } + /** + *
optional int32 distance = 3;
+ *
+ * + * The distance covered in metres. + *+ */ + public Builder setDistance(int value) { + + distance_ = value; + onChanged(); + return this; + } + /** + *
optional int32 distance = 3;
+ *
+ * + * The distance covered in metres. + *+ */ + public Builder clearDistance() { + + distance_ = 0; + onChanged(); + return this; + } + + private int elapsedTime_ ; + /** + *
optional int32 elapsed_time = 4;
+ *
+ * + * The duration of the traversal in seconds. + *+ */ + public int getElapsedTime() { + return elapsedTime_; + } + /** + *
optional int32 elapsed_time = 4;
+ *
+ * + * The duration of the traversal in seconds. + *+ */ + public Builder setElapsedTime(int value) { + + elapsedTime_ = value; + onChanged(); + return this; + } + /** + *
optional int32 elapsed_time = 4;
+ *
+ * + * The duration of the traversal in seconds. + *+ */ + public Builder clearElapsedTime() { + + elapsedTime_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:routeguide.RouteSummary) + } + + // @@protoc_insertion_point(class_scope:routeguide.RouteSummary) + private static final io.grpc.examples.routeguide.RouteSummary defaultInstance; + static { + defaultInstance = new io.grpc.examples.routeguide.RouteSummary(); + } + + public static io.grpc.examples.routeguide.RouteSummary getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.examples.routeguide.RouteSummary getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } +} + diff --git a/examples/src/generated/main/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java b/examples/src/generated/main/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java new file mode 100644 index 00000000000..bdffc55d136 --- /dev/null +++ b/examples/src/generated/main/io/grpc/examples/routeguide/RouteSummaryOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: route_guide.proto + +package io.grpc.examples.routeguide; + +public interface RouteSummaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:routeguide.RouteSummary) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional int32 point_count = 1;
+ *
+ * + * The number of points received. + *+ */ + int getPointCount(); + + /** + *
optional int32 feature_count = 2;
+ *
+ * + * The number of known features passed while traversing the route. + *+ */ + int getFeatureCount(); + + /** + *
optional int32 distance = 3;
+ *
+ * + * The distance covered in metres. + *+ */ + int getDistance(); + + /** + *
optional int32 elapsed_time = 4;
+ *
+ * + * The duration of the traversal in seconds. + *+ */ + int getElapsedTime(); +} diff --git a/integration-testing/build.gradle b/integration-testing/build.gradle index 3ce27d00757..371d6d2ee62 100644 --- a/integration-testing/build.gradle +++ b/integration-testing/build.gradle @@ -1,4 +1,3 @@ -apply plugin: 'com.google.protobuf' apply plugin: 'application' description = "gRPC: Integration Testing" @@ -63,11 +62,7 @@ applicationDistribution.into("bin") { fileMode = 0755 } -protobufCodeGenPlugins = ["java_plugin:$javaPluginPath"] - -project.afterEvaluate { - generateProto.dependsOn ':grpc-compiler:java_pluginExecutable' -} +configureProtoCompilation() // Allow intellij projects to refer to generated-sources idea { diff --git a/integration-testing/src/generated/main/com/google/protobuf/EmptyProtos.java b/integration-testing/src/generated/main/com/google/protobuf/EmptyProtos.java new file mode 100644 index 00000000000..3c326117508 --- /dev/null +++ b/integration-testing/src/generated/main/com/google/protobuf/EmptyProtos.java @@ -0,0 +1,379 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: io/grpc/testing/integration/empty.proto + +package com.google.protobuf; + +public final class EmptyProtos { + private EmptyProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + public interface EmptyOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.Empty) + 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
+ * return value of a service API. For instance:
+ * service Foo {
+ * rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
+ * };
+ *
+ */
+ public static final class Empty extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.Empty)
+ EmptyOrBuilder {
+ // Use Empty.newBuilder() to construct.
+ private Empty(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Empty() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Empty(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.protobuf.EmptyProtos.internal_static_grpc_testing_Empty_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.protobuf.EmptyProtos.internal_static_grpc_testing_Empty_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.protobuf.EmptyProtos.Empty.class, com.google.protobuf.EmptyProtos.Empty.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parser
+ * 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
+ * return value of a service API. For instance:
+ * service Foo {
+ * rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
+ * };
+ *
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * The type of payload that should be returned. + *+ */ + public enum PayloadType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
COMPRESSABLE = 0;
+ *
+ * + * Compressable text format. + *+ */ + COMPRESSABLE(0, 0), + /** + *
UNCOMPRESSABLE = 1;
+ *
+ * + * Uncompressable binary format. + *+ */ + UNCOMPRESSABLE(1, 1), + /** + *
RANDOM = 2;
+ *
+ * + * Randomly chosen from all other formats defined in this enum. + *+ */ + RANDOM(2, 2), + UNRECOGNIZED(-1, -1), + ; + + /** + *
COMPRESSABLE = 0;
+ *
+ * + * Compressable text format. + *+ */ + public static final int COMPRESSABLE_VALUE = 0; + /** + *
UNCOMPRESSABLE = 1;
+ *
+ * + * Uncompressable binary format. + *+ */ + public static final int UNCOMPRESSABLE_VALUE = 1; + /** + *
RANDOM = 2;
+ *
+ * + * Randomly chosen from all other formats defined in this enum. + *+ */ + public static final int RANDOM_VALUE = 2; + + + public final int getNumber() { + if (index == -1) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + public static PayloadType valueOf(int value) { + switch (value) { + case 0: return COMPRESSABLE; + case 1: return UNCOMPRESSABLE; + case 2: return RANDOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + int getTypeValue(); + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + io.grpc.testing.integration.Messages.PayloadType getType(); + + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + com.google.protobuf.ByteString getBody(); + } + /** + * Protobuf type {@code grpc.testing.Payload} + * + *
+ * A block of data, to simply increase gRPC message size. + *+ */ + public static final class Payload extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.Payload) + PayloadOrBuilder { + // Use Payload.newBuilder() to construct. + private Payload(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Payload() { + type_ = 0; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Payload( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + + body_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.testing.integration.Messages.Payload.class, io.grpc.testing.integration.Messages.Payload.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public int getTypeValue() { + return type_; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public io.grpc.testing.integration.Messages.PayloadType getType() { + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(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. + *+ */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { + output.writeEnum(1, type_); + } + if (!body_.isEmpty()) { + output.writeBytes(2, body_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (type_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!body_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, body_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.testing.integration.Messages.Payload parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.Payload parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.Payload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.Payload parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.Payload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.testing.integration.Messages.Payload parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.testing.integration.Messages.Payload prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.Payload} + * + *
+ * A block of data, to simply increase gRPC message size. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public int getTypeValue() { + return type_; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public io.grpc.testing.integration.Messages.PayloadType getType() { + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_); + return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public Builder setType(io.grpc.testing.integration.Messages.PayloadType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
optional .grpc.testing.PayloadType type = 1;
+ *
+ * + * The type of data in body. + *+ */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public Builder setBody(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + *
optional bytes body = 2;
+ *
+ * + * Primary contents of payload. + *+ */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:grpc.testing.Payload) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.Payload) + private static final io.grpc.testing.integration.Messages.Payload defaultInstance; + static { + defaultInstance = new io.grpc.testing.integration.Messages.Payload(); + } + + public static io.grpc.testing.integration.Messages.Payload getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.testing.integration.Messages.Payload getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface SimpleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleRequest) + 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. + *+ */ + 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. + *+ */ + 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. + *+ */ + int getResponseSize(); + + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + boolean hasPayload(); + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + io.grpc.testing.integration.Messages.Payload getPayload(); + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); + + /** + *
optional bool fill_username = 4;
+ *
+ * + * Whether SimpleResponse should include username. + *+ */ + boolean getFillUsername(); + + /** + *
optional bool fill_oauth_scope = 5;
+ *
+ * + * Whether SimpleResponse should include OAuth scope. + *+ */ + boolean getFillOauthScope(); + } + /** + * Protobuf type {@code grpc.testing.SimpleRequest} + * + *
+ * Unary request. + *+ */ + public static final class SimpleRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.SimpleRequest) + SimpleRequestOrBuilder { + // Use SimpleRequest.newBuilder() to construct. + private SimpleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SimpleRequest() { + responseType_ = 0; + responseSize_ = 0; + fillUsername_ = false; + fillOauthScope_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SimpleRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + responseType_ = rawValue; + break; + } + case 16: { + + responseSize_ = input.readInt32(); + break; + } + case 26: { + io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + fillUsername_ = input.readBool(); + break; + } + case 40: { + + fillOauthScope_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.testing.integration.Messages.SimpleRequest.class, io.grpc.testing.integration.Messages.SimpleRequest.Builder.class); + } + + public static final com.google.protobuf.Parser
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. + *+ */ + 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. + *+ */ + public io.grpc.testing.integration.Messages.PayloadType getResponseType() { + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(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. + *+ */ + public int getResponseSize() { + return responseSize_; + } + + 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. + *+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + 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. + *+ */ + public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { + return getPayload(); + } + + public static final int FILL_USERNAME_FIELD_NUMBER = 4; + private boolean fillUsername_; + /** + *
optional bool fill_username = 4;
+ *
+ * + * Whether SimpleResponse should include username. + *+ */ + public boolean getFillUsername() { + return fillUsername_; + } + + 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. + *+ */ + public boolean getFillOauthScope() { + return fillOauthScope_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (responseType_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { + output.writeEnum(1, responseType_); + } + if (responseSize_ != 0) { + output.writeInt32(2, responseSize_); + } + if (payload_ != null) { + output.writeMessage(3, getPayload()); + } + if (fillUsername_ != false) { + output.writeBool(4, fillUsername_); + } + if (fillOauthScope_ != false) { + output.writeBool(5, fillOauthScope_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (responseType_ != io.grpc.testing.integration.Messages.PayloadType.COMPRESSABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, responseType_); + } + if (responseSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, responseSize_); + } + if (payload_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPayload()); + } + if (fillUsername_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, fillUsername_); + } + if (fillOauthScope_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, fillOauthScope_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.testing.integration.Messages.SimpleRequest prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.SimpleRequest} + * + *
+ * Unary request. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
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. + *+ */ + 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. + *+ */ + public Builder setResponseTypeValue(int value) { + responseType_ = value; + onChanged(); + 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. + *+ */ + public io.grpc.testing.integration.Messages.PayloadType getResponseType() { + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(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. + *+ */ + public Builder setResponseType(io.grpc.testing.integration.Messages.PayloadType value) { + if (value == null) { + throw new NullPointerException(); + } + + responseType_ = value.getNumber(); + onChanged(); + 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. + *+ */ + public Builder clearResponseType() { + + responseType_ = 0; + onChanged(); + return this; + } + + 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. + *+ */ + 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. + *+ */ + public Builder setResponseSize(int value) { + + responseSize_ = value; + onChanged(); + 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. + *+ */ + public Builder clearResponseSize() { + + responseSize_ = 0; + onChanged(); + return this; + } + + private io.grpc.testing.integration.Messages.Payload payload_ = null; + 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. + *+ */ + public boolean hasPayload() { + return payloadBuilder_ != null || payload_ != null; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public io.grpc.testing.integration.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder setPayload( + io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + payloadBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + payload_ = null; + onChanged(); + } else { + payload_ = null; + payloadBuilder_ = null; + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { + + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + 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. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); + payload_ = null; + } + return payloadBuilder_; + } + + private boolean fillUsername_ ; + /** + *
optional bool fill_username = 4;
+ *
+ * + * Whether SimpleResponse should include username. + *+ */ + public boolean getFillUsername() { + return fillUsername_; + } + /** + *
optional bool fill_username = 4;
+ *
+ * + * Whether SimpleResponse should include username. + *+ */ + public Builder setFillUsername(boolean value) { + + fillUsername_ = value; + onChanged(); + return this; + } + /** + *
optional bool fill_username = 4;
+ *
+ * + * Whether SimpleResponse should include username. + *+ */ + public Builder clearFillUsername() { + + fillUsername_ = false; + onChanged(); + return this; + } + + private boolean fillOauthScope_ ; + /** + *
optional bool fill_oauth_scope = 5;
+ *
+ * + * Whether SimpleResponse should include OAuth scope. + *+ */ + public boolean getFillOauthScope() { + return fillOauthScope_; + } + /** + *
optional bool fill_oauth_scope = 5;
+ *
+ * + * Whether SimpleResponse should include OAuth scope. + *+ */ + public Builder setFillOauthScope(boolean value) { + + fillOauthScope_ = value; + onChanged(); + return this; + } + /** + *
optional bool fill_oauth_scope = 5;
+ *
+ * + * Whether SimpleResponse should include OAuth scope. + *+ */ + public Builder clearFillOauthScope() { + + fillOauthScope_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleRequest) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.SimpleRequest) + private static final io.grpc.testing.integration.Messages.SimpleRequest defaultInstance; + static { + defaultInstance = new io.grpc.testing.integration.Messages.SimpleRequest(); + } + + public static io.grpc.testing.integration.Messages.SimpleRequest getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.testing.integration.Messages.SimpleRequest getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface SimpleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + boolean hasPayload(); + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + io.grpc.testing.integration.Messages.Payload getPayload(); + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + 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. + *+ */ + java.lang.String getUsername(); + /** + *
optional string username = 2;
+ *
+ * + * The user the request came from, for verifying authentication was + * successful when the client expected it. + *+ */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + java.lang.String getOauthScope(); + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + com.google.protobuf.ByteString + getOauthScopeBytes(); + } + /** + * Protobuf type {@code grpc.testing.SimpleResponse} + * + *
+ * Unary response, as configured by the request. + *+ */ + public static final class SimpleResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.SimpleResponse) + SimpleResponseOrBuilder { + // Use SimpleResponse.newBuilder() to construct. + private SimpleResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SimpleResponse() { + username_ = ""; + oauthScope_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SimpleResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + + username_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + + oauthScope_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.testing.integration.Messages.SimpleResponse.class, io.grpc.testing.integration.Messages.SimpleResponse.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + 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. + *+ */ + public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { + return getPayload(); + } + + public static final int USERNAME_FIELD_NUMBER = 2; + 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. + *+ */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + username_ = s; + } + return s; + } + } + /** + *
optional string username = 2;
+ *
+ * + * The user the request came from, for verifying authentication was + * successful when the client expected it. + *+ */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OAUTH_SCOPE_FIELD_NUMBER = 3; + private java.lang.Object oauthScope_; + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public java.lang.String getOauthScope() { + java.lang.Object ref = oauthScope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + oauthScope_ = s; + } + return s; + } + } + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public com.google.protobuf.ByteString + getOauthScopeBytes() { + java.lang.Object ref = oauthScope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oauthScope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (payload_ != null) { + output.writeMessage(1, getPayload()); + } + if (!getUsernameBytes().isEmpty()) { + output.writeBytes(2, getUsernameBytes()); + } + if (!getOauthScopeBytes().isEmpty()) { + output.writeBytes(3, getOauthScopeBytes()); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (payload_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPayload()); + } + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getUsernameBytes()); + } + if (!getOauthScopeBytes().isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getOauthScopeBytes()); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.testing.integration.Messages.SimpleResponse prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.SimpleResponse} + * + *
+ * Unary response, as configured by the request. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public boolean hasPayload() { + return payloadBuilder_ != null || payload_ != null; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public io.grpc.testing.integration.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public Builder setPayload( + io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + payloadBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + payload_ = null; + onChanged(); + } else { + payload_ = null; + payloadBuilder_ = null; + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { + + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; + } + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Payload to increase message size. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); + payload_ = null; + } + return payloadBuilder_; + } + + 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. + *+ */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + username_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
optional string username = 2;
+ *
+ * + * The user the request came from, for verifying authentication was + * successful when the client expected it. + *+ */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
optional string username = 2;
+ *
+ * + * The user the request came from, for verifying authentication was + * successful when the client expected it. + *+ */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + *
optional string username = 2;
+ *
+ * + * The user the request came from, for verifying authentication was + * successful when the client expected it. + *+ */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + *
optional string username = 2;
+ *
+ * + * The user the request came from, for verifying authentication was + * successful when the client expected it. + *+ */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object oauthScope_ = ""; + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public java.lang.String getOauthScope() { + java.lang.Object ref = oauthScope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + oauthScope_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public com.google.protobuf.ByteString + getOauthScopeBytes() { + java.lang.Object ref = oauthScope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oauthScope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public Builder setOauthScope( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + oauthScope_ = value; + onChanged(); + return this; + } + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public Builder clearOauthScope() { + + oauthScope_ = getDefaultInstance().getOauthScope(); + onChanged(); + return this; + } + /** + *
optional string oauth_scope = 3;
+ *
+ * + * OAuth scope. + *+ */ + public Builder setOauthScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + oauthScope_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleResponse) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.SimpleResponse) + private static final io.grpc.testing.integration.Messages.SimpleResponse defaultInstance; + static { + defaultInstance = new io.grpc.testing.integration.Messages.SimpleResponse(); + } + + public static io.grpc.testing.integration.Messages.SimpleResponse getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.testing.integration.Messages.SimpleResponse getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface SimpleContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleContext) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional string value = 1;
+ */
+ java.lang.String getValue();
+ /**
+ * optional string value = 1;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code grpc.testing.SimpleContext}
+ */
+ public static final class SimpleContext extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:grpc.testing.SimpleContext)
+ SimpleContextOrBuilder {
+ // Use SimpleContext.newBuilder() to construct.
+ private SimpleContext(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private SimpleContext() {
+ value_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private SimpleContext(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+
+ value_ = bs;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.grpc.testing.integration.Messages.SimpleContext.class, io.grpc.testing.integration.Messages.SimpleContext.Builder.class);
+ }
+
+ public static final com.google.protobuf.Parseroptional string value = 1;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string value = 1;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getValueBytes().isEmpty()) {
+ output.writeBytes(1, getValueBytes());
+ }
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getValueBytes());
+ }
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(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);
+ }
+ public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(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);
+ }
+ public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(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);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return defaultInstance.toBuilder();
+ }
+ public static Builder newBuilder(io.grpc.testing.integration.Messages.SimpleContext prototype) {
+ return defaultInstance.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == defaultInstance
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code grpc.testing.SimpleContext}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional string value = 1;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string value = 1;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string value = 1;
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string value = 1;
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string value = 1;
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleContext)
+ }
+
+ // @@protoc_insertion_point(class_scope:grpc.testing.SimpleContext)
+ private static final io.grpc.testing.integration.Messages.SimpleContext defaultInstance;
+ static {
+ defaultInstance = new io.grpc.testing.integration.Messages.SimpleContext();
+ }
+
+ public static io.grpc.testing.integration.Messages.SimpleContext getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public io.grpc.testing.integration.Messages.SimpleContext getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ static {
+ }
+ }
+
+ public interface StreamingInputCallRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingInputCallRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + boolean hasPayload(); + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + io.grpc.testing.integration.Messages.Payload getPayload(); + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); + } + /** + * Protobuf type {@code grpc.testing.StreamingInputCallRequest} + * + *
+ * Client-streaming request. + *+ */ + public static final class StreamingInputCallRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallRequest) + StreamingInputCallRequestOrBuilder { + // Use StreamingInputCallRequest.newBuilder() to construct. + private StreamingInputCallRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StreamingInputCallRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private StreamingInputCallRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + io.grpc.testing.integration.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.testing.integration.Messages.Payload.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.testing.integration.Messages.StreamingInputCallRequest.class, io.grpc.testing.integration.Messages.StreamingInputCallRequest.Builder.class); + } + + public static final com.google.protobuf.Parser
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + 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. + *+ */ + public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { + return getPayload(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (payload_ != null) { + output.writeMessage(1, getPayload()); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (payload_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPayload()); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.testing.integration.Messages.StreamingInputCallRequest prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.StreamingInputCallRequest} + * + *
+ * Client-streaming request. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public boolean hasPayload() { + return payloadBuilder_ != null || payload_ != null; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public io.grpc.testing.integration.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.testing.integration.Messages.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder setPayload(io.grpc.testing.integration.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder setPayload( + io.grpc.testing.integration.Messages.Payload.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder mergePayload(io.grpc.testing.integration.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.testing.integration.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + payloadBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + payload_ = null; + onChanged(); + } else { + payload_ = null; + payloadBuilder_ = null; + } + + return this; + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public io.grpc.testing.integration.Messages.Payload.Builder getPayloadBuilder() { + + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + *
optional .grpc.testing.Payload payload = 1;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + public io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + 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. + *+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); + payload_ = null; + } + return payloadBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingInputCallRequest) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallRequest) + private static final io.grpc.testing.integration.Messages.StreamingInputCallRequest defaultInstance; + static { + defaultInstance = new io.grpc.testing.integration.Messages.StreamingInputCallRequest(); + } + + public static io.grpc.testing.integration.Messages.StreamingInputCallRequest getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.testing.integration.Messages.StreamingInputCallRequest getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface StreamingInputCallResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingInputCallResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
optional int32 aggregated_payload_size = 1;
+ *
+ * + * Aggregated size of payloads received from the client. + *+ */ + int getAggregatedPayloadSize(); + } + /** + * Protobuf type {@code grpc.testing.StreamingInputCallResponse} + * + *
+ * Client-streaming response. + *+ */ + public static final class StreamingInputCallResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallResponse) + StreamingInputCallResponseOrBuilder { + // Use StreamingInputCallResponse.newBuilder() to construct. + private StreamingInputCallResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StreamingInputCallResponse() { + aggregatedPayloadSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private StreamingInputCallResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + aggregatedPayloadSize_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.testing.integration.Messages.StreamingInputCallResponse.class, io.grpc.testing.integration.Messages.StreamingInputCallResponse.Builder.class); + } + + public static final com.google.protobuf.Parser
optional int32 aggregated_payload_size = 1;
+ *
+ * + * Aggregated size of payloads received from the client. + *+ */ + public int getAggregatedPayloadSize() { + return aggregatedPayloadSize_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (aggregatedPayloadSize_ != 0) { + output.writeInt32(1, aggregatedPayloadSize_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (aggregatedPayloadSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, aggregatedPayloadSize_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.testing.integration.Messages.StreamingInputCallResponse prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.StreamingInputCallResponse} + * + *
+ * Client-streaming response. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional int32 aggregated_payload_size = 1;
+ *
+ * + * Aggregated size of payloads received from the client. + *+ */ + public int getAggregatedPayloadSize() { + return aggregatedPayloadSize_; + } + /** + *
optional int32 aggregated_payload_size = 1;
+ *
+ * + * Aggregated size of payloads received from the client. + *+ */ + public Builder setAggregatedPayloadSize(int value) { + + aggregatedPayloadSize_ = value; + onChanged(); + return this; + } + /** + *
optional int32 aggregated_payload_size = 1;
+ *
+ * + * Aggregated size of payloads received from the client. + *+ */ + public Builder clearAggregatedPayloadSize() { + + aggregatedPayloadSize_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingInputCallResponse) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallResponse) + private static final io.grpc.testing.integration.Messages.StreamingInputCallResponse defaultInstance; + static { + defaultInstance = new io.grpc.testing.integration.Messages.StreamingInputCallResponse(); + } + + public static io.grpc.testing.integration.Messages.StreamingInputCallResponse getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.testing.integration.Messages.StreamingInputCallResponse getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface ResponseParametersOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ResponseParameters) + 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. + *+ */ + int getSize(); + + /** + *
optional int32 interval_us = 2;
+ *
+ * + * Desired interval between consecutive responses in the response stream in + * microseconds. + *+ */ + int getIntervalUs(); + } + /** + * Protobuf type {@code grpc.testing.ResponseParameters} + * + *
+ * Configuration for a particular response. + *+ */ + public static final class ResponseParameters extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ResponseParameters) + ResponseParametersOrBuilder { + // Use ResponseParameters.newBuilder() to construct. + private ResponseParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResponseParameters() { + size_ = 0; + intervalUs_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ResponseParameters( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + size_ = input.readInt32(); + break; + } + case 16: { + + intervalUs_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.testing.integration.Messages.ResponseParameters.class, io.grpc.testing.integration.Messages.ResponseParameters.Builder.class); + } + + public static final com.google.protobuf.Parser
optional int32 size = 1;
+ *
+ * + * Desired payload sizes in responses from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + public int getSize() { + return size_; + } + + 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. + *+ */ + public int getIntervalUs() { + return intervalUs_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (size_ != 0) { + output.writeInt32(1, size_); + } + if (intervalUs_ != 0) { + output.writeInt32(2, intervalUs_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, size_); + } + if (intervalUs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalUs_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(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); + } + public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(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); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return defaultInstance.toBuilder(); + } + public static Builder newBuilder(io.grpc.testing.integration.Messages.ResponseParameters prototype) { + return defaultInstance.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == defaultInstance + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code grpc.testing.ResponseParameters} + * + *
+ * Configuration for a particular response. + *+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
optional int32 size = 1;
+ *
+ * + * Desired payload sizes in responses from the server. + * If response_type is COMPRESSABLE, this denotes the size before compression. + *+ */ + 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. + *+ */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + 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. + *+ */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private int intervalUs_ ; + /** + *
optional int32 interval_us = 2;
+ *
+ * + * Desired interval between consecutive responses in the response stream in + * microseconds. + *+ */ + public int getIntervalUs() { + return intervalUs_; + } + /** + *
optional int32 interval_us = 2;
+ *
+ * + * Desired interval between consecutive responses in the response stream in + * microseconds. + *+ */ + public Builder setIntervalUs(int value) { + + intervalUs_ = value; + onChanged(); + return this; + } + /** + *
optional int32 interval_us = 2;
+ *
+ * + * Desired interval between consecutive responses in the response stream in + * microseconds. + *+ */ + public Builder clearIntervalUs() { + + intervalUs_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:grpc.testing.ResponseParameters) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ResponseParameters) + private static final io.grpc.testing.integration.Messages.ResponseParameters defaultInstance; + static { + defaultInstance = new io.grpc.testing.integration.Messages.ResponseParameters(); + } + + public static io.grpc.testing.integration.Messages.ResponseParameters getDefaultInstance() { + return defaultInstance; + } + + public io.grpc.testing.integration.Messages.ResponseParameters getDefaultInstanceForType() { + return defaultInstance; + } + + static { + } + } + + public interface StreamingOutputCallRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingOutputCallRequest) + 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. + *+ */ + 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. + *+ */ + io.grpc.testing.integration.Messages.PayloadType getResponseType(); + + /** + *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
+ *
+ * + * Configuration for each expected response message. + *+ */ + java.util.List
repeated .grpc.testing.ResponseParameters response_parameters = 2;
+ *
+ * + * Configuration for each expected response message. + *+ */ + io.grpc.testing.integration.Messages.ResponseParameters getResponseParameters(int index); + /** + *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
+ *
+ * + * Configuration for each expected response message. + *+ */ + int getResponseParametersCount(); + /** + *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
+ *
+ * + * Configuration for each expected response message. + *+ */ + java.util.List extends io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> + getResponseParametersOrBuilderList(); + /** + *
repeated .grpc.testing.ResponseParameters response_parameters = 2;
+ *
+ * + * Configuration for each expected response message. + *+ */ + io.grpc.testing.integration.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( + int index); + + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + boolean hasPayload(); + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + io.grpc.testing.integration.Messages.Payload getPayload(); + /** + *
optional .grpc.testing.Payload payload = 3;
+ *
+ * + * Optional input payload sent along with the request. + *+ */ + io.grpc.testing.integration.Messages.PayloadOrBuilder getPayloadOrBuilder(); + } + /** + * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} + * + *
+ * Server-streaming request. + *+ */ + public static final class StreamingOutputCallRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallRequest) + StreamingOutputCallRequestOrBuilder { + // Use StreamingOutputCallRequest.newBuilder() to construct. + private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StreamingOutputCallRequest() { + responseType_ = 0; + responseParameters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private StreamingOutputCallRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + responseType_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + responseParameters_ = new java.util.ArrayList
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. + *+ */ + 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. + *+ */ + public io.grpc.testing.integration.Messages.PayloadType getResponseType() { + io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(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