diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java new file mode 100644 index 0000000000..edf1b5b3e2 --- /dev/null +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java @@ -0,0 +1,222 @@ +package io.grpc.benchmarks.proto; + +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: services.proto") +public class BenchmarkServiceGrpc { + + private BenchmarkServiceGrpc() {} + + public static final String SERVICE_NAME = "grpc.testing.BenchmarkService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi + public static final io.grpc.MethodDescriptor METHOD_UNARY_CALL = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.UNARY, + generateFullMethodName( + "grpc.testing.BenchmarkService", "UnaryCall"), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Messages.SimpleRequest.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Messages.SimpleResponse.getDefaultInstance())); + @io.grpc.ExperimentalApi + public static final io.grpc.MethodDescriptor METHOD_STREAMING_CALL = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, + generateFullMethodName( + "grpc.testing.BenchmarkService", "StreamingCall"), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Messages.SimpleRequest.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Messages.SimpleResponse.getDefaultInstance())); + + public static BenchmarkServiceStub newStub(io.grpc.Channel channel) { + return new BenchmarkServiceStub(channel); + } + + public static BenchmarkServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new BenchmarkServiceBlockingStub(channel); + } + + public static BenchmarkServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new BenchmarkServiceFutureStub(channel); + } + + public static interface BenchmarkService { + + public void unaryCall(io.grpc.benchmarks.proto.Messages.SimpleRequest request, + io.grpc.stub.StreamObserver responseObserver); + + public io.grpc.stub.StreamObserver streamingCall( + io.grpc.stub.StreamObserver responseObserver); + } + + public static interface BenchmarkServiceBlockingClient { + + public io.grpc.benchmarks.proto.Messages.SimpleResponse unaryCall(io.grpc.benchmarks.proto.Messages.SimpleRequest request); + } + + public static interface BenchmarkServiceFutureClient { + + public com.google.common.util.concurrent.ListenableFuture unaryCall( + io.grpc.benchmarks.proto.Messages.SimpleRequest request); + } + + public static class BenchmarkServiceStub extends io.grpc.stub.AbstractStub + implements BenchmarkService { + private BenchmarkServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private BenchmarkServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BenchmarkServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new BenchmarkServiceStub(channel, callOptions); + } + + @java.lang.Override + public void unaryCall(io.grpc.benchmarks.proto.Messages.SimpleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(METHOD_UNARY_CALL, getCallOptions()), request, responseObserver); + } + + @java.lang.Override + public io.grpc.stub.StreamObserver streamingCall( + io.grpc.stub.StreamObserver responseObserver) { + return asyncBidiStreamingCall( + getChannel().newCall(METHOD_STREAMING_CALL, getCallOptions()), responseObserver); + } + } + + public static class BenchmarkServiceBlockingStub extends io.grpc.stub.AbstractStub + implements BenchmarkServiceBlockingClient { + private BenchmarkServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private BenchmarkServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BenchmarkServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new BenchmarkServiceBlockingStub(channel, callOptions); + } + + @java.lang.Override + public io.grpc.benchmarks.proto.Messages.SimpleResponse unaryCall(io.grpc.benchmarks.proto.Messages.SimpleRequest request) { + return blockingUnaryCall( + getChannel(), METHOD_UNARY_CALL, getCallOptions(), request); + } + } + + public static class BenchmarkServiceFutureStub extends io.grpc.stub.AbstractStub + implements BenchmarkServiceFutureClient { + private BenchmarkServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private BenchmarkServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BenchmarkServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new BenchmarkServiceFutureStub(channel, callOptions); + } + + @java.lang.Override + public com.google.common.util.concurrent.ListenableFuture unaryCall( + io.grpc.benchmarks.proto.Messages.SimpleRequest request) { + return futureUnaryCall( + getChannel().newCall(METHOD_UNARY_CALL, getCallOptions()), request); + } + } + + private static final int METHODID_UNARY_CALL = 0; + private static final int METHODID_STREAMING_CALL = 1; + + private static class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BenchmarkService serviceImpl; + private final int methodId; + + public MethodHandlers(BenchmarkService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_UNARY_CALL: + serviceImpl.unaryCall((io.grpc.benchmarks.proto.Messages.SimpleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_CALL: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingCall( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + public static io.grpc.ServerServiceDefinition bindService( + final BenchmarkService serviceImpl) { + return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) + .addMethod( + METHOD_UNARY_CALL, + asyncUnaryCall( + new MethodHandlers< + io.grpc.benchmarks.proto.Messages.SimpleRequest, + io.grpc.benchmarks.proto.Messages.SimpleResponse>( + serviceImpl, METHODID_UNARY_CALL))) + .addMethod( + METHOD_STREAMING_CALL, + asyncBidiStreamingCall( + new MethodHandlers< + io.grpc.benchmarks.proto.Messages.SimpleRequest, + io.grpc.benchmarks.proto.Messages.SimpleResponse>( + serviceImpl, METHODID_STREAMING_CALL))) + .build(); + } +} diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java new file mode 100644 index 0000000000..86536b8a65 --- /dev/null +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java @@ -0,0 +1,301 @@ +package io.grpc.benchmarks.proto; + +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: services.proto") +public class WorkerServiceGrpc { + + private WorkerServiceGrpc() {} + + public static final String SERVICE_NAME = "grpc.testing.WorkerService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi + public static final io.grpc.MethodDescriptor METHOD_RUN_SERVER = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, + generateFullMethodName( + "grpc.testing.WorkerService", "RunServer"), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.ServerArgs.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.ServerStatus.getDefaultInstance())); + @io.grpc.ExperimentalApi + public static final io.grpc.MethodDescriptor METHOD_RUN_CLIENT = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, + generateFullMethodName( + "grpc.testing.WorkerService", "RunClient"), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.ClientArgs.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.ClientStatus.getDefaultInstance())); + @io.grpc.ExperimentalApi + public static final io.grpc.MethodDescriptor METHOD_CORE_COUNT = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.UNARY, + generateFullMethodName( + "grpc.testing.WorkerService", "CoreCount"), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.CoreRequest.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.CoreResponse.getDefaultInstance())); + @io.grpc.ExperimentalApi + public static final io.grpc.MethodDescriptor METHOD_QUIT_WORKER = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.UNARY, + generateFullMethodName( + "grpc.testing.WorkerService", "QuitWorker"), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.Void.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.benchmarks.proto.Control.Void.getDefaultInstance())); + + public static WorkerServiceStub newStub(io.grpc.Channel channel) { + return new WorkerServiceStub(channel); + } + + public static WorkerServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new WorkerServiceBlockingStub(channel); + } + + public static WorkerServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new WorkerServiceFutureStub(channel); + } + + public static interface WorkerService { + + public io.grpc.stub.StreamObserver runServer( + io.grpc.stub.StreamObserver responseObserver); + + public io.grpc.stub.StreamObserver runClient( + io.grpc.stub.StreamObserver responseObserver); + + public void coreCount(io.grpc.benchmarks.proto.Control.CoreRequest request, + io.grpc.stub.StreamObserver responseObserver); + + public void quitWorker(io.grpc.benchmarks.proto.Control.Void request, + io.grpc.stub.StreamObserver responseObserver); + } + + public static interface WorkerServiceBlockingClient { + + public io.grpc.benchmarks.proto.Control.CoreResponse coreCount(io.grpc.benchmarks.proto.Control.CoreRequest request); + + public io.grpc.benchmarks.proto.Control.Void quitWorker(io.grpc.benchmarks.proto.Control.Void request); + } + + public static interface WorkerServiceFutureClient { + + public com.google.common.util.concurrent.ListenableFuture coreCount( + io.grpc.benchmarks.proto.Control.CoreRequest request); + + public com.google.common.util.concurrent.ListenableFuture quitWorker( + io.grpc.benchmarks.proto.Control.Void request); + } + + public static class WorkerServiceStub extends io.grpc.stub.AbstractStub + implements WorkerService { + private WorkerServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private WorkerServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkerServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new WorkerServiceStub(channel, callOptions); + } + + @java.lang.Override + public io.grpc.stub.StreamObserver runServer( + io.grpc.stub.StreamObserver responseObserver) { + return asyncBidiStreamingCall( + getChannel().newCall(METHOD_RUN_SERVER, getCallOptions()), responseObserver); + } + + @java.lang.Override + public io.grpc.stub.StreamObserver runClient( + io.grpc.stub.StreamObserver responseObserver) { + return asyncBidiStreamingCall( + getChannel().newCall(METHOD_RUN_CLIENT, getCallOptions()), responseObserver); + } + + @java.lang.Override + public void coreCount(io.grpc.benchmarks.proto.Control.CoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(METHOD_CORE_COUNT, getCallOptions()), request, responseObserver); + } + + @java.lang.Override + public void quitWorker(io.grpc.benchmarks.proto.Control.Void request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(METHOD_QUIT_WORKER, getCallOptions()), request, responseObserver); + } + } + + public static class WorkerServiceBlockingStub extends io.grpc.stub.AbstractStub + implements WorkerServiceBlockingClient { + private WorkerServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private WorkerServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkerServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new WorkerServiceBlockingStub(channel, callOptions); + } + + @java.lang.Override + public io.grpc.benchmarks.proto.Control.CoreResponse coreCount(io.grpc.benchmarks.proto.Control.CoreRequest request) { + return blockingUnaryCall( + getChannel(), METHOD_CORE_COUNT, getCallOptions(), request); + } + + @java.lang.Override + public io.grpc.benchmarks.proto.Control.Void quitWorker(io.grpc.benchmarks.proto.Control.Void request) { + return blockingUnaryCall( + getChannel(), METHOD_QUIT_WORKER, getCallOptions(), request); + } + } + + public static class WorkerServiceFutureStub extends io.grpc.stub.AbstractStub + implements WorkerServiceFutureClient { + private WorkerServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private WorkerServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkerServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new WorkerServiceFutureStub(channel, callOptions); + } + + @java.lang.Override + public com.google.common.util.concurrent.ListenableFuture coreCount( + io.grpc.benchmarks.proto.Control.CoreRequest request) { + return futureUnaryCall( + getChannel().newCall(METHOD_CORE_COUNT, getCallOptions()), request); + } + + @java.lang.Override + public com.google.common.util.concurrent.ListenableFuture quitWorker( + io.grpc.benchmarks.proto.Control.Void request) { + return futureUnaryCall( + getChannel().newCall(METHOD_QUIT_WORKER, getCallOptions()), request); + } + } + + private static final int METHODID_CORE_COUNT = 0; + private static final int METHODID_QUIT_WORKER = 1; + private static final int METHODID_RUN_SERVER = 2; + private static final int METHODID_RUN_CLIENT = 3; + + private static class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WorkerService serviceImpl; + private final int methodId; + + public MethodHandlers(WorkerService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CORE_COUNT: + serviceImpl.coreCount((io.grpc.benchmarks.proto.Control.CoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUIT_WORKER: + serviceImpl.quitWorker((io.grpc.benchmarks.proto.Control.Void) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RUN_SERVER: + return (io.grpc.stub.StreamObserver) serviceImpl.runServer( + (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_RUN_CLIENT: + return (io.grpc.stub.StreamObserver) serviceImpl.runClient( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + public static io.grpc.ServerServiceDefinition bindService( + final WorkerService serviceImpl) { + return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) + .addMethod( + METHOD_RUN_SERVER, + asyncBidiStreamingCall( + new MethodHandlers< + io.grpc.benchmarks.proto.Control.ServerArgs, + io.grpc.benchmarks.proto.Control.ServerStatus>( + serviceImpl, METHODID_RUN_SERVER))) + .addMethod( + METHOD_RUN_CLIENT, + asyncBidiStreamingCall( + new MethodHandlers< + io.grpc.benchmarks.proto.Control.ClientArgs, + io.grpc.benchmarks.proto.Control.ClientStatus>( + serviceImpl, METHODID_RUN_CLIENT))) + .addMethod( + METHOD_CORE_COUNT, + asyncUnaryCall( + new MethodHandlers< + io.grpc.benchmarks.proto.Control.CoreRequest, + io.grpc.benchmarks.proto.Control.CoreResponse>( + serviceImpl, METHODID_CORE_COUNT))) + .addMethod( + METHOD_QUIT_WORKER, + asyncUnaryCall( + new MethodHandlers< + io.grpc.benchmarks.proto.Control.Void, + io.grpc.benchmarks.proto.Control.Void>( + serviceImpl, METHODID_QUIT_WORKER))) + .build(); + } +} diff --git a/benchmarks/src/generated/main/grpc/io/grpc/testing/TestServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/testing/TestServiceGrpc.java deleted file mode 100644 index f39b0f666c..0000000000 --- a/benchmarks/src/generated/main/grpc/io/grpc/testing/TestServiceGrpc.java +++ /dev/null @@ -1,222 +0,0 @@ -package io.grpc.testing; - -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; - -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: qpstest.proto") -public class TestServiceGrpc { - - private TestServiceGrpc() {} - - public static final String SERVICE_NAME = "grpc.testing.TestService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_UNARY_CALL = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "grpc.testing.TestService", "UnaryCall"), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleResponse.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_STREAMING_CALL = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, - generateFullMethodName( - "grpc.testing.TestService", "StreamingCall"), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleResponse.getDefaultInstance())); - - public static TestServiceStub newStub(io.grpc.Channel channel) { - return new TestServiceStub(channel); - } - - public static TestServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new TestServiceBlockingStub(channel); - } - - public static TestServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - return new TestServiceFutureStub(channel); - } - - public static interface TestService { - - public void unaryCall(io.grpc.testing.SimpleRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public io.grpc.stub.StreamObserver streamingCall( - io.grpc.stub.StreamObserver responseObserver); - } - - public static interface TestServiceBlockingClient { - - public io.grpc.testing.SimpleResponse unaryCall(io.grpc.testing.SimpleRequest request); - } - - public static interface TestServiceFutureClient { - - public com.google.common.util.concurrent.ListenableFuture unaryCall( - io.grpc.testing.SimpleRequest request); - } - - public static class TestServiceStub extends io.grpc.stub.AbstractStub - implements TestService { - private TestServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private TestServiceStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TestServiceStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new TestServiceStub(channel, callOptions); - } - - @java.lang.Override - public void unaryCall(io.grpc.testing.SimpleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_UNARY_CALL, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public io.grpc.stub.StreamObserver streamingCall( - io.grpc.stub.StreamObserver responseObserver) { - return asyncBidiStreamingCall( - getChannel().newCall(METHOD_STREAMING_CALL, getCallOptions()), responseObserver); - } - } - - public static class TestServiceBlockingStub extends io.grpc.stub.AbstractStub - implements TestServiceBlockingClient { - private TestServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private TestServiceBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TestServiceBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new TestServiceBlockingStub(channel, callOptions); - } - - @java.lang.Override - public io.grpc.testing.SimpleResponse unaryCall(io.grpc.testing.SimpleRequest request) { - return blockingUnaryCall( - getChannel(), METHOD_UNARY_CALL, getCallOptions(), request); - } - } - - public static class TestServiceFutureStub extends io.grpc.stub.AbstractStub - implements TestServiceFutureClient { - private TestServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private TestServiceFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TestServiceFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new TestServiceFutureStub(channel, callOptions); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture unaryCall( - io.grpc.testing.SimpleRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_UNARY_CALL, getCallOptions()), request); - } - } - - private static final int METHODID_UNARY_CALL = 0; - private static final int METHODID_STREAMING_CALL = 1; - - private static class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final TestService serviceImpl; - private final int methodId; - - public MethodHandlers(TestService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_UNARY_CALL: - serviceImpl.unaryCall((io.grpc.testing.SimpleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_CALL: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingCall( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static io.grpc.ServerServiceDefinition bindService( - final TestService serviceImpl) { - return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) - .addMethod( - METHOD_UNARY_CALL, - asyncUnaryCall( - new MethodHandlers< - io.grpc.testing.SimpleRequest, - io.grpc.testing.SimpleResponse>( - serviceImpl, METHODID_UNARY_CALL))) - .addMethod( - METHOD_STREAMING_CALL, - asyncBidiStreamingCall( - new MethodHandlers< - io.grpc.testing.SimpleRequest, - io.grpc.testing.SimpleResponse>( - serviceImpl, METHODID_STREAMING_CALL))) - .build(); - } -} diff --git a/benchmarks/src/generated/main/grpc/io/grpc/testing/WorkerGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/testing/WorkerGrpc.java deleted file mode 100644 index da95cedc1b..0000000000 --- a/benchmarks/src/generated/main/grpc/io/grpc/testing/WorkerGrpc.java +++ /dev/null @@ -1,203 +0,0 @@ -package io.grpc.testing; - -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; - -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: qpstest.proto") -public class WorkerGrpc { - - private WorkerGrpc() {} - - public static final String SERVICE_NAME = "grpc.testing.Worker"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_RUN_TEST = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, - generateFullMethodName( - "grpc.testing.Worker", "RunTest"), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ClientArgs.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ClientStatus.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_RUN_SERVER = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, - generateFullMethodName( - "grpc.testing.Worker", "RunServer"), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ServerArgs.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ServerStatus.getDefaultInstance())); - - public static WorkerStub newStub(io.grpc.Channel channel) { - return new WorkerStub(channel); - } - - public static WorkerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new WorkerBlockingStub(channel); - } - - public static WorkerFutureStub newFutureStub( - io.grpc.Channel channel) { - return new WorkerFutureStub(channel); - } - - public static interface Worker { - - public io.grpc.stub.StreamObserver runTest( - io.grpc.stub.StreamObserver responseObserver); - - public io.grpc.stub.StreamObserver runServer( - io.grpc.stub.StreamObserver responseObserver); - } - - public static interface WorkerBlockingClient { - } - - public static interface WorkerFutureClient { - } - - public static class WorkerStub extends io.grpc.stub.AbstractStub - implements Worker { - private WorkerStub(io.grpc.Channel channel) { - super(channel); - } - - private WorkerStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkerStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new WorkerStub(channel, callOptions); - } - - @java.lang.Override - public io.grpc.stub.StreamObserver runTest( - io.grpc.stub.StreamObserver responseObserver) { - return asyncBidiStreamingCall( - getChannel().newCall(METHOD_RUN_TEST, getCallOptions()), responseObserver); - } - - @java.lang.Override - public io.grpc.stub.StreamObserver runServer( - io.grpc.stub.StreamObserver responseObserver) { - return asyncBidiStreamingCall( - getChannel().newCall(METHOD_RUN_SERVER, getCallOptions()), responseObserver); - } - } - - public static class WorkerBlockingStub extends io.grpc.stub.AbstractStub - implements WorkerBlockingClient { - private WorkerBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private WorkerBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkerBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new WorkerBlockingStub(channel, callOptions); - } - } - - public static class WorkerFutureStub extends io.grpc.stub.AbstractStub - implements WorkerFutureClient { - private WorkerFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private WorkerFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkerFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new WorkerFutureStub(channel, callOptions); - } - } - - private static final int METHODID_RUN_TEST = 0; - private static final int METHODID_RUN_SERVER = 1; - - private static class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final Worker serviceImpl; - private final int methodId; - - public MethodHandlers(Worker serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RUN_TEST: - return (io.grpc.stub.StreamObserver) serviceImpl.runTest( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_RUN_SERVER: - return (io.grpc.stub.StreamObserver) serviceImpl.runServer( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static io.grpc.ServerServiceDefinition bindService( - final Worker serviceImpl) { - return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) - .addMethod( - METHOD_RUN_TEST, - asyncBidiStreamingCall( - new MethodHandlers< - io.grpc.testing.ClientArgs, - io.grpc.testing.ClientStatus>( - serviceImpl, METHODID_RUN_TEST))) - .addMethod( - METHOD_RUN_SERVER, - asyncBidiStreamingCall( - new MethodHandlers< - io.grpc.testing.ServerArgs, - io.grpc.testing.ServerStatus>( - serviceImpl, METHODID_RUN_SERVER))) - .build(); - } -} diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java new file mode 100644 index 0000000000..2bad3bb00c --- /dev/null +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java @@ -0,0 +1,11849 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: control.proto + +package io.grpc.benchmarks.proto; + +public final class Control { + private Control() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + /** + * Protobuf enum {@code grpc.testing.ClientType} + */ + public enum ClientType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SYNC_CLIENT = 0; + */ + SYNC_CLIENT(0, 0), + /** + * ASYNC_CLIENT = 1; + */ + ASYNC_CLIENT(1, 1), + UNRECOGNIZED(-1, -1), + ; + + /** + * SYNC_CLIENT = 0; + */ + public static final int SYNC_CLIENT_VALUE = 0; + /** + * ASYNC_CLIENT = 1; + */ + public static final int ASYNC_CLIENT_VALUE = 1; + + + 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 ClientType valueOf(int value) { + switch (value) { + case 0: return SYNC_CLIENT; + case 1: return ASYNC_CLIENT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ClientType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClientType findValueByNumber(int number) { + return ClientType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.getDescriptor().getEnumTypes().get(0); + } + + private static final ClientType[] VALUES = values(); + + public static ClientType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private ClientType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:grpc.testing.ClientType) + } + + /** + * Protobuf enum {@code grpc.testing.ServerType} + */ + public enum ServerType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SYNC_SERVER = 0; + */ + SYNC_SERVER(0, 0), + /** + * ASYNC_SERVER = 1; + */ + ASYNC_SERVER(1, 1), + /** + * ASYNC_GENERIC_SERVER = 2; + */ + ASYNC_GENERIC_SERVER(2, 2), + UNRECOGNIZED(-1, -1), + ; + + /** + * SYNC_SERVER = 0; + */ + public static final int SYNC_SERVER_VALUE = 0; + /** + * ASYNC_SERVER = 1; + */ + public static final int ASYNC_SERVER_VALUE = 1; + /** + * ASYNC_GENERIC_SERVER = 2; + */ + public static final int ASYNC_GENERIC_SERVER_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 ServerType valueOf(int value) { + switch (value) { + case 0: return SYNC_SERVER; + case 1: return ASYNC_SERVER; + case 2: return ASYNC_GENERIC_SERVER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ServerType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ServerType findValueByNumber(int number) { + return ServerType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.getDescriptor().getEnumTypes().get(1); + } + + private static final ServerType[] VALUES = values(); + + public static ServerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private ServerType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:grpc.testing.ServerType) + } + + /** + * Protobuf enum {@code grpc.testing.RpcType} + */ + public enum RpcType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNARY = 0; + */ + UNARY(0, 0), + /** + * STREAMING = 1; + */ + STREAMING(1, 1), + UNRECOGNIZED(-1, -1), + ; + + /** + * UNARY = 0; + */ + public static final int UNARY_VALUE = 0; + /** + * STREAMING = 1; + */ + public static final int STREAMING_VALUE = 1; + + + 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 RpcType valueOf(int value) { + switch (value) { + case 0: return UNARY; + case 1: return STREAMING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RpcType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RpcType findValueByNumber(int number) { + return RpcType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.getDescriptor().getEnumTypes().get(2); + } + + private static final RpcType[] VALUES = values(); + + public static RpcType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private RpcType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:grpc.testing.RpcType) + } + + public interface PoissonParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.PoissonParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double offered_load = 1; + * + *
+     * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
+     * 
+ */ + double getOfferedLoad(); + } + /** + * Protobuf type {@code grpc.testing.PoissonParams} + * + *
+   * Parameters of poisson process distribution, which is a good representation
+   * of activity coming in from independent identical stationary sources.
+   * 
+ */ + public static final class PoissonParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.PoissonParams) + PoissonParamsOrBuilder { + // Use PoissonParams.newBuilder() to construct. + private PoissonParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PoissonParams() { + offeredLoad_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PoissonParams( + 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 9: { + + offeredLoad_ = 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.PoissonParams.class, io.grpc.benchmarks.proto.Control.PoissonParams.Builder.class); + } + + public static final int OFFERED_LOAD_FIELD_NUMBER = 1; + private double offeredLoad_; + /** + * optional double offered_load = 1; + * + *
+     * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
+     * 
+ */ + public double getOfferedLoad() { + return offeredLoad_; + } + + 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 (offeredLoad_ != 0D) { + output.writeDouble(1, offeredLoad_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (offeredLoad_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, offeredLoad_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams 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.benchmarks.proto.Control.PoissonParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.PoissonParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.PoissonParams} + * + *
+     * Parameters of poisson process distribution, which is a good representation
+     * of activity coming in from independent identical stationary sources.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.PoissonParams) + io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.PoissonParams.class, io.grpc.benchmarks.proto.Control.PoissonParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.PoissonParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + offeredLoad_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.PoissonParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.PoissonParams build() { + io.grpc.benchmarks.proto.Control.PoissonParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.PoissonParams buildPartial() { + io.grpc.benchmarks.proto.Control.PoissonParams result = new io.grpc.benchmarks.proto.Control.PoissonParams(this); + result.offeredLoad_ = offeredLoad_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.PoissonParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.PoissonParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.PoissonParams other) { + if (other == io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance()) return this; + if (other.getOfferedLoad() != 0D) { + setOfferedLoad(other.getOfferedLoad()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.PoissonParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.PoissonParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double offeredLoad_ ; + /** + * optional double offered_load = 1; + * + *
+       * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
+       * 
+ */ + public double getOfferedLoad() { + return offeredLoad_; + } + /** + * optional double offered_load = 1; + * + *
+       * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
+       * 
+ */ + public Builder setOfferedLoad(double value) { + + offeredLoad_ = value; + onChanged(); + return this; + } + /** + * optional double offered_load = 1; + * + *
+       * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
+       * 
+ */ + public Builder clearOfferedLoad() { + + offeredLoad_ = 0D; + 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.PoissonParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.PoissonParams) + private static final io.grpc.benchmarks.proto.Control.PoissonParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.PoissonParams(); + } + + public static io.grpc.benchmarks.proto.Control.PoissonParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PoissonParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new PoissonParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.PoissonParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UniformParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.UniformParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double interarrival_lo = 1; + */ + double getInterarrivalLo(); + + /** + * optional double interarrival_hi = 2; + */ + double getInterarrivalHi(); + } + /** + * Protobuf type {@code grpc.testing.UniformParams} + */ + public static final class UniformParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.UniformParams) + UniformParamsOrBuilder { + // Use UniformParams.newBuilder() to construct. + private UniformParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UniformParams() { + interarrivalLo_ = 0D; + interarrivalHi_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private UniformParams( + 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 9: { + + interarrivalLo_ = input.readDouble(); + break; + } + case 17: { + + interarrivalHi_ = 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.UniformParams.class, io.grpc.benchmarks.proto.Control.UniformParams.Builder.class); + } + + public static final int INTERARRIVAL_LO_FIELD_NUMBER = 1; + private double interarrivalLo_; + /** + * optional double interarrival_lo = 1; + */ + public double getInterarrivalLo() { + return interarrivalLo_; + } + + public static final int INTERARRIVAL_HI_FIELD_NUMBER = 2; + private double interarrivalHi_; + /** + * optional double interarrival_hi = 2; + */ + public double getInterarrivalHi() { + return interarrivalHi_; + } + + 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 (interarrivalLo_ != 0D) { + output.writeDouble(1, interarrivalLo_); + } + if (interarrivalHi_ != 0D) { + output.writeDouble(2, interarrivalHi_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (interarrivalLo_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, interarrivalLo_); + } + if (interarrivalHi_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, interarrivalHi_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.UniformParams 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.benchmarks.proto.Control.UniformParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.UniformParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.UniformParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.UniformParams) + io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.UniformParams.class, io.grpc.benchmarks.proto.Control.UniformParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.UniformParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + interarrivalLo_ = 0D; + + interarrivalHi_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.UniformParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.UniformParams build() { + io.grpc.benchmarks.proto.Control.UniformParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.UniformParams buildPartial() { + io.grpc.benchmarks.proto.Control.UniformParams result = new io.grpc.benchmarks.proto.Control.UniformParams(this); + result.interarrivalLo_ = interarrivalLo_; + result.interarrivalHi_ = interarrivalHi_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.UniformParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.UniformParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.UniformParams other) { + if (other == io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance()) return this; + if (other.getInterarrivalLo() != 0D) { + setInterarrivalLo(other.getInterarrivalLo()); + } + if (other.getInterarrivalHi() != 0D) { + setInterarrivalHi(other.getInterarrivalHi()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.UniformParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.UniformParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double interarrivalLo_ ; + /** + * optional double interarrival_lo = 1; + */ + public double getInterarrivalLo() { + return interarrivalLo_; + } + /** + * optional double interarrival_lo = 1; + */ + public Builder setInterarrivalLo(double value) { + + interarrivalLo_ = value; + onChanged(); + return this; + } + /** + * optional double interarrival_lo = 1; + */ + public Builder clearInterarrivalLo() { + + interarrivalLo_ = 0D; + onChanged(); + return this; + } + + private double interarrivalHi_ ; + /** + * optional double interarrival_hi = 2; + */ + public double getInterarrivalHi() { + return interarrivalHi_; + } + /** + * optional double interarrival_hi = 2; + */ + public Builder setInterarrivalHi(double value) { + + interarrivalHi_ = value; + onChanged(); + return this; + } + /** + * optional double interarrival_hi = 2; + */ + public Builder clearInterarrivalHi() { + + interarrivalHi_ = 0D; + 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.UniformParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.UniformParams) + private static final io.grpc.benchmarks.proto.Control.UniformParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.UniformParams(); + } + + public static io.grpc.benchmarks.proto.Control.UniformParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UniformParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new UniformParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.UniformParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeterministicParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.DeterministicParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double offered_load = 1; + */ + double getOfferedLoad(); + } + /** + * Protobuf type {@code grpc.testing.DeterministicParams} + */ + public static final class DeterministicParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.DeterministicParams) + DeterministicParamsOrBuilder { + // Use DeterministicParams.newBuilder() to construct. + private DeterministicParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeterministicParams() { + offeredLoad_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private DeterministicParams( + 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 9: { + + offeredLoad_ = 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.DeterministicParams.class, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder.class); + } + + public static final int OFFERED_LOAD_FIELD_NUMBER = 1; + private double offeredLoad_; + /** + * optional double offered_load = 1; + */ + public double getOfferedLoad() { + return offeredLoad_; + } + + 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 (offeredLoad_ != 0D) { + output.writeDouble(1, offeredLoad_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (offeredLoad_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, offeredLoad_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams 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.benchmarks.proto.Control.DeterministicParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.DeterministicParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.DeterministicParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.DeterministicParams) + io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.DeterministicParams.class, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.DeterministicParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + offeredLoad_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.DeterministicParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.DeterministicParams build() { + io.grpc.benchmarks.proto.Control.DeterministicParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.DeterministicParams buildPartial() { + io.grpc.benchmarks.proto.Control.DeterministicParams result = new io.grpc.benchmarks.proto.Control.DeterministicParams(this); + result.offeredLoad_ = offeredLoad_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.DeterministicParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.DeterministicParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.DeterministicParams other) { + if (other == io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance()) return this; + if (other.getOfferedLoad() != 0D) { + setOfferedLoad(other.getOfferedLoad()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.DeterministicParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.DeterministicParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double offeredLoad_ ; + /** + * optional double offered_load = 1; + */ + public double getOfferedLoad() { + return offeredLoad_; + } + /** + * optional double offered_load = 1; + */ + public Builder setOfferedLoad(double value) { + + offeredLoad_ = value; + onChanged(); + return this; + } + /** + * optional double offered_load = 1; + */ + public Builder clearOfferedLoad() { + + offeredLoad_ = 0D; + 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.DeterministicParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.DeterministicParams) + private static final io.grpc.benchmarks.proto.Control.DeterministicParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.DeterministicParams(); + } + + public static io.grpc.benchmarks.proto.Control.DeterministicParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DeterministicParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new DeterministicParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.DeterministicParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParetoParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ParetoParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double interarrival_base = 1; + */ + double getInterarrivalBase(); + + /** + * optional double alpha = 2; + */ + double getAlpha(); + } + /** + * Protobuf type {@code grpc.testing.ParetoParams} + */ + public static final class ParetoParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ParetoParams) + ParetoParamsOrBuilder { + // Use ParetoParams.newBuilder() to construct. + private ParetoParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ParetoParams() { + interarrivalBase_ = 0D; + alpha_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ParetoParams( + 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 9: { + + interarrivalBase_ = input.readDouble(); + break; + } + case 17: { + + alpha_ = 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ParetoParams.class, io.grpc.benchmarks.proto.Control.ParetoParams.Builder.class); + } + + public static final int INTERARRIVAL_BASE_FIELD_NUMBER = 1; + private double interarrivalBase_; + /** + * optional double interarrival_base = 1; + */ + public double getInterarrivalBase() { + return interarrivalBase_; + } + + public static final int ALPHA_FIELD_NUMBER = 2; + private double alpha_; + /** + * optional double alpha = 2; + */ + public double getAlpha() { + return alpha_; + } + + 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 (interarrivalBase_ != 0D) { + output.writeDouble(1, interarrivalBase_); + } + if (alpha_ != 0D) { + output.writeDouble(2, alpha_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (interarrivalBase_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, interarrivalBase_); + } + if (alpha_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, alpha_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams 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.benchmarks.proto.Control.ParetoParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ParetoParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.ParetoParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ParetoParams) + io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ParetoParams.class, io.grpc.benchmarks.proto.Control.ParetoParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ParetoParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + interarrivalBase_ = 0D; + + alpha_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ParetoParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ParetoParams build() { + io.grpc.benchmarks.proto.Control.ParetoParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ParetoParams buildPartial() { + io.grpc.benchmarks.proto.Control.ParetoParams result = new io.grpc.benchmarks.proto.Control.ParetoParams(this); + result.interarrivalBase_ = interarrivalBase_; + result.alpha_ = alpha_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ParetoParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ParetoParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ParetoParams other) { + if (other == io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance()) return this; + if (other.getInterarrivalBase() != 0D) { + setInterarrivalBase(other.getInterarrivalBase()); + } + if (other.getAlpha() != 0D) { + setAlpha(other.getAlpha()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ParetoParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ParetoParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double interarrivalBase_ ; + /** + * optional double interarrival_base = 1; + */ + public double getInterarrivalBase() { + return interarrivalBase_; + } + /** + * optional double interarrival_base = 1; + */ + public Builder setInterarrivalBase(double value) { + + interarrivalBase_ = value; + onChanged(); + return this; + } + /** + * optional double interarrival_base = 1; + */ + public Builder clearInterarrivalBase() { + + interarrivalBase_ = 0D; + onChanged(); + return this; + } + + private double alpha_ ; + /** + * optional double alpha = 2; + */ + public double getAlpha() { + return alpha_; + } + /** + * optional double alpha = 2; + */ + public Builder setAlpha(double value) { + + alpha_ = value; + onChanged(); + return this; + } + /** + * optional double alpha = 2; + */ + public Builder clearAlpha() { + + alpha_ = 0D; + 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.ParetoParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ParetoParams) + private static final io.grpc.benchmarks.proto.Control.ParetoParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ParetoParams(); + } + + public static io.grpc.benchmarks.proto.Control.ParetoParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ParetoParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ParetoParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ParetoParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClosedLoopParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ClosedLoopParams) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code grpc.testing.ClosedLoopParams} + * + *
+   * Once an RPC finishes, immediately start a new one.
+   * No configuration parameters needed.
+   * 
+ */ + public static final class ClosedLoopParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ClosedLoopParams) + ClosedLoopParamsOrBuilder { + // Use ClosedLoopParams.newBuilder() to construct. + private ClosedLoopParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ClosedLoopParams() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClosedLoopParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + 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; + } + } + } + } 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.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClosedLoopParams.class, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder.class); + } + + 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 { + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams 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.benchmarks.proto.Control.ClosedLoopParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ClosedLoopParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.ClosedLoopParams} + * + *
+     * Once an RPC finishes, immediately start a new one.
+     * No configuration parameters needed.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ClosedLoopParams) + io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClosedLoopParams.class, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ClosedLoopParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ClosedLoopParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ClosedLoopParams build() { + io.grpc.benchmarks.proto.Control.ClosedLoopParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ClosedLoopParams buildPartial() { + io.grpc.benchmarks.proto.Control.ClosedLoopParams result = new io.grpc.benchmarks.proto.Control.ClosedLoopParams(this); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ClosedLoopParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ClosedLoopParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ClosedLoopParams other) { + if (other == io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance()) return this; + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ClosedLoopParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ClosedLoopParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.ClosedLoopParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ClosedLoopParams) + private static final io.grpc.benchmarks.proto.Control.ClosedLoopParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ClosedLoopParams(); + } + + public static io.grpc.benchmarks.proto.Control.ClosedLoopParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClosedLoopParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ClosedLoopParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ClosedLoopParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LoadParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.LoadParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + io.grpc.benchmarks.proto.Control.ClosedLoopParams getClosedLoop(); + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder getClosedLoopOrBuilder(); + + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + io.grpc.benchmarks.proto.Control.PoissonParams getPoisson(); + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder getPoissonOrBuilder(); + + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + io.grpc.benchmarks.proto.Control.UniformParams getUniform(); + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder getUniformOrBuilder(); + + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + io.grpc.benchmarks.proto.Control.DeterministicParams getDeterm(); + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder getDetermOrBuilder(); + + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + io.grpc.benchmarks.proto.Control.ParetoParams getPareto(); + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder getParetoOrBuilder(); + + public io.grpc.benchmarks.proto.Control.LoadParams.LoadCase getLoadCase(); + } + /** + * Protobuf type {@code grpc.testing.LoadParams} + */ + public static final class LoadParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.LoadParams) + LoadParamsOrBuilder { + // Use LoadParams.newBuilder() to construct. + private LoadParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private LoadParams() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private LoadParams( + 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.benchmarks.proto.Control.ClosedLoopParams.Builder subBuilder = null; + if (loadCase_ == 1) { + subBuilder = ((io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_).toBuilder(); + } + load_ = + input.readMessage(io.grpc.benchmarks.proto.Control.ClosedLoopParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_); + load_ = subBuilder.buildPartial(); + } + loadCase_ = 1; + break; + } + case 18: { + io.grpc.benchmarks.proto.Control.PoissonParams.Builder subBuilder = null; + if (loadCase_ == 2) { + subBuilder = ((io.grpc.benchmarks.proto.Control.PoissonParams) load_).toBuilder(); + } + load_ = + input.readMessage(io.grpc.benchmarks.proto.Control.PoissonParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.PoissonParams) load_); + load_ = subBuilder.buildPartial(); + } + loadCase_ = 2; + break; + } + case 26: { + io.grpc.benchmarks.proto.Control.UniformParams.Builder subBuilder = null; + if (loadCase_ == 3) { + subBuilder = ((io.grpc.benchmarks.proto.Control.UniformParams) load_).toBuilder(); + } + load_ = + input.readMessage(io.grpc.benchmarks.proto.Control.UniformParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.UniformParams) load_); + load_ = subBuilder.buildPartial(); + } + loadCase_ = 3; + break; + } + case 34: { + io.grpc.benchmarks.proto.Control.DeterministicParams.Builder subBuilder = null; + if (loadCase_ == 4) { + subBuilder = ((io.grpc.benchmarks.proto.Control.DeterministicParams) load_).toBuilder(); + } + load_ = + input.readMessage(io.grpc.benchmarks.proto.Control.DeterministicParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.DeterministicParams) load_); + load_ = subBuilder.buildPartial(); + } + loadCase_ = 4; + break; + } + case 42: { + io.grpc.benchmarks.proto.Control.ParetoParams.Builder subBuilder = null; + if (loadCase_ == 5) { + subBuilder = ((io.grpc.benchmarks.proto.Control.ParetoParams) load_).toBuilder(); + } + load_ = + input.readMessage(io.grpc.benchmarks.proto.Control.ParetoParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.ParetoParams) load_); + load_ = subBuilder.buildPartial(); + } + loadCase_ = 5; + 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.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.LoadParams.class, io.grpc.benchmarks.proto.Control.LoadParams.Builder.class); + } + + private int loadCase_ = 0; + private java.lang.Object load_; + public enum LoadCase + implements com.google.protobuf.Internal.EnumLite { + CLOSED_LOOP(1), + POISSON(2), + UNIFORM(3), + DETERM(4), + PARETO(5), + LOAD_NOT_SET(0); + private int value = 0; + private LoadCase(int value) { + this.value = value; + } + public static LoadCase valueOf(int value) { + switch (value) { + case 1: return CLOSED_LOOP; + case 2: return POISSON; + case 3: return UNIFORM; + case 4: return DETERM; + case 5: return PARETO; + case 0: return LOAD_NOT_SET; + default: throw new java.lang.IllegalArgumentException( + "Value is undefined for this oneof enum."); + } + } + public int getNumber() { + return this.value; + } + }; + + public LoadCase + getLoadCase() { + return LoadCase.valueOf( + loadCase_); + } + + public static final int CLOSED_LOOP_FIELD_NUMBER = 1; + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public io.grpc.benchmarks.proto.Control.ClosedLoopParams getClosedLoop() { + if (loadCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_; + } + return io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder getClosedLoopOrBuilder() { + if (loadCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_; + } + return io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } + + public static final int POISSON_FIELD_NUMBER = 2; + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public io.grpc.benchmarks.proto.Control.PoissonParams getPoisson() { + if (loadCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.PoissonParams) load_; + } + return io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder getPoissonOrBuilder() { + if (loadCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.PoissonParams) load_; + } + return io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } + + public static final int UNIFORM_FIELD_NUMBER = 3; + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public io.grpc.benchmarks.proto.Control.UniformParams getUniform() { + if (loadCase_ == 3) { + return (io.grpc.benchmarks.proto.Control.UniformParams) load_; + } + return io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder getUniformOrBuilder() { + if (loadCase_ == 3) { + return (io.grpc.benchmarks.proto.Control.UniformParams) load_; + } + return io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } + + public static final int DETERM_FIELD_NUMBER = 4; + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public io.grpc.benchmarks.proto.Control.DeterministicParams getDeterm() { + if (loadCase_ == 4) { + return (io.grpc.benchmarks.proto.Control.DeterministicParams) load_; + } + return io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder getDetermOrBuilder() { + if (loadCase_ == 4) { + return (io.grpc.benchmarks.proto.Control.DeterministicParams) load_; + } + return io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } + + public static final int PARETO_FIELD_NUMBER = 5; + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public io.grpc.benchmarks.proto.Control.ParetoParams getPareto() { + if (loadCase_ == 5) { + return (io.grpc.benchmarks.proto.Control.ParetoParams) load_; + } + return io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder getParetoOrBuilder() { + if (loadCase_ == 5) { + return (io.grpc.benchmarks.proto.Control.ParetoParams) load_; + } + return io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } + + 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 (loadCase_ == 1) { + output.writeMessage(1, (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_); + } + if (loadCase_ == 2) { + output.writeMessage(2, (io.grpc.benchmarks.proto.Control.PoissonParams) load_); + } + if (loadCase_ == 3) { + output.writeMessage(3, (io.grpc.benchmarks.proto.Control.UniformParams) load_); + } + if (loadCase_ == 4) { + output.writeMessage(4, (io.grpc.benchmarks.proto.Control.DeterministicParams) load_); + } + if (loadCase_ == 5) { + output.writeMessage(5, (io.grpc.benchmarks.proto.Control.ParetoParams) load_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (loadCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_); + } + if (loadCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.grpc.benchmarks.proto.Control.PoissonParams) load_); + } + if (loadCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.grpc.benchmarks.proto.Control.UniformParams) load_); + } + if (loadCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.grpc.benchmarks.proto.Control.DeterministicParams) load_); + } + if (loadCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.grpc.benchmarks.proto.Control.ParetoParams) load_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.LoadParams 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.benchmarks.proto.Control.LoadParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.LoadParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.LoadParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.LoadParams) + io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.LoadParams.class, io.grpc.benchmarks.proto.Control.LoadParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.LoadParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + loadCase_ = 0; + load_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.LoadParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.LoadParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.LoadParams build() { + io.grpc.benchmarks.proto.Control.LoadParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.LoadParams buildPartial() { + io.grpc.benchmarks.proto.Control.LoadParams result = new io.grpc.benchmarks.proto.Control.LoadParams(this); + if (loadCase_ == 1) { + if (closedLoopBuilder_ == null) { + result.load_ = load_; + } else { + result.load_ = closedLoopBuilder_.build(); + } + } + if (loadCase_ == 2) { + if (poissonBuilder_ == null) { + result.load_ = load_; + } else { + result.load_ = poissonBuilder_.build(); + } + } + if (loadCase_ == 3) { + if (uniformBuilder_ == null) { + result.load_ = load_; + } else { + result.load_ = uniformBuilder_.build(); + } + } + if (loadCase_ == 4) { + if (determBuilder_ == null) { + result.load_ = load_; + } else { + result.load_ = determBuilder_.build(); + } + } + if (loadCase_ == 5) { + if (paretoBuilder_ == null) { + result.load_ = load_; + } else { + result.load_ = paretoBuilder_.build(); + } + } + result.loadCase_ = loadCase_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.LoadParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.LoadParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.LoadParams other) { + if (other == io.grpc.benchmarks.proto.Control.LoadParams.getDefaultInstance()) return this; + switch (other.getLoadCase()) { + case CLOSED_LOOP: { + mergeClosedLoop(other.getClosedLoop()); + break; + } + case POISSON: { + mergePoisson(other.getPoisson()); + break; + } + case UNIFORM: { + mergeUniform(other.getUniform()); + break; + } + case DETERM: { + mergeDeterm(other.getDeterm()); + break; + } + case PARETO: { + mergePareto(other.getPareto()); + break; + } + case LOAD_NOT_SET: { + break; + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.LoadParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.LoadParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int loadCase_ = 0; + private java.lang.Object load_; + public LoadCase + getLoadCase() { + return LoadCase.valueOf( + loadCase_); + } + + public Builder clearLoad() { + loadCase_ = 0; + load_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ClosedLoopParams, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder, io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder> closedLoopBuilder_; + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public io.grpc.benchmarks.proto.Control.ClosedLoopParams getClosedLoop() { + if (closedLoopBuilder_ == null) { + if (loadCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_; + } + return io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } else { + if (loadCase_ == 1) { + return closedLoopBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public Builder setClosedLoop(io.grpc.benchmarks.proto.Control.ClosedLoopParams value) { + if (closedLoopBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + load_ = value; + onChanged(); + } else { + closedLoopBuilder_.setMessage(value); + } + loadCase_ = 1; + return this; + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public Builder setClosedLoop( + io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder builderForValue) { + if (closedLoopBuilder_ == null) { + load_ = builderForValue.build(); + onChanged(); + } else { + closedLoopBuilder_.setMessage(builderForValue.build()); + } + loadCase_ = 1; + return this; + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public Builder mergeClosedLoop(io.grpc.benchmarks.proto.Control.ClosedLoopParams value) { + if (closedLoopBuilder_ == null) { + if (loadCase_ == 1 && + load_ != io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance()) { + load_ = io.grpc.benchmarks.proto.Control.ClosedLoopParams.newBuilder((io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_) + .mergeFrom(value).buildPartial(); + } else { + load_ = value; + } + onChanged(); + } else { + if (loadCase_ == 1) { + closedLoopBuilder_.mergeFrom(value); + } + closedLoopBuilder_.setMessage(value); + } + loadCase_ = 1; + return this; + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public Builder clearClosedLoop() { + if (closedLoopBuilder_ == null) { + if (loadCase_ == 1) { + loadCase_ = 0; + load_ = null; + onChanged(); + } + } else { + if (loadCase_ == 1) { + loadCase_ = 0; + load_ = null; + } + closedLoopBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder getClosedLoopBuilder() { + return getClosedLoopFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + public io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder getClosedLoopOrBuilder() { + if ((loadCase_ == 1) && (closedLoopBuilder_ != null)) { + return closedLoopBuilder_.getMessageOrBuilder(); + } else { + if (loadCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_; + } + return io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ClosedLoopParams closed_loop = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ClosedLoopParams, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder, io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder> + getClosedLoopFieldBuilder() { + if (closedLoopBuilder_ == null) { + if (!(loadCase_ == 1)) { + load_ = io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance(); + } + closedLoopBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ClosedLoopParams, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder, io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder>( + (io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_, + getParentForChildren(), + isClean()); + load_ = null; + } + loadCase_ = 1; + onChanged();; + return closedLoopBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.PoissonParams, io.grpc.benchmarks.proto.Control.PoissonParams.Builder, io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder> poissonBuilder_; + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public io.grpc.benchmarks.proto.Control.PoissonParams getPoisson() { + if (poissonBuilder_ == null) { + if (loadCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.PoissonParams) load_; + } + return io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } else { + if (loadCase_ == 2) { + return poissonBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public Builder setPoisson(io.grpc.benchmarks.proto.Control.PoissonParams value) { + if (poissonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + load_ = value; + onChanged(); + } else { + poissonBuilder_.setMessage(value); + } + loadCase_ = 2; + return this; + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public Builder setPoisson( + io.grpc.benchmarks.proto.Control.PoissonParams.Builder builderForValue) { + if (poissonBuilder_ == null) { + load_ = builderForValue.build(); + onChanged(); + } else { + poissonBuilder_.setMessage(builderForValue.build()); + } + loadCase_ = 2; + return this; + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public Builder mergePoisson(io.grpc.benchmarks.proto.Control.PoissonParams value) { + if (poissonBuilder_ == null) { + if (loadCase_ == 2 && + load_ != io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance()) { + load_ = io.grpc.benchmarks.proto.Control.PoissonParams.newBuilder((io.grpc.benchmarks.proto.Control.PoissonParams) load_) + .mergeFrom(value).buildPartial(); + } else { + load_ = value; + } + onChanged(); + } else { + if (loadCase_ == 2) { + poissonBuilder_.mergeFrom(value); + } + poissonBuilder_.setMessage(value); + } + loadCase_ = 2; + return this; + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public Builder clearPoisson() { + if (poissonBuilder_ == null) { + if (loadCase_ == 2) { + loadCase_ = 0; + load_ = null; + onChanged(); + } + } else { + if (loadCase_ == 2) { + loadCase_ = 0; + load_ = null; + } + poissonBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public io.grpc.benchmarks.proto.Control.PoissonParams.Builder getPoissonBuilder() { + return getPoissonFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + public io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder getPoissonOrBuilder() { + if ((loadCase_ == 2) && (poissonBuilder_ != null)) { + return poissonBuilder_.getMessageOrBuilder(); + } else { + if (loadCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.PoissonParams) load_; + } + return io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.PoissonParams poisson = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.PoissonParams, io.grpc.benchmarks.proto.Control.PoissonParams.Builder, io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder> + getPoissonFieldBuilder() { + if (poissonBuilder_ == null) { + if (!(loadCase_ == 2)) { + load_ = io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance(); + } + poissonBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.PoissonParams, io.grpc.benchmarks.proto.Control.PoissonParams.Builder, io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder>( + (io.grpc.benchmarks.proto.Control.PoissonParams) load_, + getParentForChildren(), + isClean()); + load_ = null; + } + loadCase_ = 2; + onChanged();; + return poissonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.UniformParams, io.grpc.benchmarks.proto.Control.UniformParams.Builder, io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder> uniformBuilder_; + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public io.grpc.benchmarks.proto.Control.UniformParams getUniform() { + if (uniformBuilder_ == null) { + if (loadCase_ == 3) { + return (io.grpc.benchmarks.proto.Control.UniformParams) load_; + } + return io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } else { + if (loadCase_ == 3) { + return uniformBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public Builder setUniform(io.grpc.benchmarks.proto.Control.UniformParams value) { + if (uniformBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + load_ = value; + onChanged(); + } else { + uniformBuilder_.setMessage(value); + } + loadCase_ = 3; + return this; + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public Builder setUniform( + io.grpc.benchmarks.proto.Control.UniformParams.Builder builderForValue) { + if (uniformBuilder_ == null) { + load_ = builderForValue.build(); + onChanged(); + } else { + uniformBuilder_.setMessage(builderForValue.build()); + } + loadCase_ = 3; + return this; + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public Builder mergeUniform(io.grpc.benchmarks.proto.Control.UniformParams value) { + if (uniformBuilder_ == null) { + if (loadCase_ == 3 && + load_ != io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance()) { + load_ = io.grpc.benchmarks.proto.Control.UniformParams.newBuilder((io.grpc.benchmarks.proto.Control.UniformParams) load_) + .mergeFrom(value).buildPartial(); + } else { + load_ = value; + } + onChanged(); + } else { + if (loadCase_ == 3) { + uniformBuilder_.mergeFrom(value); + } + uniformBuilder_.setMessage(value); + } + loadCase_ = 3; + return this; + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public Builder clearUniform() { + if (uniformBuilder_ == null) { + if (loadCase_ == 3) { + loadCase_ = 0; + load_ = null; + onChanged(); + } + } else { + if (loadCase_ == 3) { + loadCase_ = 0; + load_ = null; + } + uniformBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public io.grpc.benchmarks.proto.Control.UniformParams.Builder getUniformBuilder() { + return getUniformFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + public io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder getUniformOrBuilder() { + if ((loadCase_ == 3) && (uniformBuilder_ != null)) { + return uniformBuilder_.getMessageOrBuilder(); + } else { + if (loadCase_ == 3) { + return (io.grpc.benchmarks.proto.Control.UniformParams) load_; + } + return io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.UniformParams uniform = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.UniformParams, io.grpc.benchmarks.proto.Control.UniformParams.Builder, io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder> + getUniformFieldBuilder() { + if (uniformBuilder_ == null) { + if (!(loadCase_ == 3)) { + load_ = io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance(); + } + uniformBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.UniformParams, io.grpc.benchmarks.proto.Control.UniformParams.Builder, io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder>( + (io.grpc.benchmarks.proto.Control.UniformParams) load_, + getParentForChildren(), + isClean()); + load_ = null; + } + loadCase_ = 3; + onChanged();; + return uniformBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.DeterministicParams, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder, io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder> determBuilder_; + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public io.grpc.benchmarks.proto.Control.DeterministicParams getDeterm() { + if (determBuilder_ == null) { + if (loadCase_ == 4) { + return (io.grpc.benchmarks.proto.Control.DeterministicParams) load_; + } + return io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } else { + if (loadCase_ == 4) { + return determBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public Builder setDeterm(io.grpc.benchmarks.proto.Control.DeterministicParams value) { + if (determBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + load_ = value; + onChanged(); + } else { + determBuilder_.setMessage(value); + } + loadCase_ = 4; + return this; + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public Builder setDeterm( + io.grpc.benchmarks.proto.Control.DeterministicParams.Builder builderForValue) { + if (determBuilder_ == null) { + load_ = builderForValue.build(); + onChanged(); + } else { + determBuilder_.setMessage(builderForValue.build()); + } + loadCase_ = 4; + return this; + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public Builder mergeDeterm(io.grpc.benchmarks.proto.Control.DeterministicParams value) { + if (determBuilder_ == null) { + if (loadCase_ == 4 && + load_ != io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance()) { + load_ = io.grpc.benchmarks.proto.Control.DeterministicParams.newBuilder((io.grpc.benchmarks.proto.Control.DeterministicParams) load_) + .mergeFrom(value).buildPartial(); + } else { + load_ = value; + } + onChanged(); + } else { + if (loadCase_ == 4) { + determBuilder_.mergeFrom(value); + } + determBuilder_.setMessage(value); + } + loadCase_ = 4; + return this; + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public Builder clearDeterm() { + if (determBuilder_ == null) { + if (loadCase_ == 4) { + loadCase_ = 0; + load_ = null; + onChanged(); + } + } else { + if (loadCase_ == 4) { + loadCase_ = 0; + load_ = null; + } + determBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public io.grpc.benchmarks.proto.Control.DeterministicParams.Builder getDetermBuilder() { + return getDetermFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + public io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder getDetermOrBuilder() { + if ((loadCase_ == 4) && (determBuilder_ != null)) { + return determBuilder_.getMessageOrBuilder(); + } else { + if (loadCase_ == 4) { + return (io.grpc.benchmarks.proto.Control.DeterministicParams) load_; + } + return io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.DeterministicParams determ = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.DeterministicParams, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder, io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder> + getDetermFieldBuilder() { + if (determBuilder_ == null) { + if (!(loadCase_ == 4)) { + load_ = io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance(); + } + determBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.DeterministicParams, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder, io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder>( + (io.grpc.benchmarks.proto.Control.DeterministicParams) load_, + getParentForChildren(), + isClean()); + load_ = null; + } + loadCase_ = 4; + onChanged();; + return determBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ParetoParams, io.grpc.benchmarks.proto.Control.ParetoParams.Builder, io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder> paretoBuilder_; + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public io.grpc.benchmarks.proto.Control.ParetoParams getPareto() { + if (paretoBuilder_ == null) { + if (loadCase_ == 5) { + return (io.grpc.benchmarks.proto.Control.ParetoParams) load_; + } + return io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } else { + if (loadCase_ == 5) { + return paretoBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public Builder setPareto(io.grpc.benchmarks.proto.Control.ParetoParams value) { + if (paretoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + load_ = value; + onChanged(); + } else { + paretoBuilder_.setMessage(value); + } + loadCase_ = 5; + return this; + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public Builder setPareto( + io.grpc.benchmarks.proto.Control.ParetoParams.Builder builderForValue) { + if (paretoBuilder_ == null) { + load_ = builderForValue.build(); + onChanged(); + } else { + paretoBuilder_.setMessage(builderForValue.build()); + } + loadCase_ = 5; + return this; + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public Builder mergePareto(io.grpc.benchmarks.proto.Control.ParetoParams value) { + if (paretoBuilder_ == null) { + if (loadCase_ == 5 && + load_ != io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance()) { + load_ = io.grpc.benchmarks.proto.Control.ParetoParams.newBuilder((io.grpc.benchmarks.proto.Control.ParetoParams) load_) + .mergeFrom(value).buildPartial(); + } else { + load_ = value; + } + onChanged(); + } else { + if (loadCase_ == 5) { + paretoBuilder_.mergeFrom(value); + } + paretoBuilder_.setMessage(value); + } + loadCase_ = 5; + return this; + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public Builder clearPareto() { + if (paretoBuilder_ == null) { + if (loadCase_ == 5) { + loadCase_ = 0; + load_ = null; + onChanged(); + } + } else { + if (loadCase_ == 5) { + loadCase_ = 0; + load_ = null; + } + paretoBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public io.grpc.benchmarks.proto.Control.ParetoParams.Builder getParetoBuilder() { + return getParetoFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + public io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder getParetoOrBuilder() { + if ((loadCase_ == 5) && (paretoBuilder_ != null)) { + return paretoBuilder_.getMessageOrBuilder(); + } else { + if (loadCase_ == 5) { + return (io.grpc.benchmarks.proto.Control.ParetoParams) load_; + } + return io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ParetoParams pareto = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ParetoParams, io.grpc.benchmarks.proto.Control.ParetoParams.Builder, io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder> + getParetoFieldBuilder() { + if (paretoBuilder_ == null) { + if (!(loadCase_ == 5)) { + load_ = io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance(); + } + paretoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ParetoParams, io.grpc.benchmarks.proto.Control.ParetoParams.Builder, io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder>( + (io.grpc.benchmarks.proto.Control.ParetoParams) load_, + getParentForChildren(), + isClean()); + load_ = null; + } + loadCase_ = 5; + onChanged();; + return paretoBuilder_; + } + 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.LoadParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.LoadParams) + private static final io.grpc.benchmarks.proto.Control.LoadParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.LoadParams(); + } + + public static io.grpc.benchmarks.proto.Control.LoadParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LoadParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new LoadParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.LoadParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecurityParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.SecurityParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bool use_test_ca = 1; + */ + boolean getUseTestCa(); + + /** + * optional string server_host_override = 2; + */ + java.lang.String getServerHostOverride(); + /** + * optional string server_host_override = 2; + */ + com.google.protobuf.ByteString + getServerHostOverrideBytes(); + } + /** + * Protobuf type {@code grpc.testing.SecurityParams} + * + *
+   * presence of SecurityParams implies use of TLS
+   * 
+ */ + public static final class SecurityParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.SecurityParams) + SecurityParamsOrBuilder { + // Use SecurityParams.newBuilder() to construct. + private SecurityParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SecurityParams() { + useTestCa_ = false; + serverHostOverride_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SecurityParams( + 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: { + + useTestCa_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + serverHostOverride_ = s; + 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.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.SecurityParams.class, io.grpc.benchmarks.proto.Control.SecurityParams.Builder.class); + } + + public static final int USE_TEST_CA_FIELD_NUMBER = 1; + private boolean useTestCa_; + /** + * optional bool use_test_ca = 1; + */ + public boolean getUseTestCa() { + return useTestCa_; + } + + public static final int SERVER_HOST_OVERRIDE_FIELD_NUMBER = 2; + private volatile java.lang.Object serverHostOverride_; + /** + * optional string server_host_override = 2; + */ + public java.lang.String getServerHostOverride() { + java.lang.Object ref = serverHostOverride_; + 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(); + serverHostOverride_ = s; + return s; + } + } + /** + * optional string server_host_override = 2; + */ + public com.google.protobuf.ByteString + getServerHostOverrideBytes() { + java.lang.Object ref = serverHostOverride_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serverHostOverride_ = 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 (useTestCa_ != false) { + output.writeBool(1, useTestCa_); + } + if (!getServerHostOverrideBytes().isEmpty()) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, serverHostOverride_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useTestCa_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, useTestCa_); + } + if (!getServerHostOverrideBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, serverHostOverride_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams 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.benchmarks.proto.Control.SecurityParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.SecurityParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.SecurityParams} + * + *
+     * presence of SecurityParams implies use of TLS
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.SecurityParams) + io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.SecurityParams.class, io.grpc.benchmarks.proto.Control.SecurityParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.SecurityParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + useTestCa_ = false; + + serverHostOverride_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_descriptor; + } + + public io.grpc.benchmarks.proto.Control.SecurityParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.SecurityParams build() { + io.grpc.benchmarks.proto.Control.SecurityParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.SecurityParams buildPartial() { + io.grpc.benchmarks.proto.Control.SecurityParams result = new io.grpc.benchmarks.proto.Control.SecurityParams(this); + result.useTestCa_ = useTestCa_; + result.serverHostOverride_ = serverHostOverride_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.SecurityParams) { + return mergeFrom((io.grpc.benchmarks.proto.Control.SecurityParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.SecurityParams other) { + if (other == io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance()) return this; + if (other.getUseTestCa() != false) { + setUseTestCa(other.getUseTestCa()); + } + if (!other.getServerHostOverride().isEmpty()) { + serverHostOverride_ = other.serverHostOverride_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.SecurityParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.SecurityParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean useTestCa_ ; + /** + * optional bool use_test_ca = 1; + */ + public boolean getUseTestCa() { + return useTestCa_; + } + /** + * optional bool use_test_ca = 1; + */ + public Builder setUseTestCa(boolean value) { + + useTestCa_ = value; + onChanged(); + return this; + } + /** + * optional bool use_test_ca = 1; + */ + public Builder clearUseTestCa() { + + useTestCa_ = false; + onChanged(); + return this; + } + + private java.lang.Object serverHostOverride_ = ""; + /** + * optional string server_host_override = 2; + */ + public java.lang.String getServerHostOverride() { + java.lang.Object ref = serverHostOverride_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverHostOverride_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string server_host_override = 2; + */ + public com.google.protobuf.ByteString + getServerHostOverrideBytes() { + java.lang.Object ref = serverHostOverride_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serverHostOverride_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string server_host_override = 2; + */ + public Builder setServerHostOverride( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serverHostOverride_ = value; + onChanged(); + return this; + } + /** + * optional string server_host_override = 2; + */ + public Builder clearServerHostOverride() { + + serverHostOverride_ = getDefaultInstance().getServerHostOverride(); + onChanged(); + return this; + } + /** + * optional string server_host_override = 2; + */ + public Builder setServerHostOverrideBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serverHostOverride_ = 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.SecurityParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.SecurityParams) + private static final io.grpc.benchmarks.proto.Control.SecurityParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.SecurityParams(); + } + + public static io.grpc.benchmarks.proto.Control.SecurityParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SecurityParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new SecurityParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.SecurityParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClientConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ClientConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + com.google.protobuf.ProtocolStringList + getServerTargetsList(); + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + int getServerTargetsCount(); + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + java.lang.String getServerTargets(int index); + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + com.google.protobuf.ByteString + getServerTargetsBytes(int index); + + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + int getClientTypeValue(); + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + io.grpc.benchmarks.proto.Control.ClientType getClientType(); + + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + boolean hasSecurityParams(); + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + io.grpc.benchmarks.proto.Control.SecurityParams getSecurityParams(); + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder(); + + /** + * optional int32 outstanding_rpcs_per_channel = 4; + * + *
+     * How many concurrent RPCs to start for each channel.
+     * For synchronous client, use a separate thread for each outstanding RPC.
+     * 
+ */ + int getOutstandingRpcsPerChannel(); + + /** + * optional int32 client_channels = 5; + * + *
+     * Number of independent client channels to create.
+     * i-th channel will connect to server_target[i % server_targets.size()]
+     * 
+ */ + int getClientChannels(); + + /** + * optional int32 async_client_threads = 7; + * + *
+     * Only for async client. Number of threads to use to start/manage RPCs.
+     * 
+ */ + int getAsyncClientThreads(); + + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + int getRpcTypeValue(); + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + io.grpc.benchmarks.proto.Control.RpcType getRpcType(); + + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+     * The requested load for the entire client (aggregated over all the threads).
+     * 
+ */ + boolean hasLoadParams(); + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+     * The requested load for the entire client (aggregated over all the threads).
+     * 
+ */ + io.grpc.benchmarks.proto.Control.LoadParams getLoadParams(); + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+     * The requested load for the entire client (aggregated over all the threads).
+     * 
+ */ + io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder getLoadParamsOrBuilder(); + + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + boolean hasPayloadConfig(); + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig(); + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder(); + + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + boolean hasHistogramParams(); + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + io.grpc.benchmarks.proto.Stats.HistogramParams getHistogramParams(); + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder getHistogramParamsOrBuilder(); + + /** + * repeated int32 core_list = 13; + * + *
+     * Specify the cores we should run the client on, if desired
+     * 
+ */ + java.util.List getCoreListList(); + /** + * repeated int32 core_list = 13; + * + *
+     * Specify the cores we should run the client on, if desired
+     * 
+ */ + int getCoreListCount(); + /** + * repeated int32 core_list = 13; + * + *
+     * Specify the cores we should run the client on, if desired
+     * 
+ */ + int getCoreList(int index); + + /** + * optional int32 core_limit = 14; + */ + int getCoreLimit(); + } + /** + * 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_ = 0; + outstandingRpcsPerChannel_ = 0; + clientChannels_ = 0; + asyncClientThreads_ = 0; + rpcType_ = 0; + coreList_ = java.util.Collections.emptyList(); + coreLimit_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientConfig( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + serverTargets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + serverTargets_.add(s); + break; + } + case 16: { + int rawValue = input.readEnum(); + + clientType_ = rawValue; + break; + } + case 26: { + io.grpc.benchmarks.proto.Control.SecurityParams.Builder subBuilder = null; + if (securityParams_ != null) { + subBuilder = securityParams_.toBuilder(); + } + securityParams_ = input.readMessage(io.grpc.benchmarks.proto.Control.SecurityParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityParams_); + securityParams_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + outstandingRpcsPerChannel_ = input.readInt32(); + break; + } + case 40: { + + clientChannels_ = input.readInt32(); + break; + } + case 56: { + + asyncClientThreads_ = input.readInt32(); + break; + } + case 64: { + int rawValue = input.readEnum(); + + rpcType_ = rawValue; + break; + } + case 82: { + io.grpc.benchmarks.proto.Control.LoadParams.Builder subBuilder = null; + if (loadParams_ != null) { + subBuilder = loadParams_.toBuilder(); + } + loadParams_ = input.readMessage(io.grpc.benchmarks.proto.Control.LoadParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(loadParams_); + loadParams_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder subBuilder = null; + if (payloadConfig_ != null) { + subBuilder = payloadConfig_.toBuilder(); + } + payloadConfig_ = input.readMessage(io.grpc.benchmarks.proto.Payloads.PayloadConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payloadConfig_); + payloadConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + io.grpc.benchmarks.proto.Stats.HistogramParams.Builder subBuilder = null; + if (histogramParams_ != null) { + subBuilder = histogramParams_.toBuilder(); + } + histogramParams_ = input.readMessage(io.grpc.benchmarks.proto.Stats.HistogramParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(histogramParams_); + histogramParams_ = subBuilder.buildPartial(); + } + + break; + } + case 104: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + coreList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + coreList_.add(input.readInt32()); + break; + } + case 106: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { + coreList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + while (input.getBytesUntilLimit() > 0) { + coreList_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + case 112: { + + coreLimit_ = 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + serverTargets_ = serverTargets_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + coreList_ = java.util.Collections.unmodifiableList(coreList_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClientConfig.class, io.grpc.benchmarks.proto.Control.ClientConfig.Builder.class); + } + + private int bitField0_; + public static final int SERVER_TARGETS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList serverTargets_; + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + public com.google.protobuf.ProtocolStringList + getServerTargetsList() { + return serverTargets_; + } + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + public int getServerTargetsCount() { + return serverTargets_.size(); + } + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + public java.lang.String getServerTargets(int index) { + return serverTargets_.get(index); + } + /** + * repeated string server_targets = 1; + * + *
+     * List of targets to connect to. At least one target needs to be specified.
+     * 
+ */ + public com.google.protobuf.ByteString + getServerTargetsBytes(int index) { + return serverTargets_.getByteString(index); + } + + public static final int CLIENT_TYPE_FIELD_NUMBER = 2; + private int clientType_; + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public int getClientTypeValue() { + return clientType_; + } + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public io.grpc.benchmarks.proto.Control.ClientType getClientType() { + io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.valueOf(clientType_); + return result == null ? io.grpc.benchmarks.proto.Control.ClientType.UNRECOGNIZED : result; + } + + public static final int SECURITY_PARAMS_FIELD_NUMBER = 3; + private io.grpc.benchmarks.proto.Control.SecurityParams securityParams_; + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public boolean hasSecurityParams() { + return securityParams_ != null; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public io.grpc.benchmarks.proto.Control.SecurityParams getSecurityParams() { + return securityParams_ == null ? io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance() : securityParams_; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder() { + return getSecurityParams(); + } + + public static final int OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER = 4; + private int outstandingRpcsPerChannel_; + /** + * optional int32 outstanding_rpcs_per_channel = 4; + * + *
+     * How many concurrent RPCs to start for each channel.
+     * For synchronous client, use a separate thread for each outstanding RPC.
+     * 
+ */ + public int getOutstandingRpcsPerChannel() { + return outstandingRpcsPerChannel_; + } + + public static final int CLIENT_CHANNELS_FIELD_NUMBER = 5; + private int clientChannels_; + /** + * optional int32 client_channels = 5; + * + *
+     * Number of independent client channels to create.
+     * i-th channel will connect to server_target[i % server_targets.size()]
+     * 
+ */ + public int getClientChannels() { + return clientChannels_; + } + + public static final int ASYNC_CLIENT_THREADS_FIELD_NUMBER = 7; + private int asyncClientThreads_; + /** + * optional int32 async_client_threads = 7; + * + *
+     * Only for async client. Number of threads to use to start/manage RPCs.
+     * 
+ */ + public int getAsyncClientThreads() { + return asyncClientThreads_; + } + + public static final int RPC_TYPE_FIELD_NUMBER = 8; + private int rpcType_; + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public int getRpcTypeValue() { + return rpcType_; + } + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public io.grpc.benchmarks.proto.Control.RpcType getRpcType() { + io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.valueOf(rpcType_); + return result == null ? io.grpc.benchmarks.proto.Control.RpcType.UNRECOGNIZED : result; + } + + public static final int LOAD_PARAMS_FIELD_NUMBER = 10; + private io.grpc.benchmarks.proto.Control.LoadParams loadParams_; + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+     * The requested load for the entire client (aggregated over all the threads).
+     * 
+ */ + public boolean hasLoadParams() { + return loadParams_ != null; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+     * The requested load for the entire client (aggregated over all the threads).
+     * 
+ */ + public io.grpc.benchmarks.proto.Control.LoadParams getLoadParams() { + return loadParams_ == null ? io.grpc.benchmarks.proto.Control.LoadParams.getDefaultInstance() : loadParams_; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+     * The requested load for the entire client (aggregated over all the threads).
+     * 
+ */ + public io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder getLoadParamsOrBuilder() { + return getLoadParams(); + } + + public static final int PAYLOAD_CONFIG_FIELD_NUMBER = 11; + private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_; + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public boolean hasPayloadConfig() { + return payloadConfig_ != null; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig() { + return payloadConfig_ == null ? io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder() { + return getPayloadConfig(); + } + + public static final int HISTOGRAM_PARAMS_FIELD_NUMBER = 12; + private io.grpc.benchmarks.proto.Stats.HistogramParams histogramParams_; + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public boolean hasHistogramParams() { + return histogramParams_ != null; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public io.grpc.benchmarks.proto.Stats.HistogramParams getHistogramParams() { + return histogramParams_ == null ? io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance() : histogramParams_; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder getHistogramParamsOrBuilder() { + return getHistogramParams(); + } + + public static final int CORE_LIST_FIELD_NUMBER = 13; + private java.util.List coreList_; + /** + * repeated int32 core_list = 13; + * + *
+     * Specify the cores we should run the client on, if desired
+     * 
+ */ + public java.util.List + getCoreListList() { + return coreList_; + } + /** + * repeated int32 core_list = 13; + * + *
+     * Specify the cores we should run the client on, if desired
+     * 
+ */ + public int getCoreListCount() { + return coreList_.size(); + } + /** + * repeated int32 core_list = 13; + * + *
+     * Specify the cores we should run the client on, if desired
+     * 
+ */ + public int getCoreList(int index) { + return coreList_.get(index); + } + private int coreListMemoizedSerializedSize = -1; + + public static final int CORE_LIMIT_FIELD_NUMBER = 14; + private int coreLimit_; + /** + * optional int32 core_limit = 14; + */ + public int getCoreLimit() { + return coreLimit_; + } + + 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 { + getSerializedSize(); + for (int i = 0; i < serverTargets_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, serverTargets_.getRaw(i)); + } + if (clientType_ != io.grpc.benchmarks.proto.Control.ClientType.SYNC_CLIENT.getNumber()) { + output.writeEnum(2, clientType_); + } + if (securityParams_ != null) { + output.writeMessage(3, getSecurityParams()); + } + if (outstandingRpcsPerChannel_ != 0) { + output.writeInt32(4, outstandingRpcsPerChannel_); + } + if (clientChannels_ != 0) { + output.writeInt32(5, clientChannels_); + } + if (asyncClientThreads_ != 0) { + output.writeInt32(7, asyncClientThreads_); + } + if (rpcType_ != io.grpc.benchmarks.proto.Control.RpcType.UNARY.getNumber()) { + output.writeEnum(8, rpcType_); + } + if (loadParams_ != null) { + output.writeMessage(10, getLoadParams()); + } + if (payloadConfig_ != null) { + output.writeMessage(11, getPayloadConfig()); + } + if (histogramParams_ != null) { + output.writeMessage(12, getHistogramParams()); + } + if (getCoreListList().size() > 0) { + output.writeRawVarint32(106); + output.writeRawVarint32(coreListMemoizedSerializedSize); + } + for (int i = 0; i < coreList_.size(); i++) { + output.writeInt32NoTag(coreList_.get(i)); + } + if (coreLimit_ != 0) { + output.writeInt32(14, coreLimit_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < serverTargets_.size(); i++) { + dataSize += computeStringSizeNoTag(serverTargets_.getRaw(i)); + } + size += dataSize; + size += 1 * getServerTargetsList().size(); + } + if (clientType_ != io.grpc.benchmarks.proto.Control.ClientType.SYNC_CLIENT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, clientType_); + } + if (securityParams_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSecurityParams()); + } + if (outstandingRpcsPerChannel_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, outstandingRpcsPerChannel_); + } + if (clientChannels_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, clientChannels_); + } + if (asyncClientThreads_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, asyncClientThreads_); + } + if (rpcType_ != io.grpc.benchmarks.proto.Control.RpcType.UNARY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, rpcType_); + } + if (loadParams_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLoadParams()); + } + if (payloadConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getPayloadConfig()); + } + if (histogramParams_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getHistogramParams()); + } + { + int dataSize = 0; + for (int i = 0; i < coreList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(coreList_.get(i)); + } + size += dataSize; + if (!getCoreListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + coreListMemoizedSerializedSize = dataSize; + } + if (coreLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, coreLimit_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig 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.benchmarks.proto.Control.ClientConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ClientConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ClientConfig) + io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClientConfig.class, io.grpc.benchmarks.proto.Control.ClientConfig.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ClientConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + clientType_ = 0; + + if (securityParamsBuilder_ == null) { + securityParams_ = null; + } else { + securityParams_ = null; + securityParamsBuilder_ = null; + } + outstandingRpcsPerChannel_ = 0; + + clientChannels_ = 0; + + asyncClientThreads_ = 0; + + rpcType_ = 0; + + if (loadParamsBuilder_ == null) { + loadParams_ = null; + } else { + loadParams_ = null; + loadParamsBuilder_ = null; + } + if (payloadConfigBuilder_ == null) { + payloadConfig_ = null; + } else { + payloadConfig_ = null; + payloadConfigBuilder_ = null; + } + if (histogramParamsBuilder_ == null) { + histogramParams_ = null; + } else { + histogramParams_ = null; + histogramParamsBuilder_ = null; + } + coreList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + coreLimit_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ClientConfig getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ClientConfig build() { + io.grpc.benchmarks.proto.Control.ClientConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ClientConfig buildPartial() { + io.grpc.benchmarks.proto.Control.ClientConfig result = new io.grpc.benchmarks.proto.Control.ClientConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + serverTargets_ = serverTargets_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.serverTargets_ = serverTargets_; + result.clientType_ = clientType_; + if (securityParamsBuilder_ == null) { + result.securityParams_ = securityParams_; + } else { + result.securityParams_ = securityParamsBuilder_.build(); + } + result.outstandingRpcsPerChannel_ = outstandingRpcsPerChannel_; + result.clientChannels_ = clientChannels_; + result.asyncClientThreads_ = asyncClientThreads_; + result.rpcType_ = rpcType_; + if (loadParamsBuilder_ == null) { + result.loadParams_ = loadParams_; + } else { + result.loadParams_ = loadParamsBuilder_.build(); + } + if (payloadConfigBuilder_ == null) { + result.payloadConfig_ = payloadConfig_; + } else { + result.payloadConfig_ = payloadConfigBuilder_.build(); + } + if (histogramParamsBuilder_ == null) { + result.histogramParams_ = histogramParams_; + } else { + result.histogramParams_ = histogramParamsBuilder_.build(); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + coreList_ = java.util.Collections.unmodifiableList(coreList_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.coreList_ = coreList_; + result.coreLimit_ = coreLimit_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ClientConfig) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ClientConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ClientConfig other) { + if (other == io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance()) return this; + if (!other.serverTargets_.isEmpty()) { + if (serverTargets_.isEmpty()) { + serverTargets_ = other.serverTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServerTargetsIsMutable(); + serverTargets_.addAll(other.serverTargets_); + } + onChanged(); + } + if (other.clientType_ != 0) { + setClientTypeValue(other.getClientTypeValue()); + } + if (other.hasSecurityParams()) { + mergeSecurityParams(other.getSecurityParams()); + } + if (other.getOutstandingRpcsPerChannel() != 0) { + setOutstandingRpcsPerChannel(other.getOutstandingRpcsPerChannel()); + } + if (other.getClientChannels() != 0) { + setClientChannels(other.getClientChannels()); + } + if (other.getAsyncClientThreads() != 0) { + setAsyncClientThreads(other.getAsyncClientThreads()); + } + if (other.rpcType_ != 0) { + setRpcTypeValue(other.getRpcTypeValue()); + } + if (other.hasLoadParams()) { + mergeLoadParams(other.getLoadParams()); + } + if (other.hasPayloadConfig()) { + mergePayloadConfig(other.getPayloadConfig()); + } + if (other.hasHistogramParams()) { + mergeHistogramParams(other.getHistogramParams()); + } + if (!other.coreList_.isEmpty()) { + if (coreList_.isEmpty()) { + coreList_ = other.coreList_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureCoreListIsMutable(); + coreList_.addAll(other.coreList_); + } + onChanged(); + } + if (other.getCoreLimit() != 0) { + setCoreLimit(other.getCoreLimit()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ClientConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ClientConfig) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServerTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + serverTargets_ = new com.google.protobuf.LazyStringArrayList(serverTargets_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public com.google.protobuf.ProtocolStringList + getServerTargetsList() { + return serverTargets_.getUnmodifiableView(); + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public int getServerTargetsCount() { + return serverTargets_.size(); + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public java.lang.String getServerTargets(int index) { + return serverTargets_.get(index); + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public com.google.protobuf.ByteString + getServerTargetsBytes(int index) { + return serverTargets_.getByteString(index); + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + 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; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + 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; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public Builder addAllServerTargets( + java.lang.Iterable values) { + ensureServerTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverTargets_); + onChanged(); + return this; + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public Builder clearServerTargets() { + serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string server_targets = 1; + * + *
+       * List of targets to connect to. At least one target needs to be specified.
+       * 
+ */ + public Builder addServerTargetsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServerTargetsIsMutable(); + serverTargets_.add(value); + onChanged(); + return this; + } + + private int clientType_ = 0; + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public int getClientTypeValue() { + return clientType_; + } + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public Builder setClientTypeValue(int value) { + clientType_ = value; + onChanged(); + return this; + } + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public io.grpc.benchmarks.proto.Control.ClientType getClientType() { + io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.valueOf(clientType_); + return result == null ? io.grpc.benchmarks.proto.Control.ClientType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public Builder setClientType(io.grpc.benchmarks.proto.Control.ClientType value) { + if (value == null) { + throw new NullPointerException(); + } + + clientType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .grpc.testing.ClientType client_type = 2; + */ + public Builder clearClientType() { + + clientType_ = 0; + onChanged(); + return this; + } + + private io.grpc.benchmarks.proto.Control.SecurityParams securityParams_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder> securityParamsBuilder_; + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public boolean hasSecurityParams() { + return securityParamsBuilder_ != null || securityParams_ != null; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public io.grpc.benchmarks.proto.Control.SecurityParams getSecurityParams() { + if (securityParamsBuilder_ == null) { + return securityParams_ == null ? io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance() : securityParams_; + } else { + return securityParamsBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public Builder setSecurityParams(io.grpc.benchmarks.proto.Control.SecurityParams value) { + if (securityParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityParams_ = value; + onChanged(); + } else { + securityParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public Builder setSecurityParams( + io.grpc.benchmarks.proto.Control.SecurityParams.Builder builderForValue) { + if (securityParamsBuilder_ == null) { + securityParams_ = builderForValue.build(); + onChanged(); + } else { + securityParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public Builder mergeSecurityParams(io.grpc.benchmarks.proto.Control.SecurityParams value) { + if (securityParamsBuilder_ == null) { + if (securityParams_ != null) { + securityParams_ = + io.grpc.benchmarks.proto.Control.SecurityParams.newBuilder(securityParams_).mergeFrom(value).buildPartial(); + } else { + securityParams_ = value; + } + onChanged(); + } else { + securityParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public Builder clearSecurityParams() { + if (securityParamsBuilder_ == null) { + securityParams_ = null; + onChanged(); + } else { + securityParams_ = null; + securityParamsBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public io.grpc.benchmarks.proto.Control.SecurityParams.Builder getSecurityParamsBuilder() { + + onChanged(); + return getSecurityParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + public io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder() { + if (securityParamsBuilder_ != null) { + return securityParamsBuilder_.getMessageOrBuilder(); + } else { + return securityParams_ == null ? + io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance() : securityParams_; + } + } + /** + * optional .grpc.testing.SecurityParams security_params = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder> + getSecurityParamsFieldBuilder() { + if (securityParamsBuilder_ == null) { + securityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder>( + getSecurityParams(), + getParentForChildren(), + isClean()); + securityParams_ = null; + } + return securityParamsBuilder_; + } + + private int outstandingRpcsPerChannel_ ; + /** + * optional int32 outstanding_rpcs_per_channel = 4; + * + *
+       * How many concurrent RPCs to start for each channel.
+       * For synchronous client, use a separate thread for each outstanding RPC.
+       * 
+ */ + public int getOutstandingRpcsPerChannel() { + return outstandingRpcsPerChannel_; + } + /** + * optional int32 outstanding_rpcs_per_channel = 4; + * + *
+       * How many concurrent RPCs to start for each channel.
+       * For synchronous client, use a separate thread for each outstanding RPC.
+       * 
+ */ + public Builder setOutstandingRpcsPerChannel(int value) { + + outstandingRpcsPerChannel_ = value; + onChanged(); + return this; + } + /** + * optional int32 outstanding_rpcs_per_channel = 4; + * + *
+       * How many concurrent RPCs to start for each channel.
+       * For synchronous client, use a separate thread for each outstanding RPC.
+       * 
+ */ + public Builder clearOutstandingRpcsPerChannel() { + + outstandingRpcsPerChannel_ = 0; + onChanged(); + return this; + } + + private int clientChannels_ ; + /** + * optional int32 client_channels = 5; + * + *
+       * Number of independent client channels to create.
+       * i-th channel will connect to server_target[i % server_targets.size()]
+       * 
+ */ + public int getClientChannels() { + return clientChannels_; + } + /** + * optional int32 client_channels = 5; + * + *
+       * Number of independent client channels to create.
+       * i-th channel will connect to server_target[i % server_targets.size()]
+       * 
+ */ + public Builder setClientChannels(int value) { + + clientChannels_ = value; + onChanged(); + return this; + } + /** + * optional int32 client_channels = 5; + * + *
+       * Number of independent client channels to create.
+       * i-th channel will connect to server_target[i % server_targets.size()]
+       * 
+ */ + public Builder clearClientChannels() { + + clientChannels_ = 0; + onChanged(); + return this; + } + + private int asyncClientThreads_ ; + /** + * optional int32 async_client_threads = 7; + * + *
+       * Only for async client. Number of threads to use to start/manage RPCs.
+       * 
+ */ + public int getAsyncClientThreads() { + return asyncClientThreads_; + } + /** + * optional int32 async_client_threads = 7; + * + *
+       * Only for async client. Number of threads to use to start/manage RPCs.
+       * 
+ */ + public Builder setAsyncClientThreads(int value) { + + asyncClientThreads_ = value; + onChanged(); + return this; + } + /** + * optional int32 async_client_threads = 7; + * + *
+       * Only for async client. Number of threads to use to start/manage RPCs.
+       * 
+ */ + public Builder clearAsyncClientThreads() { + + asyncClientThreads_ = 0; + onChanged(); + return this; + } + + private int rpcType_ = 0; + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public int getRpcTypeValue() { + return rpcType_; + } + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public Builder setRpcTypeValue(int value) { + rpcType_ = value; + onChanged(); + return this; + } + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public io.grpc.benchmarks.proto.Control.RpcType getRpcType() { + io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.valueOf(rpcType_); + return result == null ? io.grpc.benchmarks.proto.Control.RpcType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public Builder setRpcType(io.grpc.benchmarks.proto.Control.RpcType value) { + if (value == null) { + throw new NullPointerException(); + } + + rpcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .grpc.testing.RpcType rpc_type = 8; + */ + public Builder clearRpcType() { + + rpcType_ = 0; + onChanged(); + return this; + } + + private io.grpc.benchmarks.proto.Control.LoadParams loadParams_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder> loadParamsBuilder_; + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public boolean hasLoadParams() { + return loadParamsBuilder_ != null || loadParams_ != null; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public io.grpc.benchmarks.proto.Control.LoadParams getLoadParams() { + if (loadParamsBuilder_ == null) { + return loadParams_ == null ? io.grpc.benchmarks.proto.Control.LoadParams.getDefaultInstance() : loadParams_; + } else { + return loadParamsBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public Builder setLoadParams(io.grpc.benchmarks.proto.Control.LoadParams value) { + if (loadParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loadParams_ = value; + onChanged(); + } else { + loadParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public Builder setLoadParams( + io.grpc.benchmarks.proto.Control.LoadParams.Builder builderForValue) { + if (loadParamsBuilder_ == null) { + loadParams_ = builderForValue.build(); + onChanged(); + } else { + loadParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public Builder mergeLoadParams(io.grpc.benchmarks.proto.Control.LoadParams value) { + if (loadParamsBuilder_ == null) { + if (loadParams_ != null) { + loadParams_ = + io.grpc.benchmarks.proto.Control.LoadParams.newBuilder(loadParams_).mergeFrom(value).buildPartial(); + } else { + loadParams_ = value; + } + onChanged(); + } else { + loadParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public Builder clearLoadParams() { + if (loadParamsBuilder_ == null) { + loadParams_ = null; + onChanged(); + } else { + loadParams_ = null; + loadParamsBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public io.grpc.benchmarks.proto.Control.LoadParams.Builder getLoadParamsBuilder() { + + onChanged(); + return getLoadParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + public io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder getLoadParamsOrBuilder() { + if (loadParamsBuilder_ != null) { + return loadParamsBuilder_.getMessageOrBuilder(); + } else { + return loadParams_ == null ? + io.grpc.benchmarks.proto.Control.LoadParams.getDefaultInstance() : loadParams_; + } + } + /** + * optional .grpc.testing.LoadParams load_params = 10; + * + *
+       * The requested load for the entire client (aggregated over all the threads).
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder> + getLoadParamsFieldBuilder() { + if (loadParamsBuilder_ == null) { + loadParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder>( + getLoadParams(), + getParentForChildren(), + isClean()); + loadParams_ = null; + } + return loadParamsBuilder_; + } + + private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> payloadConfigBuilder_; + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public boolean hasPayloadConfig() { + return payloadConfigBuilder_ != null || payloadConfig_ != null; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig() { + if (payloadConfigBuilder_ == null) { + return payloadConfig_ == null ? io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; + } else { + return payloadConfigBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public Builder setPayloadConfig(io.grpc.benchmarks.proto.Payloads.PayloadConfig value) { + if (payloadConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payloadConfig_ = value; + onChanged(); + } else { + payloadConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public Builder setPayloadConfig( + io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder builderForValue) { + if (payloadConfigBuilder_ == null) { + payloadConfig_ = builderForValue.build(); + onChanged(); + } else { + payloadConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public Builder mergePayloadConfig(io.grpc.benchmarks.proto.Payloads.PayloadConfig value) { + if (payloadConfigBuilder_ == null) { + if (payloadConfig_ != null) { + payloadConfig_ = + io.grpc.benchmarks.proto.Payloads.PayloadConfig.newBuilder(payloadConfig_).mergeFrom(value).buildPartial(); + } else { + payloadConfig_ = value; + } + onChanged(); + } else { + payloadConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public Builder clearPayloadConfig() { + if (payloadConfigBuilder_ == null) { + payloadConfig_ = null; + onChanged(); + } else { + payloadConfig_ = null; + payloadConfigBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder getPayloadConfigBuilder() { + + onChanged(); + return getPayloadConfigFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder() { + if (payloadConfigBuilder_ != null) { + return payloadConfigBuilder_.getMessageOrBuilder(); + } else { + return payloadConfig_ == null ? + io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; + } + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 11; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> + getPayloadConfigFieldBuilder() { + if (payloadConfigBuilder_ == null) { + payloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder>( + getPayloadConfig(), + getParentForChildren(), + isClean()); + payloadConfig_ = null; + } + return payloadConfigBuilder_; + } + + private io.grpc.benchmarks.proto.Stats.HistogramParams histogramParams_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.HistogramParams, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder, io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder> histogramParamsBuilder_; + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public boolean hasHistogramParams() { + return histogramParamsBuilder_ != null || histogramParams_ != null; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public io.grpc.benchmarks.proto.Stats.HistogramParams getHistogramParams() { + if (histogramParamsBuilder_ == null) { + return histogramParams_ == null ? io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance() : histogramParams_; + } else { + return histogramParamsBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public Builder setHistogramParams(io.grpc.benchmarks.proto.Stats.HistogramParams value) { + if (histogramParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + histogramParams_ = value; + onChanged(); + } else { + histogramParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public Builder setHistogramParams( + io.grpc.benchmarks.proto.Stats.HistogramParams.Builder builderForValue) { + if (histogramParamsBuilder_ == null) { + histogramParams_ = builderForValue.build(); + onChanged(); + } else { + histogramParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public Builder mergeHistogramParams(io.grpc.benchmarks.proto.Stats.HistogramParams value) { + if (histogramParamsBuilder_ == null) { + if (histogramParams_ != null) { + histogramParams_ = + io.grpc.benchmarks.proto.Stats.HistogramParams.newBuilder(histogramParams_).mergeFrom(value).buildPartial(); + } else { + histogramParams_ = value; + } + onChanged(); + } else { + histogramParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public Builder clearHistogramParams() { + if (histogramParamsBuilder_ == null) { + histogramParams_ = null; + onChanged(); + } else { + histogramParams_ = null; + histogramParamsBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public io.grpc.benchmarks.proto.Stats.HistogramParams.Builder getHistogramParamsBuilder() { + + onChanged(); + return getHistogramParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + public io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder getHistogramParamsOrBuilder() { + if (histogramParamsBuilder_ != null) { + return histogramParamsBuilder_.getMessageOrBuilder(); + } else { + return histogramParams_ == null ? + io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance() : histogramParams_; + } + } + /** + * optional .grpc.testing.HistogramParams histogram_params = 12; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.HistogramParams, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder, io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder> + getHistogramParamsFieldBuilder() { + if (histogramParamsBuilder_ == null) { + histogramParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.HistogramParams, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder, io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder>( + getHistogramParams(), + getParentForChildren(), + isClean()); + histogramParams_ = null; + } + return histogramParamsBuilder_; + } + + private java.util.List coreList_ = java.util.Collections.emptyList(); + private void ensureCoreListIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + coreList_ = new java.util.ArrayList(coreList_); + bitField0_ |= 0x00000400; + } + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public java.util.List + getCoreListList() { + return java.util.Collections.unmodifiableList(coreList_); + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public int getCoreListCount() { + return coreList_.size(); + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public int getCoreList(int index) { + return coreList_.get(index); + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public Builder setCoreList( + int index, int value) { + ensureCoreListIsMutable(); + coreList_.set(index, value); + onChanged(); + return this; + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public Builder addCoreList(int value) { + ensureCoreListIsMutable(); + coreList_.add(value); + onChanged(); + return this; + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public Builder addAllCoreList( + java.lang.Iterable values) { + ensureCoreListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coreList_); + onChanged(); + return this; + } + /** + * repeated int32 core_list = 13; + * + *
+       * Specify the cores we should run the client on, if desired
+       * 
+ */ + public Builder clearCoreList() { + coreList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + private int coreLimit_ ; + /** + * optional int32 core_limit = 14; + */ + public int getCoreLimit() { + return coreLimit_; + } + /** + * optional int32 core_limit = 14; + */ + public Builder setCoreLimit(int value) { + + coreLimit_ = value; + onChanged(); + return this; + } + /** + * optional int32 core_limit = 14; + */ + public Builder clearCoreLimit() { + + coreLimit_ = 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.ClientConfig) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ClientConfig) + private static final io.grpc.benchmarks.proto.Control.ClientConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ClientConfig(); + } + + public static io.grpc.benchmarks.proto.Control.ClientConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ClientConfig(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ClientConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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; + */ + io.grpc.benchmarks.proto.Stats.ClientStats getStats(); + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + io.grpc.benchmarks.proto.Stats.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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientStatus( + 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.benchmarks.proto.Stats.ClientStats.Builder subBuilder = null; + if (stats_ != null) { + subBuilder = stats_.toBuilder(); + } + stats_ = input.readMessage(io.grpc.benchmarks.proto.Stats.ClientStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stats_); + stats_ = 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.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClientStatus.class, io.grpc.benchmarks.proto.Control.ClientStatus.Builder.class); + } + + public static final int STATS_FIELD_NUMBER = 1; + private io.grpc.benchmarks.proto.Stats.ClientStats stats_; + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public boolean hasStats() { + return stats_ != null; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ClientStats getStats() { + return stats_ == null ? io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance() : stats_; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder getStatsOrBuilder() { + return getStats(); + } + + 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 (stats_ != null) { + output.writeMessage(1, getStats()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stats_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStats()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus 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.benchmarks.proto.Control.ClientStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ClientStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ClientStatus) + io.grpc.benchmarks.proto.Control.ClientStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClientStatus.class, io.grpc.benchmarks.proto.Control.ClientStatus.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ClientStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (statsBuilder_ == null) { + stats_ = null; + } else { + stats_ = null; + statsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ClientStatus getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ClientStatus.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ClientStatus build() { + io.grpc.benchmarks.proto.Control.ClientStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ClientStatus buildPartial() { + io.grpc.benchmarks.proto.Control.ClientStatus result = new io.grpc.benchmarks.proto.Control.ClientStatus(this); + if (statsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ClientStatus) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ClientStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ClientStatus other) { + if (other == io.grpc.benchmarks.proto.Control.ClientStatus.getDefaultInstance()) return this; + if (other.hasStats()) { + mergeStats(other.getStats()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ClientStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ClientStatus) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.grpc.benchmarks.proto.Stats.ClientStats stats_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.ClientStats, io.grpc.benchmarks.proto.Stats.ClientStats.Builder, io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder> statsBuilder_; + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public boolean hasStats() { + return statsBuilder_ != null || stats_ != null; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ClientStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null ? io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance() : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public Builder setStats(io.grpc.benchmarks.proto.Stats.ClientStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + statsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public Builder setStats( + io.grpc.benchmarks.proto.Stats.ClientStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public Builder mergeStats(io.grpc.benchmarks.proto.Stats.ClientStats value) { + if (statsBuilder_ == null) { + if (stats_ != null) { + stats_ = + io.grpc.benchmarks.proto.Stats.ClientStats.newBuilder(stats_).mergeFrom(value).buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + statsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = null; + onChanged(); + } else { + stats_ = null; + statsBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ClientStats.Builder getStatsBuilder() { + + onChanged(); + return getStatsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null ? + io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance() : stats_; + } + } + /** + * optional .grpc.testing.ClientStats stats = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.ClientStats, io.grpc.benchmarks.proto.Stats.ClientStats.Builder, io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.ClientStats, io.grpc.benchmarks.proto.Stats.ClientStats.Builder, io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + 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.ClientStatus) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ClientStatus) + private static final io.grpc.benchmarks.proto.Control.ClientStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ClientStatus(); + } + + public static io.grpc.benchmarks.proto.Control.ClientStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ClientStatus(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ClientStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MarkOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.Mark) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bool reset = 1; + * + *
+     * if true, the stats will be reset after taking their snapshot.
+     * 
+ */ + boolean getReset(); + } + /** + * 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() { + reset_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Mark( + 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: { + + reset_ = 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.benchmarks.proto.Control.internal_static_grpc_testing_Mark_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.Mark.class, io.grpc.benchmarks.proto.Control.Mark.Builder.class); + } + + public static final int RESET_FIELD_NUMBER = 1; + private boolean reset_; + /** + * optional bool reset = 1; + * + *
+     * if true, the stats will be reset after taking their snapshot.
+     * 
+ */ + public boolean getReset() { + return reset_; + } + + 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 (reset_ != false) { + output.writeBool(1, reset_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reset_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, reset_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.Mark parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.Mark 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.benchmarks.proto.Control.Mark parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.Mark parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.Mark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.Mark parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.Mark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.Mark parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.Mark parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.Mark parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.Mark prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.Mark) + io.grpc.benchmarks.proto.Control.MarkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.Mark.class, io.grpc.benchmarks.proto.Control.Mark.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.Mark.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + reset_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_descriptor; + } + + public io.grpc.benchmarks.proto.Control.Mark getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.Mark build() { + io.grpc.benchmarks.proto.Control.Mark result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.Mark buildPartial() { + io.grpc.benchmarks.proto.Control.Mark result = new io.grpc.benchmarks.proto.Control.Mark(this); + result.reset_ = reset_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.Mark) { + return mergeFrom((io.grpc.benchmarks.proto.Control.Mark)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.Mark other) { + if (other == io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance()) return this; + if (other.getReset() != false) { + setReset(other.getReset()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.Mark parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.Mark) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean reset_ ; + /** + * optional bool reset = 1; + * + *
+       * if true, the stats will be reset after taking their snapshot.
+       * 
+ */ + public boolean getReset() { + return reset_; + } + /** + * optional bool reset = 1; + * + *
+       * if true, the stats will be reset after taking their snapshot.
+       * 
+ */ + public Builder setReset(boolean value) { + + reset_ = value; + onChanged(); + return this; + } + /** + * optional bool reset = 1; + * + *
+       * if true, the stats will be reset after taking their snapshot.
+       * 
+ */ + public Builder clearReset() { + + reset_ = 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.Mark) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.Mark) + private static final io.grpc.benchmarks.proto.Control.Mark DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.Mark(); + } + + public static io.grpc.benchmarks.proto.Control.Mark getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private 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; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.Mark getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClientArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ClientArgs) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + io.grpc.benchmarks.proto.Control.ClientConfig getSetup(); + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder getSetupOrBuilder(); + + /** + * optional .grpc.testing.Mark mark = 2; + */ + io.grpc.benchmarks.proto.Control.Mark getMark(); + /** + * optional .grpc.testing.Mark mark = 2; + */ + io.grpc.benchmarks.proto.Control.MarkOrBuilder getMarkOrBuilder(); + + public io.grpc.benchmarks.proto.Control.ClientArgs.ArgtypeCase getArgtypeCase(); + } + /** + * 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientArgs( + 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.benchmarks.proto.Control.ClientConfig.Builder subBuilder = null; + if (argtypeCase_ == 1) { + subBuilder = ((io.grpc.benchmarks.proto.Control.ClientConfig) argtype_).toBuilder(); + } + argtype_ = + input.readMessage(io.grpc.benchmarks.proto.Control.ClientConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.ClientConfig) argtype_); + argtype_ = subBuilder.buildPartial(); + } + argtypeCase_ = 1; + break; + } + case 18: { + io.grpc.benchmarks.proto.Control.Mark.Builder subBuilder = null; + if (argtypeCase_ == 2) { + subBuilder = ((io.grpc.benchmarks.proto.Control.Mark) argtype_).toBuilder(); + } + argtype_ = + input.readMessage(io.grpc.benchmarks.proto.Control.Mark.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClientArgs.class, io.grpc.benchmarks.proto.Control.ClientArgs.Builder.class); + } + + private int argtypeCase_ = 0; + private java.lang.Object argtype_; + public enum ArgtypeCase + implements com.google.protobuf.Internal.EnumLite { + SETUP(1), + MARK(2), + ARGTYPE_NOT_SET(0); + private int value = 0; + private ArgtypeCase(int value) { + this.value = value; + } + public static ArgtypeCase valueOf(int value) { + switch (value) { + case 1: return SETUP; + case 2: return MARK; + case 0: return ARGTYPE_NOT_SET; + default: throw new java.lang.IllegalArgumentException( + "Value is undefined for this oneof enum."); + } + } + public int getNumber() { + return this.value; + } + }; + + public ArgtypeCase + getArgtypeCase() { + return ArgtypeCase.valueOf( + argtypeCase_); + } + + public static final int SETUP_FIELD_NUMBER = 1; + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ClientConfig getSetup() { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder getSetupOrBuilder() { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } + + public static final int MARK_FIELD_NUMBER = 2; + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.Mark getMark() { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.MarkOrBuilder getMarkOrBuilder() { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + + 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 (argtypeCase_ == 1) { + output.writeMessage(1, (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_); + } + if (argtypeCase_ == 2) { + output.writeMessage(2, (io.grpc.benchmarks.proto.Control.Mark) argtype_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (argtypeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_); + } + if (argtypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.grpc.benchmarks.proto.Control.Mark) argtype_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs 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.benchmarks.proto.Control.ClientArgs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ClientArgs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ClientArgs) + io.grpc.benchmarks.proto.Control.ClientArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ClientArgs.class, io.grpc.benchmarks.proto.Control.ClientArgs.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ClientArgs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + argtypeCase_ = 0; + argtype_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ClientArgs getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ClientArgs.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ClientArgs build() { + io.grpc.benchmarks.proto.Control.ClientArgs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ClientArgs buildPartial() { + io.grpc.benchmarks.proto.Control.ClientArgs result = new io.grpc.benchmarks.proto.Control.ClientArgs(this); + if (argtypeCase_ == 1) { + if (setupBuilder_ == null) { + result.argtype_ = argtype_; + } else { + result.argtype_ = setupBuilder_.build(); + } + } + if (argtypeCase_ == 2) { + if (markBuilder_ == null) { + result.argtype_ = argtype_; + } else { + result.argtype_ = markBuilder_.build(); + } + } + result.argtypeCase_ = argtypeCase_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ClientArgs) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ClientArgs)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ClientArgs other) { + if (other == io.grpc.benchmarks.proto.Control.ClientArgs.getDefaultInstance()) return this; + switch (other.getArgtypeCase()) { + case SETUP: { + mergeSetup(other.getSetup()); + break; + } + case MARK: { + mergeMark(other.getMark()); + break; + } + case ARGTYPE_NOT_SET: { + break; + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ClientArgs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ClientArgs) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int argtypeCase_ = 0; + private java.lang.Object argtype_; + public ArgtypeCase + getArgtypeCase() { + return ArgtypeCase.valueOf( + argtypeCase_); + } + + public Builder clearArgtype() { + argtypeCase_ = 0; + argtype_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ClientConfig, io.grpc.benchmarks.proto.Control.ClientConfig.Builder, io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder> setupBuilder_; + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ClientConfig getSetup() { + if (setupBuilder_ == null) { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } else { + if (argtypeCase_ == 1) { + return setupBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + public Builder setSetup(io.grpc.benchmarks.proto.Control.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( + io.grpc.benchmarks.proto.Control.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(io.grpc.benchmarks.proto.Control.ClientConfig value) { + if (setupBuilder_ == null) { + if (argtypeCase_ == 1 && + argtype_ != io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance()) { + argtype_ = io.grpc.benchmarks.proto.Control.ClientConfig.newBuilder((io.grpc.benchmarks.proto.Control.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 io.grpc.benchmarks.proto.Control.ClientConfig.Builder getSetupBuilder() { + return getSetupFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder getSetupOrBuilder() { + if ((argtypeCase_ == 1) && (setupBuilder_ != null)) { + return setupBuilder_.getMessageOrBuilder(); + } else { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ClientConfig setup = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ClientConfig, io.grpc.benchmarks.proto.Control.ClientConfig.Builder, io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder> + getSetupFieldBuilder() { + if (setupBuilder_ == null) { + if (!(argtypeCase_ == 1)) { + argtype_ = io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance(); + } + setupBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ClientConfig, io.grpc.benchmarks.proto.Control.ClientConfig.Builder, io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder>( + (io.grpc.benchmarks.proto.Control.ClientConfig) argtype_, + getParentForChildren(), + isClean()); + argtype_ = null; + } + argtypeCase_ = 1; + onChanged();; + return setupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder> markBuilder_; + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.Mark getMark() { + if (markBuilder_ == null) { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } else { + if (argtypeCase_ == 2) { + return markBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + public Builder setMark(io.grpc.benchmarks.proto.Control.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( + io.grpc.benchmarks.proto.Control.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(io.grpc.benchmarks.proto.Control.Mark value) { + if (markBuilder_ == null) { + if (argtypeCase_ == 2 && + argtype_ != io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance()) { + argtype_ = io.grpc.benchmarks.proto.Control.Mark.newBuilder((io.grpc.benchmarks.proto.Control.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 io.grpc.benchmarks.proto.Control.Mark.Builder getMarkBuilder() { + return getMarkFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.MarkOrBuilder getMarkOrBuilder() { + if ((argtypeCase_ == 2) && (markBuilder_ != null)) { + return markBuilder_.getMessageOrBuilder(); + } else { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder> + getMarkFieldBuilder() { + if (markBuilder_ == null) { + if (!(argtypeCase_ == 2)) { + argtype_ = io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + markBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder>( + (io.grpc.benchmarks.proto.Control.Mark) argtype_, + getParentForChildren(), + isClean()); + argtype_ = null; + } + argtypeCase_ = 2; + onChanged();; + return markBuilder_; + } + 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.ClientArgs) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ClientArgs) + private static final io.grpc.benchmarks.proto.Control.ClientArgs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ClientArgs(); + } + + public static io.grpc.benchmarks.proto.Control.ClientArgs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientArgs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ClientArgs(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ClientArgs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ServerConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + int getServerTypeValue(); + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + io.grpc.benchmarks.proto.Control.ServerType getServerType(); + + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + boolean hasSecurityParams(); + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + io.grpc.benchmarks.proto.Control.SecurityParams getSecurityParams(); + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder(); + + /** + * optional int32 port = 4; + * + *
+     * Port on which to listen. Zero means pick unused port.
+     * 
+ */ + int getPort(); + + /** + * optional int32 async_server_threads = 7; + * + *
+     * Only for async server. Number of threads used to serve the requests.
+     * 
+ */ + int getAsyncServerThreads(); + + /** + * optional int32 core_limit = 8; + * + *
+     * Specify the number of cores to limit server to, if desired
+     * 
+ */ + int getCoreLimit(); + + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+     * payload config, used in generic server
+     * 
+ */ + boolean hasPayloadConfig(); + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+     * payload config, used in generic server
+     * 
+ */ + io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig(); + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+     * payload config, used in generic server
+     * 
+ */ + io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder(); + + /** + * repeated int32 core_list = 10; + * + *
+     * Specify the cores we should run the server on, if desired
+     * 
+ */ + java.util.List getCoreListList(); + /** + * repeated int32 core_list = 10; + * + *
+     * Specify the cores we should run the server on, if desired
+     * 
+ */ + int getCoreListCount(); + /** + * repeated int32 core_list = 10; + * + *
+     * Specify the cores we should run the server on, if desired
+     * 
+ */ + int getCoreList(int index); + } + /** + * 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_ = 0; + port_ = 0; + asyncServerThreads_ = 0; + coreLimit_ = 0; + coreList_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ServerConfig( + 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(); + + serverType_ = rawValue; + break; + } + case 18: { + io.grpc.benchmarks.proto.Control.SecurityParams.Builder subBuilder = null; + if (securityParams_ != null) { + subBuilder = securityParams_.toBuilder(); + } + securityParams_ = input.readMessage(io.grpc.benchmarks.proto.Control.SecurityParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityParams_); + securityParams_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + port_ = input.readInt32(); + break; + } + case 56: { + + asyncServerThreads_ = input.readInt32(); + break; + } + case 64: { + + coreLimit_ = input.readInt32(); + break; + } + case 74: { + io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder subBuilder = null; + if (payloadConfig_ != null) { + subBuilder = payloadConfig_.toBuilder(); + } + payloadConfig_ = input.readMessage(io.grpc.benchmarks.proto.Payloads.PayloadConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payloadConfig_); + payloadConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + coreList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + coreList_.add(input.readInt32()); + break; + } + case 82: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { + coreList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + while (input.getBytesUntilLimit() > 0) { + coreList_.add(input.readInt32()); + } + input.popLimit(limit); + 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_ & 0x00000040) == 0x00000040)) { + coreList_ = java.util.Collections.unmodifiableList(coreList_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ServerConfig.class, io.grpc.benchmarks.proto.Control.ServerConfig.Builder.class); + } + + private int bitField0_; + public static final int SERVER_TYPE_FIELD_NUMBER = 1; + private int serverType_; + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public int getServerTypeValue() { + return serverType_; + } + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public io.grpc.benchmarks.proto.Control.ServerType getServerType() { + io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.valueOf(serverType_); + return result == null ? io.grpc.benchmarks.proto.Control.ServerType.UNRECOGNIZED : result; + } + + public static final int SECURITY_PARAMS_FIELD_NUMBER = 2; + private io.grpc.benchmarks.proto.Control.SecurityParams securityParams_; + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public boolean hasSecurityParams() { + return securityParams_ != null; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public io.grpc.benchmarks.proto.Control.SecurityParams getSecurityParams() { + return securityParams_ == null ? io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance() : securityParams_; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder() { + return getSecurityParams(); + } + + public static final int PORT_FIELD_NUMBER = 4; + private int port_; + /** + * optional int32 port = 4; + * + *
+     * Port on which to listen. Zero means pick unused port.
+     * 
+ */ + public int getPort() { + return port_; + } + + public static final int ASYNC_SERVER_THREADS_FIELD_NUMBER = 7; + private int asyncServerThreads_; + /** + * optional int32 async_server_threads = 7; + * + *
+     * Only for async server. Number of threads used to serve the requests.
+     * 
+ */ + public int getAsyncServerThreads() { + return asyncServerThreads_; + } + + public static final int CORE_LIMIT_FIELD_NUMBER = 8; + private int coreLimit_; + /** + * optional int32 core_limit = 8; + * + *
+     * Specify the number of cores to limit server to, if desired
+     * 
+ */ + public int getCoreLimit() { + return coreLimit_; + } + + public static final int PAYLOAD_CONFIG_FIELD_NUMBER = 9; + private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_; + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+     * payload config, used in generic server
+     * 
+ */ + public boolean hasPayloadConfig() { + return payloadConfig_ != null; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+     * payload config, used in generic server
+     * 
+ */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig() { + return payloadConfig_ == null ? io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+     * payload config, used in generic server
+     * 
+ */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder() { + return getPayloadConfig(); + } + + public static final int CORE_LIST_FIELD_NUMBER = 10; + private java.util.List coreList_; + /** + * repeated int32 core_list = 10; + * + *
+     * Specify the cores we should run the server on, if desired
+     * 
+ */ + public java.util.List + getCoreListList() { + return coreList_; + } + /** + * repeated int32 core_list = 10; + * + *
+     * Specify the cores we should run the server on, if desired
+     * 
+ */ + public int getCoreListCount() { + return coreList_.size(); + } + /** + * repeated int32 core_list = 10; + * + *
+     * Specify the cores we should run the server on, if desired
+     * 
+ */ + public int getCoreList(int index) { + return coreList_.get(index); + } + private int coreListMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (serverType_ != io.grpc.benchmarks.proto.Control.ServerType.SYNC_SERVER.getNumber()) { + output.writeEnum(1, serverType_); + } + if (securityParams_ != null) { + output.writeMessage(2, getSecurityParams()); + } + if (port_ != 0) { + output.writeInt32(4, port_); + } + if (asyncServerThreads_ != 0) { + output.writeInt32(7, asyncServerThreads_); + } + if (coreLimit_ != 0) { + output.writeInt32(8, coreLimit_); + } + if (payloadConfig_ != null) { + output.writeMessage(9, getPayloadConfig()); + } + if (getCoreListList().size() > 0) { + output.writeRawVarint32(82); + output.writeRawVarint32(coreListMemoizedSerializedSize); + } + for (int i = 0; i < coreList_.size(); i++) { + output.writeInt32NoTag(coreList_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (serverType_ != io.grpc.benchmarks.proto.Control.ServerType.SYNC_SERVER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, serverType_); + } + if (securityParams_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecurityParams()); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, port_); + } + if (asyncServerThreads_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, asyncServerThreads_); + } + if (coreLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, coreLimit_); + } + if (payloadConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getPayloadConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < coreList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(coreList_.get(i)); + } + size += dataSize; + if (!getCoreListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + coreListMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig 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.benchmarks.proto.Control.ServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ServerConfig) + io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ServerConfig.class, io.grpc.benchmarks.proto.Control.ServerConfig.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ServerConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + serverType_ = 0; + + if (securityParamsBuilder_ == null) { + securityParams_ = null; + } else { + securityParams_ = null; + securityParamsBuilder_ = null; + } + port_ = 0; + + asyncServerThreads_ = 0; + + coreLimit_ = 0; + + if (payloadConfigBuilder_ == null) { + payloadConfig_ = null; + } else { + payloadConfig_ = null; + payloadConfigBuilder_ = null; + } + coreList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ServerConfig getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ServerConfig build() { + io.grpc.benchmarks.proto.Control.ServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ServerConfig buildPartial() { + io.grpc.benchmarks.proto.Control.ServerConfig result = new io.grpc.benchmarks.proto.Control.ServerConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.serverType_ = serverType_; + if (securityParamsBuilder_ == null) { + result.securityParams_ = securityParams_; + } else { + result.securityParams_ = securityParamsBuilder_.build(); + } + result.port_ = port_; + result.asyncServerThreads_ = asyncServerThreads_; + result.coreLimit_ = coreLimit_; + if (payloadConfigBuilder_ == null) { + result.payloadConfig_ = payloadConfig_; + } else { + result.payloadConfig_ = payloadConfigBuilder_.build(); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + coreList_ = java.util.Collections.unmodifiableList(coreList_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.coreList_ = coreList_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ServerConfig) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ServerConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ServerConfig other) { + if (other == io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance()) return this; + if (other.serverType_ != 0) { + setServerTypeValue(other.getServerTypeValue()); + } + if (other.hasSecurityParams()) { + mergeSecurityParams(other.getSecurityParams()); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.getAsyncServerThreads() != 0) { + setAsyncServerThreads(other.getAsyncServerThreads()); + } + if (other.getCoreLimit() != 0) { + setCoreLimit(other.getCoreLimit()); + } + if (other.hasPayloadConfig()) { + mergePayloadConfig(other.getPayloadConfig()); + } + if (!other.coreList_.isEmpty()) { + if (coreList_.isEmpty()) { + coreList_ = other.coreList_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCoreListIsMutable(); + coreList_.addAll(other.coreList_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ServerConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ServerConfig) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int serverType_ = 0; + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public int getServerTypeValue() { + return serverType_; + } + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public Builder setServerTypeValue(int value) { + serverType_ = value; + onChanged(); + return this; + } + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public io.grpc.benchmarks.proto.Control.ServerType getServerType() { + io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.valueOf(serverType_); + return result == null ? io.grpc.benchmarks.proto.Control.ServerType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public Builder setServerType(io.grpc.benchmarks.proto.Control.ServerType value) { + if (value == null) { + throw new NullPointerException(); + } + + serverType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .grpc.testing.ServerType server_type = 1; + */ + public Builder clearServerType() { + + serverType_ = 0; + onChanged(); + return this; + } + + private io.grpc.benchmarks.proto.Control.SecurityParams securityParams_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder> securityParamsBuilder_; + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public boolean hasSecurityParams() { + return securityParamsBuilder_ != null || securityParams_ != null; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public io.grpc.benchmarks.proto.Control.SecurityParams getSecurityParams() { + if (securityParamsBuilder_ == null) { + return securityParams_ == null ? io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance() : securityParams_; + } else { + return securityParamsBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public Builder setSecurityParams(io.grpc.benchmarks.proto.Control.SecurityParams value) { + if (securityParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityParams_ = value; + onChanged(); + } else { + securityParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public Builder setSecurityParams( + io.grpc.benchmarks.proto.Control.SecurityParams.Builder builderForValue) { + if (securityParamsBuilder_ == null) { + securityParams_ = builderForValue.build(); + onChanged(); + } else { + securityParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public Builder mergeSecurityParams(io.grpc.benchmarks.proto.Control.SecurityParams value) { + if (securityParamsBuilder_ == null) { + if (securityParams_ != null) { + securityParams_ = + io.grpc.benchmarks.proto.Control.SecurityParams.newBuilder(securityParams_).mergeFrom(value).buildPartial(); + } else { + securityParams_ = value; + } + onChanged(); + } else { + securityParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public Builder clearSecurityParams() { + if (securityParamsBuilder_ == null) { + securityParams_ = null; + onChanged(); + } else { + securityParams_ = null; + securityParamsBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public io.grpc.benchmarks.proto.Control.SecurityParams.Builder getSecurityParamsBuilder() { + + onChanged(); + return getSecurityParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + public io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder() { + if (securityParamsBuilder_ != null) { + return securityParamsBuilder_.getMessageOrBuilder(); + } else { + return securityParams_ == null ? + io.grpc.benchmarks.proto.Control.SecurityParams.getDefaultInstance() : securityParams_; + } + } + /** + * optional .grpc.testing.SecurityParams security_params = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder> + getSecurityParamsFieldBuilder() { + if (securityParamsBuilder_ == null) { + securityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder>( + getSecurityParams(), + getParentForChildren(), + isClean()); + securityParams_ = null; + } + return securityParamsBuilder_; + } + + private int port_ ; + /** + * optional int32 port = 4; + * + *
+       * Port on which to listen. Zero means pick unused port.
+       * 
+ */ + public int getPort() { + return port_; + } + /** + * optional int32 port = 4; + * + *
+       * Port on which to listen. Zero means pick unused port.
+       * 
+ */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * optional int32 port = 4; + * + *
+       * Port on which to listen. Zero means pick unused port.
+       * 
+ */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private int asyncServerThreads_ ; + /** + * optional int32 async_server_threads = 7; + * + *
+       * Only for async server. Number of threads used to serve the requests.
+       * 
+ */ + public int getAsyncServerThreads() { + return asyncServerThreads_; + } + /** + * optional int32 async_server_threads = 7; + * + *
+       * Only for async server. Number of threads used to serve the requests.
+       * 
+ */ + public Builder setAsyncServerThreads(int value) { + + asyncServerThreads_ = value; + onChanged(); + return this; + } + /** + * optional int32 async_server_threads = 7; + * + *
+       * Only for async server. Number of threads used to serve the requests.
+       * 
+ */ + public Builder clearAsyncServerThreads() { + + asyncServerThreads_ = 0; + onChanged(); + return this; + } + + private int coreLimit_ ; + /** + * optional int32 core_limit = 8; + * + *
+       * Specify the number of cores to limit server to, if desired
+       * 
+ */ + public int getCoreLimit() { + return coreLimit_; + } + /** + * optional int32 core_limit = 8; + * + *
+       * Specify the number of cores to limit server to, if desired
+       * 
+ */ + public Builder setCoreLimit(int value) { + + coreLimit_ = value; + onChanged(); + return this; + } + /** + * optional int32 core_limit = 8; + * + *
+       * Specify the number of cores to limit server to, if desired
+       * 
+ */ + public Builder clearCoreLimit() { + + coreLimit_ = 0; + onChanged(); + return this; + } + + private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> payloadConfigBuilder_; + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public boolean hasPayloadConfig() { + return payloadConfigBuilder_ != null || payloadConfig_ != null; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfig getPayloadConfig() { + if (payloadConfigBuilder_ == null) { + return payloadConfig_ == null ? io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; + } else { + return payloadConfigBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public Builder setPayloadConfig(io.grpc.benchmarks.proto.Payloads.PayloadConfig value) { + if (payloadConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payloadConfig_ = value; + onChanged(); + } else { + payloadConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public Builder setPayloadConfig( + io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder builderForValue) { + if (payloadConfigBuilder_ == null) { + payloadConfig_ = builderForValue.build(); + onChanged(); + } else { + payloadConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public Builder mergePayloadConfig(io.grpc.benchmarks.proto.Payloads.PayloadConfig value) { + if (payloadConfigBuilder_ == null) { + if (payloadConfig_ != null) { + payloadConfig_ = + io.grpc.benchmarks.proto.Payloads.PayloadConfig.newBuilder(payloadConfig_).mergeFrom(value).buildPartial(); + } else { + payloadConfig_ = value; + } + onChanged(); + } else { + payloadConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public Builder clearPayloadConfig() { + if (payloadConfigBuilder_ == null) { + payloadConfig_ = null; + onChanged(); + } else { + payloadConfig_ = null; + payloadConfigBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder getPayloadConfigBuilder() { + + onChanged(); + return getPayloadConfigFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + public io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder() { + if (payloadConfigBuilder_ != null) { + return payloadConfigBuilder_.getMessageOrBuilder(); + } else { + return payloadConfig_ == null ? + io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance() : payloadConfig_; + } + } + /** + * optional .grpc.testing.PayloadConfig payload_config = 9; + * + *
+       * payload config, used in generic server
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> + getPayloadConfigFieldBuilder() { + if (payloadConfigBuilder_ == null) { + payloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder>( + getPayloadConfig(), + getParentForChildren(), + isClean()); + payloadConfig_ = null; + } + return payloadConfigBuilder_; + } + + private java.util.List coreList_ = java.util.Collections.emptyList(); + private void ensureCoreListIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + coreList_ = new java.util.ArrayList(coreList_); + bitField0_ |= 0x00000040; + } + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public java.util.List + getCoreListList() { + return java.util.Collections.unmodifiableList(coreList_); + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public int getCoreListCount() { + return coreList_.size(); + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public int getCoreList(int index) { + return coreList_.get(index); + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public Builder setCoreList( + int index, int value) { + ensureCoreListIsMutable(); + coreList_.set(index, value); + onChanged(); + return this; + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public Builder addCoreList(int value) { + ensureCoreListIsMutable(); + coreList_.add(value); + onChanged(); + return this; + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public Builder addAllCoreList( + java.lang.Iterable values) { + ensureCoreListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coreList_); + onChanged(); + return this; + } + /** + * repeated int32 core_list = 10; + * + *
+       * Specify the cores we should run the server on, if desired
+       * 
+ */ + public Builder clearCoreList() { + coreList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + 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.ServerConfig) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ServerConfig) + private static final io.grpc.benchmarks.proto.Control.ServerConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ServerConfig(); + } + + public static io.grpc.benchmarks.proto.Control.ServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ServerConfig(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ServerArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ServerArgs) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + io.grpc.benchmarks.proto.Control.ServerConfig getSetup(); + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder getSetupOrBuilder(); + + /** + * optional .grpc.testing.Mark mark = 2; + */ + io.grpc.benchmarks.proto.Control.Mark getMark(); + /** + * optional .grpc.testing.Mark mark = 2; + */ + io.grpc.benchmarks.proto.Control.MarkOrBuilder getMarkOrBuilder(); + + public io.grpc.benchmarks.proto.Control.ServerArgs.ArgtypeCase getArgtypeCase(); + } + /** + * 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ServerArgs( + 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.benchmarks.proto.Control.ServerConfig.Builder subBuilder = null; + if (argtypeCase_ == 1) { + subBuilder = ((io.grpc.benchmarks.proto.Control.ServerConfig) argtype_).toBuilder(); + } + argtype_ = + input.readMessage(io.grpc.benchmarks.proto.Control.ServerConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.ServerConfig) argtype_); + argtype_ = subBuilder.buildPartial(); + } + argtypeCase_ = 1; + break; + } + case 18: { + io.grpc.benchmarks.proto.Control.Mark.Builder subBuilder = null; + if (argtypeCase_ == 2) { + subBuilder = ((io.grpc.benchmarks.proto.Control.Mark) argtype_).toBuilder(); + } + argtype_ = + input.readMessage(io.grpc.benchmarks.proto.Control.Mark.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Control.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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ServerArgs.class, io.grpc.benchmarks.proto.Control.ServerArgs.Builder.class); + } + + private int argtypeCase_ = 0; + private java.lang.Object argtype_; + public enum ArgtypeCase + implements com.google.protobuf.Internal.EnumLite { + SETUP(1), + MARK(2), + ARGTYPE_NOT_SET(0); + private int value = 0; + private ArgtypeCase(int value) { + this.value = value; + } + public static ArgtypeCase valueOf(int value) { + switch (value) { + case 1: return SETUP; + case 2: return MARK; + case 0: return ARGTYPE_NOT_SET; + default: throw new java.lang.IllegalArgumentException( + "Value is undefined for this oneof enum."); + } + } + public int getNumber() { + return this.value; + } + }; + + public ArgtypeCase + getArgtypeCase() { + return ArgtypeCase.valueOf( + argtypeCase_); + } + + public static final int SETUP_FIELD_NUMBER = 1; + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ServerConfig getSetup() { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder getSetupOrBuilder() { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } + + public static final int MARK_FIELD_NUMBER = 2; + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.Mark getMark() { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.MarkOrBuilder getMarkOrBuilder() { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + + 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 (argtypeCase_ == 1) { + output.writeMessage(1, (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_); + } + if (argtypeCase_ == 2) { + output.writeMessage(2, (io.grpc.benchmarks.proto.Control.Mark) argtype_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (argtypeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_); + } + if (argtypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.grpc.benchmarks.proto.Control.Mark) argtype_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs 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.benchmarks.proto.Control.ServerArgs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ServerArgs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ServerArgs) + io.grpc.benchmarks.proto.Control.ServerArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ServerArgs.class, io.grpc.benchmarks.proto.Control.ServerArgs.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ServerArgs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + argtypeCase_ = 0; + argtype_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ServerArgs getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ServerArgs.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ServerArgs build() { + io.grpc.benchmarks.proto.Control.ServerArgs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ServerArgs buildPartial() { + io.grpc.benchmarks.proto.Control.ServerArgs result = new io.grpc.benchmarks.proto.Control.ServerArgs(this); + if (argtypeCase_ == 1) { + if (setupBuilder_ == null) { + result.argtype_ = argtype_; + } else { + result.argtype_ = setupBuilder_.build(); + } + } + if (argtypeCase_ == 2) { + if (markBuilder_ == null) { + result.argtype_ = argtype_; + } else { + result.argtype_ = markBuilder_.build(); + } + } + result.argtypeCase_ = argtypeCase_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ServerArgs) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ServerArgs)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ServerArgs other) { + if (other == io.grpc.benchmarks.proto.Control.ServerArgs.getDefaultInstance()) return this; + switch (other.getArgtypeCase()) { + case SETUP: { + mergeSetup(other.getSetup()); + break; + } + case MARK: { + mergeMark(other.getMark()); + break; + } + case ARGTYPE_NOT_SET: { + break; + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ServerArgs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ServerArgs) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int argtypeCase_ = 0; + private java.lang.Object argtype_; + public ArgtypeCase + getArgtypeCase() { + return ArgtypeCase.valueOf( + argtypeCase_); + } + + public Builder clearArgtype() { + argtypeCase_ = 0; + argtype_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ServerConfig, io.grpc.benchmarks.proto.Control.ServerConfig.Builder, io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder> setupBuilder_; + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ServerConfig getSetup() { + if (setupBuilder_ == null) { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } else { + if (argtypeCase_ == 1) { + return setupBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + public Builder setSetup(io.grpc.benchmarks.proto.Control.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( + io.grpc.benchmarks.proto.Control.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(io.grpc.benchmarks.proto.Control.ServerConfig value) { + if (setupBuilder_ == null) { + if (argtypeCase_ == 1 && + argtype_ != io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance()) { + argtype_ = io.grpc.benchmarks.proto.Control.ServerConfig.newBuilder((io.grpc.benchmarks.proto.Control.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 io.grpc.benchmarks.proto.Control.ServerConfig.Builder getSetupBuilder() { + return getSetupFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + public io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder getSetupOrBuilder() { + if ((argtypeCase_ == 1) && (setupBuilder_ != null)) { + return setupBuilder_.getMessageOrBuilder(); + } else { + if (argtypeCase_ == 1) { + return (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_; + } + return io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ServerConfig setup = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ServerConfig, io.grpc.benchmarks.proto.Control.ServerConfig.Builder, io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder> + getSetupFieldBuilder() { + if (setupBuilder_ == null) { + if (!(argtypeCase_ == 1)) { + argtype_ = io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance(); + } + setupBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.ServerConfig, io.grpc.benchmarks.proto.Control.ServerConfig.Builder, io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder>( + (io.grpc.benchmarks.proto.Control.ServerConfig) argtype_, + getParentForChildren(), + isClean()); + argtype_ = null; + } + argtypeCase_ = 1; + onChanged();; + return setupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder> markBuilder_; + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.Mark getMark() { + if (markBuilder_ == null) { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } else { + if (argtypeCase_ == 2) { + return markBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + public Builder setMark(io.grpc.benchmarks.proto.Control.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( + io.grpc.benchmarks.proto.Control.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(io.grpc.benchmarks.proto.Control.Mark value) { + if (markBuilder_ == null) { + if (argtypeCase_ == 2 && + argtype_ != io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance()) { + argtype_ = io.grpc.benchmarks.proto.Control.Mark.newBuilder((io.grpc.benchmarks.proto.Control.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 io.grpc.benchmarks.proto.Control.Mark.Builder getMarkBuilder() { + return getMarkFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + public io.grpc.benchmarks.proto.Control.MarkOrBuilder getMarkOrBuilder() { + if ((argtypeCase_ == 2) && (markBuilder_ != null)) { + return markBuilder_.getMessageOrBuilder(); + } else { + if (argtypeCase_ == 2) { + return (io.grpc.benchmarks.proto.Control.Mark) argtype_; + } + return io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.Mark mark = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder> + getMarkFieldBuilder() { + if (markBuilder_ == null) { + if (!(argtypeCase_ == 2)) { + argtype_ = io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance(); + } + markBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder>( + (io.grpc.benchmarks.proto.Control.Mark) argtype_, + getParentForChildren(), + isClean()); + argtype_ = null; + } + argtypeCase_ = 2; + onChanged();; + return markBuilder_; + } + 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.ServerArgs) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ServerArgs) + private static final io.grpc.benchmarks.proto.Control.ServerArgs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ServerArgs(); + } + + public static io.grpc.benchmarks.proto.Control.ServerArgs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ServerArgs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ServerArgs(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ServerArgs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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; + */ + io.grpc.benchmarks.proto.Stats.ServerStats getStats(); + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder getStatsOrBuilder(); + + /** + * optional int32 port = 2; + * + *
+     * the port bound by the server
+     * 
+ */ + int getPort(); + + /** + * optional int32 cores = 3; + * + *
+     * Number of cores available to the server
+     * 
+ */ + int getCores(); + } + /** + * 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; + cores_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ServerStatus( + 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.benchmarks.proto.Stats.ServerStats.Builder subBuilder = null; + if (stats_ != null) { + subBuilder = stats_.toBuilder(); + } + stats_ = input.readMessage(io.grpc.benchmarks.proto.Stats.ServerStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stats_); + stats_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + port_ = input.readInt32(); + break; + } + case 24: { + + cores_ = 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.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ServerStatus.class, io.grpc.benchmarks.proto.Control.ServerStatus.Builder.class); + } + + public static final int STATS_FIELD_NUMBER = 1; + private io.grpc.benchmarks.proto.Stats.ServerStats stats_; + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public boolean hasStats() { + return stats_ != null; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ServerStats getStats() { + return stats_ == null ? io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance() : stats_; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder getStatsOrBuilder() { + return getStats(); + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_; + /** + * optional int32 port = 2; + * + *
+     * the port bound by the server
+     * 
+ */ + public int getPort() { + return port_; + } + + public static final int CORES_FIELD_NUMBER = 3; + private int cores_; + /** + * optional int32 cores = 3; + * + *
+     * Number of cores available to the server
+     * 
+ */ + public int getCores() { + return cores_; + } + + 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 (stats_ != null) { + output.writeMessage(1, getStats()); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (cores_ != 0) { + output.writeInt32(3, cores_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stats_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStats()); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); + } + if (cores_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, cores_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus 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.benchmarks.proto.Control.ServerStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.ServerStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ServerStatus) + io.grpc.benchmarks.proto.Control.ServerStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.ServerStatus.class, io.grpc.benchmarks.proto.Control.ServerStatus.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.ServerStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (statsBuilder_ == null) { + stats_ = null; + } else { + stats_ = null; + statsBuilder_ = null; + } + port_ = 0; + + cores_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_descriptor; + } + + public io.grpc.benchmarks.proto.Control.ServerStatus getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.ServerStatus.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.ServerStatus build() { + io.grpc.benchmarks.proto.Control.ServerStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.ServerStatus buildPartial() { + io.grpc.benchmarks.proto.Control.ServerStatus result = new io.grpc.benchmarks.proto.Control.ServerStatus(this); + if (statsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + result.port_ = port_; + result.cores_ = cores_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.ServerStatus) { + return mergeFrom((io.grpc.benchmarks.proto.Control.ServerStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.ServerStatus other) { + if (other == io.grpc.benchmarks.proto.Control.ServerStatus.getDefaultInstance()) return this; + if (other.hasStats()) { + mergeStats(other.getStats()); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.getCores() != 0) { + setCores(other.getCores()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.ServerStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.ServerStatus) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.grpc.benchmarks.proto.Stats.ServerStats stats_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.ServerStats, io.grpc.benchmarks.proto.Stats.ServerStats.Builder, io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder> statsBuilder_; + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public boolean hasStats() { + return statsBuilder_ != null || stats_ != null; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ServerStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null ? io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance() : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public Builder setStats(io.grpc.benchmarks.proto.Stats.ServerStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + statsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public Builder setStats( + io.grpc.benchmarks.proto.Stats.ServerStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public Builder mergeStats(io.grpc.benchmarks.proto.Stats.ServerStats value) { + if (statsBuilder_ == null) { + if (stats_ != null) { + stats_ = + io.grpc.benchmarks.proto.Stats.ServerStats.newBuilder(stats_).mergeFrom(value).buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + statsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = null; + onChanged(); + } else { + stats_ = null; + statsBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ServerStats.Builder getStatsBuilder() { + + onChanged(); + return getStatsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + public io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null ? + io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance() : stats_; + } + } + /** + * optional .grpc.testing.ServerStats stats = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.ServerStats, io.grpc.benchmarks.proto.Stats.ServerStats.Builder, io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.ServerStats, io.grpc.benchmarks.proto.Stats.ServerStats.Builder, io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + + private int port_ ; + /** + * optional int32 port = 2; + * + *
+       * the port bound by the server
+       * 
+ */ + public int getPort() { + return port_; + } + /** + * optional int32 port = 2; + * + *
+       * the port bound by the server
+       * 
+ */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * optional int32 port = 2; + * + *
+       * the port bound by the server
+       * 
+ */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private int cores_ ; + /** + * optional int32 cores = 3; + * + *
+       * Number of cores available to the server
+       * 
+ */ + public int getCores() { + return cores_; + } + /** + * optional int32 cores = 3; + * + *
+       * Number of cores available to the server
+       * 
+ */ + public Builder setCores(int value) { + + cores_ = value; + onChanged(); + return this; + } + /** + * optional int32 cores = 3; + * + *
+       * Number of cores available to the server
+       * 
+ */ + public Builder clearCores() { + + cores_ = 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.ServerStatus) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ServerStatus) + private static final io.grpc.benchmarks.proto.Control.ServerStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.ServerStatus(); + } + + public static io.grpc.benchmarks.proto.Control.ServerStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ServerStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ServerStatus(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.ServerStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CoreRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.CoreRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code grpc.testing.CoreRequest} + */ + public static final class CoreRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.CoreRequest) + CoreRequestOrBuilder { + // Use CoreRequest.newBuilder() to construct. + private CoreRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CoreRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CoreRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + 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; + } + } + } + } 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.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.CoreRequest.class, io.grpc.benchmarks.proto.Control.CoreRequest.Builder.class); + } + + 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 { + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest 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.benchmarks.proto.Control.CoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.CoreRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.CoreRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.CoreRequest) + io.grpc.benchmarks.proto.Control.CoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.CoreRequest.class, io.grpc.benchmarks.proto.Control.CoreRequest.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.CoreRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_descriptor; + } + + public io.grpc.benchmarks.proto.Control.CoreRequest getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.CoreRequest.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.CoreRequest build() { + io.grpc.benchmarks.proto.Control.CoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.CoreRequest buildPartial() { + io.grpc.benchmarks.proto.Control.CoreRequest result = new io.grpc.benchmarks.proto.Control.CoreRequest(this); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.CoreRequest) { + return mergeFrom((io.grpc.benchmarks.proto.Control.CoreRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.CoreRequest other) { + if (other == io.grpc.benchmarks.proto.Control.CoreRequest.getDefaultInstance()) return this; + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.CoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.CoreRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.CoreRequest) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.CoreRequest) + private static final io.grpc.benchmarks.proto.Control.CoreRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.CoreRequest(); + } + + public static io.grpc.benchmarks.proto.Control.CoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new CoreRequest(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.CoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CoreResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.CoreResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int32 cores = 1; + * + *
+     * Number of cores available on the server
+     * 
+ */ + int getCores(); + } + /** + * Protobuf type {@code grpc.testing.CoreResponse} + */ + public static final class CoreResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.CoreResponse) + CoreResponseOrBuilder { + // Use CoreResponse.newBuilder() to construct. + private CoreResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CoreResponse() { + cores_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CoreResponse( + 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: { + + cores_ = 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.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.CoreResponse.class, io.grpc.benchmarks.proto.Control.CoreResponse.Builder.class); + } + + public static final int CORES_FIELD_NUMBER = 1; + private int cores_; + /** + * optional int32 cores = 1; + * + *
+     * Number of cores available on the server
+     * 
+ */ + public int getCores() { + return cores_; + } + + 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 (cores_ != 0) { + output.writeInt32(1, cores_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cores_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, cores_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse 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.benchmarks.proto.Control.CoreResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.CoreResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.CoreResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.CoreResponse) + io.grpc.benchmarks.proto.Control.CoreResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.CoreResponse.class, io.grpc.benchmarks.proto.Control.CoreResponse.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.CoreResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + cores_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_descriptor; + } + + public io.grpc.benchmarks.proto.Control.CoreResponse getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.CoreResponse.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.CoreResponse build() { + io.grpc.benchmarks.proto.Control.CoreResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.CoreResponse buildPartial() { + io.grpc.benchmarks.proto.Control.CoreResponse result = new io.grpc.benchmarks.proto.Control.CoreResponse(this); + result.cores_ = cores_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.CoreResponse) { + return mergeFrom((io.grpc.benchmarks.proto.Control.CoreResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.CoreResponse other) { + if (other == io.grpc.benchmarks.proto.Control.CoreResponse.getDefaultInstance()) return this; + if (other.getCores() != 0) { + setCores(other.getCores()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.CoreResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.CoreResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int cores_ ; + /** + * optional int32 cores = 1; + * + *
+       * Number of cores available on the server
+       * 
+ */ + public int getCores() { + return cores_; + } + /** + * optional int32 cores = 1; + * + *
+       * Number of cores available on the server
+       * 
+ */ + public Builder setCores(int value) { + + cores_ = value; + onChanged(); + return this; + } + /** + * optional int32 cores = 1; + * + *
+       * Number of cores available on the server
+       * 
+ */ + public Builder clearCores() { + + cores_ = 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.CoreResponse) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.CoreResponse) + private static final io.grpc.benchmarks.proto.Control.CoreResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.CoreResponse(); + } + + public static io.grpc.benchmarks.proto.Control.CoreResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CoreResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new CoreResponse(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.CoreResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VoidOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.Void) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code grpc.testing.Void} + */ + public static final class Void extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.Void) + VoidOrBuilder { + // Use Void.newBuilder() to construct. + private Void(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Void() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Void( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + 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; + } + } + } + } 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.benchmarks.proto.Control.internal_static_grpc_testing_Void_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.Void.class, io.grpc.benchmarks.proto.Control.Void.Builder.class); + } + + 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 { + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Control.Void parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.Void 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.benchmarks.proto.Control.Void parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Control.Void parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.Void parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.Void parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.Void parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Control.Void parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Control.Void parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Control.Void parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Control.Void prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Void} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.Void) + io.grpc.benchmarks.proto.Control.VoidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Control.Void.class, io.grpc.benchmarks.proto.Control.Void.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Control.Void.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_descriptor; + } + + public io.grpc.benchmarks.proto.Control.Void getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Control.Void.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Control.Void build() { + io.grpc.benchmarks.proto.Control.Void result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Control.Void buildPartial() { + io.grpc.benchmarks.proto.Control.Void result = new io.grpc.benchmarks.proto.Control.Void(this); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Control.Void) { + return mergeFrom((io.grpc.benchmarks.proto.Control.Void)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Control.Void other) { + if (other == io.grpc.benchmarks.proto.Control.Void.getDefaultInstance()) return this; + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Control.Void parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Control.Void) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.Void) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.Void) + private static final io.grpc.benchmarks.proto.Control.Void DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Control.Void(); + } + + public static io.grpc.benchmarks.proto.Control.Void getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Void parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Void(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Control.Void getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_PoissonParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_PoissonParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_UniformParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_UniformParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_DeterministicParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_DeterministicParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ParetoParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ParetoParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ClosedLoopParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_LoadParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_LoadParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_SecurityParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_SecurityParams_fieldAccessorTable; + private static 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 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 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 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 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 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 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 com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_CoreRequest_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_CoreRequest_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_CoreResponse_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_CoreResponse_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_Void_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_Void_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\rcontrol.proto\022\014grpc.testing\032\016payloads." + + "proto\032\013stats.proto\"%\n\rPoissonParams\022\024\n\014o" + + "ffered_load\030\001 \001(\001\"A\n\rUniformParams\022\027\n\017in" + + "terarrival_lo\030\001 \001(\001\022\027\n\017interarrival_hi\030\002" + + " \001(\001\"+\n\023DeterministicParams\022\024\n\014offered_l" + + "oad\030\001 \001(\001\"8\n\014ParetoParams\022\031\n\021interarriva" + + "l_base\030\001 \001(\001\022\r\n\005alpha\030\002 \001(\001\"\022\n\020ClosedLoo" + + "pParams\"\216\002\n\nLoadParams\0225\n\013closed_loop\030\001 " + + "\001(\0132\036.grpc.testing.ClosedLoopParamsH\000\022.\n" + + "\007poisson\030\002 \001(\0132\033.grpc.testing.PoissonPar", + "amsH\000\022.\n\007uniform\030\003 \001(\0132\033.grpc.testing.Un" + + "iformParamsH\000\0223\n\006determ\030\004 \001(\0132!.grpc.tes" + + "ting.DeterministicParamsH\000\022,\n\006pareto\030\005 \001" + + "(\0132\032.grpc.testing.ParetoParamsH\000B\006\n\004load" + + "\"C\n\016SecurityParams\022\023\n\013use_test_ca\030\001 \001(\010\022" + + "\034\n\024server_host_override\030\002 \001(\t\"\326\003\n\014Client" + + "Config\022\026\n\016server_targets\030\001 \003(\t\022-\n\013client" + + "_type\030\002 \001(\0162\030.grpc.testing.ClientType\0225\n" + + "\017security_params\030\003 \001(\0132\034.grpc.testing.Se" + + "curityParams\022$\n\034outstanding_rpcs_per_cha", + "nnel\030\004 \001(\005\022\027\n\017client_channels\030\005 \001(\005\022\034\n\024a" + + "sync_client_threads\030\007 \001(\005\022\'\n\010rpc_type\030\010 " + + "\001(\0162\025.grpc.testing.RpcType\022-\n\013load_param" + + "s\030\n \001(\0132\030.grpc.testing.LoadParams\0223\n\016pay" + + "load_config\030\013 \001(\0132\033.grpc.testing.Payload" + + "Config\0227\n\020histogram_params\030\014 \001(\0132\035.grpc." + + "testing.HistogramParams\022\021\n\tcore_list\030\r \003" + + "(\005\022\022\n\ncore_limit\030\016 \001(\005\"8\n\014ClientStatus\022(" + + "\n\005stats\030\001 \001(\0132\031.grpc.testing.ClientStats" + + "\"\025\n\004Mark\022\r\n\005reset\030\001 \001(\010\"h\n\nClientArgs\022+\n", + "\005setup\030\001 \001(\0132\032.grpc.testing.ClientConfig" + + "H\000\022\"\n\004mark\030\002 \001(\0132\022.grpc.testing.MarkH\000B\t" + + "\n\007argtype\"\374\001\n\014ServerConfig\022-\n\013server_typ" + + "e\030\001 \001(\0162\030.grpc.testing.ServerType\0225\n\017sec" + + "urity_params\030\002 \001(\0132\034.grpc.testing.Securi" + + "tyParams\022\014\n\004port\030\004 \001(\005\022\034\n\024async_server_t" + + "hreads\030\007 \001(\005\022\022\n\ncore_limit\030\010 \001(\005\0223\n\016payl" + + "oad_config\030\t \001(\0132\033.grpc.testing.PayloadC" + + "onfig\022\021\n\tcore_list\030\n \003(\005\"h\n\nServerArgs\022+" + + "\n\005setup\030\001 \001(\0132\032.grpc.testing.ServerConfi", + "gH\000\022\"\n\004mark\030\002 \001(\0132\022.grpc.testing.MarkH\000B" + + "\t\n\007argtype\"U\n\014ServerStatus\022(\n\005stats\030\001 \001(" + + "\0132\031.grpc.testing.ServerStats\022\014\n\004port\030\002 \001" + + "(\005\022\r\n\005cores\030\003 \001(\005\"\r\n\013CoreRequest\"\035\n\014Core" + + "Response\022\r\n\005cores\030\001 \001(\005\"\006\n\004Void*/\n\nClien" + + "tType\022\017\n\013SYNC_CLIENT\020\000\022\020\n\014ASYNC_CLIENT\020\001" + + "*I\n\nServerType\022\017\n\013SYNC_SERVER\020\000\022\020\n\014ASYNC" + + "_SERVER\020\001\022\030\n\024ASYNC_GENERIC_SERVER\020\002*#\n\007R" + + "pcType\022\t\n\005UNARY\020\000\022\r\n\tSTREAMING\020\001B#\n\030io.g" + + "rpc.benchmarks.protoB\007Controlb\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[] { + io.grpc.benchmarks.proto.Payloads.getDescriptor(), + io.grpc.benchmarks.proto.Stats.getDescriptor(), + }, assigner); + internal_static_grpc_testing_PoissonParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_grpc_testing_PoissonParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_PoissonParams_descriptor, + new java.lang.String[] { "OfferedLoad", }); + internal_static_grpc_testing_UniformParams_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_grpc_testing_UniformParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_UniformParams_descriptor, + new java.lang.String[] { "InterarrivalLo", "InterarrivalHi", }); + internal_static_grpc_testing_DeterministicParams_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_grpc_testing_DeterministicParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_DeterministicParams_descriptor, + new java.lang.String[] { "OfferedLoad", }); + internal_static_grpc_testing_ParetoParams_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_grpc_testing_ParetoParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ParetoParams_descriptor, + new java.lang.String[] { "InterarrivalBase", "Alpha", }); + internal_static_grpc_testing_ClosedLoopParams_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ClosedLoopParams_descriptor, + new java.lang.String[] { }); + internal_static_grpc_testing_LoadParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_grpc_testing_LoadParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_LoadParams_descriptor, + new java.lang.String[] { "ClosedLoop", "Poisson", "Uniform", "Determ", "Pareto", "Load", }); + internal_static_grpc_testing_SecurityParams_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_grpc_testing_SecurityParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_SecurityParams_descriptor, + new java.lang.String[] { "UseTestCa", "ServerHostOverride", }); + internal_static_grpc_testing_ClientConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_grpc_testing_ClientConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ClientConfig_descriptor, + new java.lang.String[] { "ServerTargets", "ClientType", "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientThreads", "RpcType", "LoadParams", "PayloadConfig", "HistogramParams", "CoreList", "CoreLimit", }); + 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_Mark_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_grpc_testing_Mark_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_Mark_descriptor, + new java.lang.String[] { "Reset", }); + internal_static_grpc_testing_ClientArgs_descriptor = + getDescriptor().getMessageTypes().get(10); + 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_ServerConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_grpc_testing_ServerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ServerConfig_descriptor, + new java.lang.String[] { "ServerType", "SecurityParams", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig", "CoreList", }); + internal_static_grpc_testing_ServerArgs_descriptor = + getDescriptor().getMessageTypes().get(12); + 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(13); + internal_static_grpc_testing_ServerStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ServerStatus_descriptor, + new java.lang.String[] { "Stats", "Port", "Cores", }); + internal_static_grpc_testing_CoreRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_grpc_testing_CoreRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_CoreRequest_descriptor, + new java.lang.String[] { }); + internal_static_grpc_testing_CoreResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_grpc_testing_CoreResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_CoreResponse_descriptor, + new java.lang.String[] { "Cores", }); + internal_static_grpc_testing_Void_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_grpc_testing_Void_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_Void_descriptor, + new java.lang.String[] { }); + io.grpc.benchmarks.proto.Payloads.getDescriptor(); + io.grpc.benchmarks.proto.Stats.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java new file mode 100644 index 0000000000..566664f294 --- /dev/null +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java @@ -0,0 +1,7860 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages.proto + +package io.grpc.benchmarks.proto; + +public final class Messages { + private Messages() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + /** + * Protobuf enum {@code grpc.testing.PayloadType} + * + *
+   * 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PayloadType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PayloadType findValueByNumber(int number) { + return PayloadType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.getDescriptor().getEnumTypes().get(0); + } + + private static final PayloadType[] VALUES = values(); + + public static PayloadType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private PayloadType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:grpc.testing.PayloadType) + } + + /** + * Protobuf enum {@code grpc.testing.CompressionType} + * + *
+   * Compression algorithms
+   * 
+ */ + public enum CompressionType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NONE = 0; + * + *
+     * No compression
+     * 
+ */ + NONE(0, 0), + /** + * GZIP = 1; + */ + GZIP(1, 1), + /** + * DEFLATE = 2; + */ + DEFLATE(2, 2), + UNRECOGNIZED(-1, -1), + ; + + /** + * NONE = 0; + * + *
+     * No compression
+     * 
+ */ + public static final int NONE_VALUE = 0; + /** + * GZIP = 1; + */ + public static final int GZIP_VALUE = 1; + /** + * DEFLATE = 2; + */ + public static final int DEFLATE_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 CompressionType valueOf(int value) { + switch (value) { + case 0: return NONE; + case 1: return GZIP; + case 2: return DEFLATE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CompressionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompressionType findValueByNumber(int number) { + return CompressionType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.getDescriptor().getEnumTypes().get(1); + } + + private static final CompressionType[] VALUES = values(); + + public static CompressionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private CompressionType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:grpc.testing.CompressionType) + } + + 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.
+     * 
+ */ + int getTypeValue(); + /** + * optional .grpc.testing.PayloadType type = 1; + * + *
+     * The type of data in body.
+     * 
+ */ + io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.Payload.class, io.grpc.benchmarks.proto.Messages.Payload.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * 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.benchmarks.proto.Messages.PayloadType getType() { + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(type_); + return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; + } + + public static final int BODY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString body_; + /** + * optional bytes body = 2; + * + *
+     * Primary contents of payload.
+     * 
+ */ + 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.benchmarks.proto.Messages.PayloadType.COMPRESSABLE.getNumber()) { + output.writeEnum(1, type_); + } + if (!body_.isEmpty()) { + output.writeBytes(2, body_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != io.grpc.benchmarks.proto.Messages.PayloadType.COMPRESSABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!body_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, body_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.Payload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.Payload parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.Payload prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.Payload) + io.grpc.benchmarks.proto.Messages.PayloadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.Payload.class, io.grpc.benchmarks.proto.Messages.Payload.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.Payload.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + body_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.Payload getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.Payload build() { + io.grpc.benchmarks.proto.Messages.Payload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.Payload buildPartial() { + io.grpc.benchmarks.proto.Messages.Payload result = new io.grpc.benchmarks.proto.Messages.Payload(this); + result.type_ = type_; + result.body_ = body_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.Payload) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.Payload)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.Payload other) { + if (other == io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { + setBody(other.getBody()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.Payload parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.Payload) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * 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.benchmarks.proto.Messages.PayloadType getType() { + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(type_); + return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.PayloadType type = 1; + * + *
+       * The type of data in body.
+       * 
+ */ + public Builder setType(io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.Payload DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.Payload(); + } + + public static io.grpc.benchmarks.proto.Messages.Payload getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Payload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Payload(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.Payload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EchoStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.EchoStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int32 code = 1; + */ + int getCode(); + + /** + * optional string message = 2; + */ + java.lang.String getMessage(); + /** + * optional string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + * Protobuf type {@code grpc.testing.EchoStatus} + * + *
+   * A protobuf representation for grpc status. This is used by test
+   * clients to specify a status that the server should attempt to return.
+   * 
+ */ + public static final class EchoStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.EchoStatus) + EchoStatusOrBuilder { + // Use EchoStatus.newBuilder() to construct. + private EchoStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EchoStatus() { + code_ = 0; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private EchoStatus( + 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: { + + code_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + 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.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.EchoStatus.class, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * optional int32 code = 1; + */ + public int getCode() { + return code_; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * optional string message = 2; + */ + 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(); + message_ = s; + return s; + } + } + /** + * optional string message = 2; + */ + 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 (code_ != 0) { + output.writeInt32(1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus 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.benchmarks.proto.Messages.EchoStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.EchoStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.EchoStatus} + * + *
+     * A protobuf representation for grpc status. This is used by test
+     * clients to specify a status that the server should attempt to return.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.EchoStatus) + io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.EchoStatus.class, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.EchoStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.EchoStatus getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.EchoStatus build() { + io.grpc.benchmarks.proto.Messages.EchoStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.EchoStatus buildPartial() { + io.grpc.benchmarks.proto.Messages.EchoStatus result = new io.grpc.benchmarks.proto.Messages.EchoStatus(this); + result.code_ = code_; + result.message_ = message_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.EchoStatus) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.EchoStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.EchoStatus other) { + if (other == io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.EchoStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.EchoStatus) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * optional int32 code = 1; + */ + public int getCode() { + return code_; + } + /** + * optional int32 code = 1; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * optional int32 code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * optional string message = 2; + */ + 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(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string message = 2; + */ + 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; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * optional string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * optional string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + 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:grpc.testing.EchoStatus) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.EchoStatus) + private static final io.grpc.benchmarks.proto.Messages.EchoStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.EchoStatus(); + } + + public static io.grpc.benchmarks.proto.Messages.EchoStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EchoStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new EchoStatus(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.EchoStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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.benchmarks.proto.Messages.PayloadType getResponseType(); + + /** + * optional int32 response_size = 2; + * + *
+     * Desired payload size in the response from the server.
+     * If response_type is COMPRESSABLE, this denotes the size before compression.
+     * 
+ */ + 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.benchmarks.proto.Messages.Payload getPayload(); + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + io.grpc.benchmarks.proto.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(); + + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + int getResponseCompressionValue(); + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression(); + + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + boolean hasResponseStatus(); + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus(); + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); + } + /** + * 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; + responseCompression_ = 0; + } + + @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.benchmarks.proto.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.benchmarks.proto.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; + } + case 48: { + int rawValue = input.readEnum(); + + responseCompression_ = rawValue; + break; + } + case 58: { + io.grpc.benchmarks.proto.Messages.EchoStatus.Builder subBuilder = null; + if (responseStatus_ != null) { + subBuilder = responseStatus_.toBuilder(); + } + responseStatus_ = input.readMessage(io.grpc.benchmarks.proto.Messages.EchoStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseStatus_); + responseStatus_ = 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.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.SimpleRequest.class, io.grpc.benchmarks.proto.Messages.SimpleRequest.Builder.class); + } + + public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; + private int responseType_; + /** + * optional .grpc.testing.PayloadType response_type = 1; + * + *
+     * Desired payload type in the response from the server.
+     * If response_type is RANDOM, server randomly chooses one from other formats.
+     * 
+ */ + 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.benchmarks.proto.Messages.PayloadType getResponseType() { + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; + } + + public static final int RESPONSE_SIZE_FIELD_NUMBER = 2; + private int responseSize_; + /** + * optional int32 response_size = 2; + * + *
+     * Desired payload size in the response from the server.
+     * If response_type is COMPRESSABLE, this denotes the size before compression.
+     * 
+ */ + public int getResponseSize() { + return responseSize_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private io.grpc.benchmarks.proto.Messages.Payload payload_; + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public io.grpc.benchmarks.proto.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_; + } + + public static final int RESPONSE_COMPRESSION_FIELD_NUMBER = 6; + private int responseCompression_; + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + public int getResponseCompressionValue() { + return responseCompression_; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; + } + + public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; + private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_; + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + public boolean hasResponseStatus() { + return responseStatus_ != null; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { + return responseStatus_ == null ? io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { + return getResponseStatus(); + } + + 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.benchmarks.proto.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_); + } + if (responseCompression_ != io.grpc.benchmarks.proto.Messages.CompressionType.NONE.getNumber()) { + output.writeEnum(6, responseCompression_); + } + if (responseStatus_ != null) { + output.writeMessage(7, getResponseStatus()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseType_ != io.grpc.benchmarks.proto.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_); + } + if (responseCompression_ != io.grpc.benchmarks.proto.Messages.CompressionType.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, responseCompression_); + } + if (responseStatus_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getResponseStatus()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.SimpleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.SimpleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleRequest) + io.grpc.benchmarks.proto.Messages.SimpleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.SimpleRequest.class, io.grpc.benchmarks.proto.Messages.SimpleRequest.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.SimpleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + responseType_ = 0; + + responseSize_ = 0; + + if (payloadBuilder_ == null) { + payload_ = null; + } else { + payload_ = null; + payloadBuilder_ = null; + } + fillUsername_ = false; + + fillOauthScope_ = false; + + responseCompression_ = 0; + + if (responseStatusBuilder_ == null) { + responseStatus_ = null; + } else { + responseStatus_ = null; + responseStatusBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.SimpleRequest getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.SimpleRequest.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.SimpleRequest build() { + io.grpc.benchmarks.proto.Messages.SimpleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.SimpleRequest buildPartial() { + io.grpc.benchmarks.proto.Messages.SimpleRequest result = new io.grpc.benchmarks.proto.Messages.SimpleRequest(this); + result.responseType_ = responseType_; + result.responseSize_ = responseSize_; + if (payloadBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = payloadBuilder_.build(); + } + result.fillUsername_ = fillUsername_; + result.fillOauthScope_ = fillOauthScope_; + result.responseCompression_ = responseCompression_; + if (responseStatusBuilder_ == null) { + result.responseStatus_ = responseStatus_; + } else { + result.responseStatus_ = responseStatusBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.SimpleRequest) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.SimpleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.SimpleRequest other) { + if (other == io.grpc.benchmarks.proto.Messages.SimpleRequest.getDefaultInstance()) return this; + if (other.responseType_ != 0) { + setResponseTypeValue(other.getResponseTypeValue()); + } + if (other.getResponseSize() != 0) { + setResponseSize(other.getResponseSize()); + } + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + if (other.getFillUsername() != false) { + setFillUsername(other.getFillUsername()); + } + if (other.getFillOauthScope() != false) { + setFillOauthScope(other.getFillOauthScope()); + } + if (other.responseCompression_ != 0) { + setResponseCompressionValue(other.getResponseCompressionValue()); + } + if (other.hasResponseStatus()) { + mergeResponseStatus(other.getResponseStatus()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.SimpleRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.SimpleRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int responseType_ = 0; + /** + * optional .grpc.testing.PayloadType response_type = 1; + * + *
+       * Desired payload type in the response from the server.
+       * If response_type is RANDOM, server randomly chooses one from other formats.
+       * 
+ */ + 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.benchmarks.proto.Messages.PayloadType getResponseType() { + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.PayloadType response_type = 1; + * + *
+       * Desired payload type in the response from the server.
+       * If response_type is RANDOM, server randomly chooses one from other formats.
+       * 
+ */ + public Builder setResponseType(io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.Payload payload_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+       * Optional input payload sent along with the request.
+       * 
+ */ + 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.benchmarks.proto.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + } + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+       * Optional input payload sent along with the request.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.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; + } + + private int responseCompression_ = 0; + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public int getResponseCompressionValue() { + return responseCompression_; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public Builder setResponseCompressionValue(int value) { + responseCompression_ = value; + onChanged(); + return this; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public Builder setResponseCompression(io.grpc.benchmarks.proto.Messages.CompressionType value) { + if (value == null) { + throw new NullPointerException(); + } + + responseCompression_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public Builder clearResponseCompression() { + + responseCompression_ = 0; + onChanged(); + return this; + } + + private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> responseStatusBuilder_; + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public boolean hasResponseStatus() { + return responseStatusBuilder_ != null || responseStatus_ != null; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { + if (responseStatusBuilder_ == null) { + return responseStatus_ == null ? io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; + } else { + return responseStatusBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder setResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { + if (responseStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseStatus_ = value; + onChanged(); + } else { + responseStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder setResponseStatus( + io.grpc.benchmarks.proto.Messages.EchoStatus.Builder builderForValue) { + if (responseStatusBuilder_ == null) { + responseStatus_ = builderForValue.build(); + onChanged(); + } else { + responseStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder mergeResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { + if (responseStatusBuilder_ == null) { + if (responseStatus_ != null) { + responseStatus_ = + io.grpc.benchmarks.proto.Messages.EchoStatus.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); + } else { + responseStatus_ = value; + } + onChanged(); + } else { + responseStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder clearResponseStatus() { + if (responseStatusBuilder_ == null) { + responseStatus_ = null; + onChanged(); + } else { + responseStatus_ = null; + responseStatusBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatus.Builder getResponseStatusBuilder() { + + onChanged(); + return getResponseStatusFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { + if (responseStatusBuilder_ != null) { + return responseStatusBuilder_.getMessageOrBuilder(); + } else { + return responseStatus_ == null ? + io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; + } + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> + getResponseStatusFieldBuilder() { + if (responseStatusBuilder_ == null) { + responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder>( + getResponseStatus(), + getParentForChildren(), + isClean()); + responseStatus_ = null; + } + return responseStatusBuilder_; + } + 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.benchmarks.proto.Messages.SimpleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.SimpleRequest(); + } + + public static io.grpc.benchmarks.proto.Messages.SimpleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SimpleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new SimpleRequest(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.SimpleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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.benchmarks.proto.Messages.Payload getPayload(); + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase message size.
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); + + /** + * optional string username = 2; + * + *
+     * The user the request came from, for verifying authentication was
+     * successful when the client expected it.
+     * 
+ */ + 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.benchmarks.proto.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.benchmarks.proto.Messages.Payload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + oauthScope_ = s; + 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.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.SimpleResponse.class, io.grpc.benchmarks.proto.Messages.SimpleResponse.Builder.class); + } + + public static final int PAYLOAD_FIELD_NUMBER = 1; + private io.grpc.benchmarks.proto.Messages.Payload payload_; + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase message size.
+     * 
+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase message size.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase message size.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + return getPayload(); + } + + public static final int USERNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object username_; + /** + * optional string username = 2; + * + *
+     * The user the request came from, for verifying authentication was
+     * successful when the client expected it.
+     * 
+ */ + 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(); + 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 volatile 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(); + 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()) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, username_); + } + if (!getOauthScopeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, oauthScope_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + 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.GeneratedMessage.computeStringSize(2, username_); + } + if (!getOauthScopeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, oauthScope_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.SimpleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.SimpleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleResponse) + io.grpc.benchmarks.proto.Messages.SimpleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.SimpleResponse.class, io.grpc.benchmarks.proto.Messages.SimpleResponse.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.SimpleResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (payloadBuilder_ == null) { + payload_ = null; + } else { + payload_ = null; + payloadBuilder_ = null; + } + username_ = ""; + + oauthScope_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.SimpleResponse getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.SimpleResponse.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.SimpleResponse build() { + io.grpc.benchmarks.proto.Messages.SimpleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.SimpleResponse buildPartial() { + io.grpc.benchmarks.proto.Messages.SimpleResponse result = new io.grpc.benchmarks.proto.Messages.SimpleResponse(this); + if (payloadBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = payloadBuilder_.build(); + } + result.username_ = username_; + result.oauthScope_ = oauthScope_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.SimpleResponse) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.SimpleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.SimpleResponse other) { + if (other == io.grpc.benchmarks.proto.Messages.SimpleResponse.getDefaultInstance()) return this; + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getOauthScope().isEmpty()) { + oauthScope_ = other.oauthScope_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.SimpleResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.SimpleResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.grpc.benchmarks.proto.Messages.Payload payload_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase message size.
+       * 
+ */ + public boolean hasPayload() { + return payloadBuilder_ != null || payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase message size.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase message size.
+       * 
+ */ + public Builder setPayload(io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { + + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase message size.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase message size.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.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(); + 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(); + } + checkByteStringIsUtf8(value); + + 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(); + 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(); + } + checkByteStringIsUtf8(value); + + 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.benchmarks.proto.Messages.SimpleResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.SimpleResponse(); + } + + public static io.grpc.benchmarks.proto.Messages.SimpleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SimpleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new SimpleResponse(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.SimpleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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.benchmarks.proto.Messages.Payload getPayload(); + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.class, io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.Builder.class); + } + + public static final int PAYLOAD_FIELD_NUMBER = 1; + private io.grpc.benchmarks.proto.Messages.Payload payload_; + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public io.grpc.benchmarks.proto.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()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payload_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPayload()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallRequest) + io.grpc.benchmarks.proto.Messages.StreamingInputCallRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.class, io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (payloadBuilder_ == null) { + payload_ = null; + } else { + payload_ = null; + payloadBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest build() { + io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest buildPartial() { + io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest result = new io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest(this); + if (payloadBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = payloadBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest other) { + if (other == io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest.getDefaultInstance()) return this; + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.grpc.benchmarks.proto.Messages.Payload payload_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Optional input payload sent along with the request.
+       * 
+ */ + 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.benchmarks.proto.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Optional input payload sent along with the request.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.StreamingInputCallRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest(); + } + + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StreamingInputCallRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new StreamingInputCallRequest(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.class, io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.Builder.class); + } + + public static final int AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER = 1; + private int aggregatedPayloadSize_; + /** + * optional int32 aggregated_payload_size = 1; + * + *
+     * Aggregated size of payloads received from the client.
+     * 
+ */ + 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_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (aggregatedPayloadSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, aggregatedPayloadSize_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallResponse) + io.grpc.benchmarks.proto.Messages.StreamingInputCallResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.class, io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + aggregatedPayloadSize_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse build() { + io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse buildPartial() { + io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse result = new io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse(this); + result.aggregatedPayloadSize_ = aggregatedPayloadSize_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse other) { + if (other == io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse.getDefaultInstance()) return this; + if (other.getAggregatedPayloadSize() != 0) { + setAggregatedPayloadSize(other.getAggregatedPayloadSize()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int aggregatedPayloadSize_ ; + /** + * 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.benchmarks.proto.Messages.StreamingInputCallResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse(); + } + + public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StreamingInputCallResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new StreamingInputCallResponse(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.ResponseParameters.class, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private int size_; + /** + * optional int32 size = 1; + * + *
+     * Desired payload sizes in responses from the server.
+     * If response_type is COMPRESSABLE, this denotes the size before compression.
+     * 
+ */ + 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_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + 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_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.ResponseParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.ResponseParameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ResponseParameters) + io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.ResponseParameters.class, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.ResponseParameters.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + size_ = 0; + + intervalUs_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.ResponseParameters getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.ResponseParameters.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.ResponseParameters build() { + io.grpc.benchmarks.proto.Messages.ResponseParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.ResponseParameters buildPartial() { + io.grpc.benchmarks.proto.Messages.ResponseParameters result = new io.grpc.benchmarks.proto.Messages.ResponseParameters(this); + result.size_ = size_; + result.intervalUs_ = intervalUs_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.ResponseParameters) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.ResponseParameters)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.ResponseParameters other) { + if (other == io.grpc.benchmarks.proto.Messages.ResponseParameters.getDefaultInstance()) return this; + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (other.getIntervalUs() != 0) { + setIntervalUs(other.getIntervalUs()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.ResponseParameters parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.ResponseParameters) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int size_ ; + /** + * optional int32 size = 1; + * + *
+       * Desired payload sizes in responses from the server.
+       * If response_type is COMPRESSABLE, this denotes the size before compression.
+       * 
+ */ + 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.benchmarks.proto.Messages.ResponseParameters DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.ResponseParameters(); + } + + public static io.grpc.benchmarks.proto.Messages.ResponseParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ResponseParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ResponseParameters(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.ResponseParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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.benchmarks.proto.Messages.PayloadType getResponseType(); + + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + java.util.List + getResponseParametersList(); + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + io.grpc.benchmarks.proto.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 + getResponseParametersOrBuilderList(); + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.Payload getPayload(); + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); + + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + int getResponseCompressionValue(); + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression(); + + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + boolean hasResponseStatus(); + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus(); + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); + } + /** + * 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(); + responseCompression_ = 0; + } + + @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(); + mutable_bitField0_ |= 0x00000002; + } + responseParameters_.add(input.readMessage(io.grpc.benchmarks.proto.Messages.ResponseParameters.parser(), extensionRegistry)); + break; + } + case 26: { + io.grpc.benchmarks.proto.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.benchmarks.proto.Messages.Payload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + int rawValue = input.readEnum(); + + responseCompression_ = rawValue; + break; + } + case 58: { + io.grpc.benchmarks.proto.Messages.EchoStatus.Builder subBuilder = null; + if (responseStatus_ != null) { + subBuilder = responseStatus_.toBuilder(); + } + responseStatus_ = input.readMessage(io.grpc.benchmarks.proto.Messages.EchoStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseStatus_); + responseStatus_ = 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.class, io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.Builder.class); + } + + private int bitField0_; + public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; + private int responseType_; + /** + * optional .grpc.testing.PayloadType response_type = 1; + * + *
+     * Desired payload type in the response from the server.
+     * If response_type is RANDOM, the payload from each response in the stream
+     * might be of different types. This is to simulate a mixed type of payload
+     * stream.
+     * 
+ */ + 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.benchmarks.proto.Messages.PayloadType getResponseType() { + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; + } + + public static final int RESPONSE_PARAMETERS_FIELD_NUMBER = 2; + private java.util.List responseParameters_; + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + public java.util.List getResponseParametersList() { + return responseParameters_; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + public java.util.List + getResponseParametersOrBuilderList() { + return responseParameters_; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + public int getResponseParametersCount() { + return responseParameters_.size(); + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParameters getResponseParameters(int index) { + return responseParameters_.get(index); + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+     * Configuration for each expected response message.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( + int index) { + return responseParameters_.get(index); + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private io.grpc.benchmarks.proto.Messages.Payload payload_; + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+     * Optional input payload sent along with the request.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + return getPayload(); + } + + public static final int RESPONSE_COMPRESSION_FIELD_NUMBER = 6; + private int responseCompression_; + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + public int getResponseCompressionValue() { + return responseCompression_; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+     * Compression algorithm to be used by the server for the response (stream)
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; + } + + public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; + private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_; + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + public boolean hasResponseStatus() { + return responseStatus_ != null; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { + return responseStatus_ == null ? io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+     * Whether server should return a given status
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { + return getResponseStatus(); + } + + 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.benchmarks.proto.Messages.PayloadType.COMPRESSABLE.getNumber()) { + output.writeEnum(1, responseType_); + } + for (int i = 0; i < responseParameters_.size(); i++) { + output.writeMessage(2, responseParameters_.get(i)); + } + if (payload_ != null) { + output.writeMessage(3, getPayload()); + } + if (responseCompression_ != io.grpc.benchmarks.proto.Messages.CompressionType.NONE.getNumber()) { + output.writeEnum(6, responseCompression_); + } + if (responseStatus_ != null) { + output.writeMessage(7, getResponseStatus()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseType_ != io.grpc.benchmarks.proto.Messages.PayloadType.COMPRESSABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, responseType_); + } + for (int i = 0; i < responseParameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, responseParameters_.get(i)); + } + if (payload_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPayload()); + } + if (responseCompression_ != io.grpc.benchmarks.proto.Messages.CompressionType.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, responseCompression_); + } + if (responseStatus_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getResponseStatus()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest 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.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.StreamingOutputCallRequest} + * + *
+     * Server-streaming request.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallRequest) + io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.class, io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getResponseParametersFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + responseType_ = 0; + + if (responseParametersBuilder_ == null) { + responseParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + responseParametersBuilder_.clear(); + } + if (payloadBuilder_ == null) { + payload_ = null; + } else { + payload_ = null; + payloadBuilder_ = null; + } + responseCompression_ = 0; + + if (responseStatusBuilder_ == null) { + responseStatus_ = null; + } else { + responseStatus_ = null; + responseStatusBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest build() { + io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest buildPartial() { + io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest result = new io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.responseType_ = responseType_; + if (responseParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.responseParameters_ = responseParameters_; + } else { + result.responseParameters_ = responseParametersBuilder_.build(); + } + if (payloadBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = payloadBuilder_.build(); + } + result.responseCompression_ = responseCompression_; + if (responseStatusBuilder_ == null) { + result.responseStatus_ = responseStatus_; + } else { + result.responseStatus_ = responseStatusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest other) { + if (other == io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest.getDefaultInstance()) return this; + if (other.responseType_ != 0) { + setResponseTypeValue(other.getResponseTypeValue()); + } + if (responseParametersBuilder_ == null) { + if (!other.responseParameters_.isEmpty()) { + if (responseParameters_.isEmpty()) { + responseParameters_ = other.responseParameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResponseParametersIsMutable(); + responseParameters_.addAll(other.responseParameters_); + } + onChanged(); + } + } else { + if (!other.responseParameters_.isEmpty()) { + if (responseParametersBuilder_.isEmpty()) { + responseParametersBuilder_.dispose(); + responseParametersBuilder_ = null; + responseParameters_ = other.responseParameters_; + bitField0_ = (bitField0_ & ~0x00000002); + responseParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getResponseParametersFieldBuilder() : null; + } else { + responseParametersBuilder_.addAllMessages(other.responseParameters_); + } + } + } + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + if (other.responseCompression_ != 0) { + setResponseCompressionValue(other.getResponseCompressionValue()); + } + if (other.hasResponseStatus()) { + mergeResponseStatus(other.getResponseStatus()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int responseType_ = 0; + /** + * optional .grpc.testing.PayloadType response_type = 1; + * + *
+       * Desired payload type in the response from the server.
+       * If response_type is RANDOM, the payload from each response in the stream
+       * might be of different types. This is to simulate a mixed type of payload
+       * stream.
+       * 
+ */ + 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 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, 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.benchmarks.proto.Messages.PayloadType getResponseType() { + io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_); + return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.PayloadType response_type = 1; + * + *
+       * Desired payload type in the response from the server.
+       * If response_type is RANDOM, the payload from each response in the stream
+       * might be of different types. This is to simulate a mixed type of payload
+       * stream.
+       * 
+ */ + public Builder setResponseType(io.grpc.benchmarks.proto.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, the payload from each response in the stream
+       * might be of different types. This is to simulate a mixed type of payload
+       * stream.
+       * 
+ */ + public Builder clearResponseType() { + + responseType_ = 0; + onChanged(); + return this; + } + + private java.util.List responseParameters_ = + java.util.Collections.emptyList(); + private void ensureResponseParametersIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + responseParameters_ = new java.util.ArrayList(responseParameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder> responseParametersBuilder_; + + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public java.util.List getResponseParametersList() { + if (responseParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(responseParameters_); + } else { + return responseParametersBuilder_.getMessageList(); + } + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public int getResponseParametersCount() { + if (responseParametersBuilder_ == null) { + return responseParameters_.size(); + } else { + return responseParametersBuilder_.getCount(); + } + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParameters getResponseParameters(int index) { + if (responseParametersBuilder_ == null) { + return responseParameters_.get(index); + } else { + return responseParametersBuilder_.getMessage(index); + } + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder setResponseParameters( + int index, io.grpc.benchmarks.proto.Messages.ResponseParameters value) { + if (responseParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseParametersIsMutable(); + responseParameters_.set(index, value); + onChanged(); + } else { + responseParametersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder setResponseParameters( + int index, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder builderForValue) { + if (responseParametersBuilder_ == null) { + ensureResponseParametersIsMutable(); + responseParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + responseParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder addResponseParameters(io.grpc.benchmarks.proto.Messages.ResponseParameters value) { + if (responseParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseParametersIsMutable(); + responseParameters_.add(value); + onChanged(); + } else { + responseParametersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder addResponseParameters( + int index, io.grpc.benchmarks.proto.Messages.ResponseParameters value) { + if (responseParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseParametersIsMutable(); + responseParameters_.add(index, value); + onChanged(); + } else { + responseParametersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder addResponseParameters( + io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder builderForValue) { + if (responseParametersBuilder_ == null) { + ensureResponseParametersIsMutable(); + responseParameters_.add(builderForValue.build()); + onChanged(); + } else { + responseParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder addResponseParameters( + int index, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder builderForValue) { + if (responseParametersBuilder_ == null) { + ensureResponseParametersIsMutable(); + responseParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + responseParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder addAllResponseParameters( + java.lang.Iterable values) { + if (responseParametersBuilder_ == null) { + ensureResponseParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responseParameters_); + onChanged(); + } else { + responseParametersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder clearResponseParameters() { + if (responseParametersBuilder_ == null) { + responseParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + responseParametersBuilder_.clear(); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public Builder removeResponseParameters(int index) { + if (responseParametersBuilder_ == null) { + ensureResponseParametersIsMutable(); + responseParameters_.remove(index); + onChanged(); + } else { + responseParametersBuilder_.remove(index); + } + return this; + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder getResponseParametersBuilder( + int index) { + return getResponseParametersFieldBuilder().getBuilder(index); + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( + int index) { + if (responseParametersBuilder_ == null) { + return responseParameters_.get(index); } else { + return responseParametersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public java.util.List + getResponseParametersOrBuilderList() { + if (responseParametersBuilder_ != null) { + return responseParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responseParameters_); + } + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder addResponseParametersBuilder() { + return getResponseParametersFieldBuilder().addBuilder( + io.grpc.benchmarks.proto.Messages.ResponseParameters.getDefaultInstance()); + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder addResponseParametersBuilder( + int index) { + return getResponseParametersFieldBuilder().addBuilder( + index, io.grpc.benchmarks.proto.Messages.ResponseParameters.getDefaultInstance()); + } + /** + * repeated .grpc.testing.ResponseParameters response_parameters = 2; + * + *
+       * Configuration for each expected response message.
+       * 
+ */ + public java.util.List + getResponseParametersBuilderList() { + return getResponseParametersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder> + getResponseParametersFieldBuilder() { + if (responseParametersBuilder_ == null) { + responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder>( + responseParameters_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + responseParameters_ = null; + } + return responseParametersBuilder_; + } + + private io.grpc.benchmarks.proto.Messages.Payload payload_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+       * Optional input payload sent along with the request.
+       * 
+ */ + 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.benchmarks.proto.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.benchmarks.proto.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.benchmarks.proto.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.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + } + /** + * optional .grpc.testing.Payload payload = 3; + * + *
+       * Optional input payload sent along with the request.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); + payload_ = null; + } + return payloadBuilder_; + } + + private int responseCompression_ = 0; + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public int getResponseCompressionValue() { + return responseCompression_; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public Builder setResponseCompressionValue(int value) { + responseCompression_ = value; + onChanged(); + return this; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() { + io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_); + return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public Builder setResponseCompression(io.grpc.benchmarks.proto.Messages.CompressionType value) { + if (value == null) { + throw new NullPointerException(); + } + + responseCompression_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .grpc.testing.CompressionType response_compression = 6; + * + *
+       * Compression algorithm to be used by the server for the response (stream)
+       * 
+ */ + public Builder clearResponseCompression() { + + responseCompression_ = 0; + onChanged(); + return this; + } + + private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> responseStatusBuilder_; + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public boolean hasResponseStatus() { + return responseStatusBuilder_ != null || responseStatus_ != null; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatus getResponseStatus() { + if (responseStatusBuilder_ == null) { + return responseStatus_ == null ? io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; + } else { + return responseStatusBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder setResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { + if (responseStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseStatus_ = value; + onChanged(); + } else { + responseStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder setResponseStatus( + io.grpc.benchmarks.proto.Messages.EchoStatus.Builder builderForValue) { + if (responseStatusBuilder_ == null) { + responseStatus_ = builderForValue.build(); + onChanged(); + } else { + responseStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder mergeResponseStatus(io.grpc.benchmarks.proto.Messages.EchoStatus value) { + if (responseStatusBuilder_ == null) { + if (responseStatus_ != null) { + responseStatus_ = + io.grpc.benchmarks.proto.Messages.EchoStatus.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); + } else { + responseStatus_ = value; + } + onChanged(); + } else { + responseStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public Builder clearResponseStatus() { + if (responseStatusBuilder_ == null) { + responseStatus_ = null; + onChanged(); + } else { + responseStatus_ = null; + responseStatusBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatus.Builder getResponseStatusBuilder() { + + onChanged(); + return getResponseStatusFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { + if (responseStatusBuilder_ != null) { + return responseStatusBuilder_.getMessageOrBuilder(); + } else { + return responseStatus_ == null ? + io.grpc.benchmarks.proto.Messages.EchoStatus.getDefaultInstance() : responseStatus_; + } + } + /** + * optional .grpc.testing.EchoStatus response_status = 7; + * + *
+       * Whether server should return a given status
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> + getResponseStatusFieldBuilder() { + if (responseStatusBuilder_ == null) { + responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder>( + getResponseStatus(), + getParentForChildren(), + isClean()); + responseStatus_ = null; + } + return responseStatusBuilder_; + } + 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.StreamingOutputCallRequest) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallRequest) + private static final io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest(); + } + + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StreamingOutputCallRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new StreamingOutputCallRequest(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StreamingOutputCallResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingOutputCallResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase response size.
+     * 
+ */ + boolean hasPayload(); + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase response size.
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.Payload getPayload(); + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase response size.
+     * 
+ */ + io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder(); + } + /** + * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} + * + *
+   * Server-streaming response, as configured by the request and parameters.
+   * 
+ */ + public static final class StreamingOutputCallResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallResponse) + StreamingOutputCallResponseOrBuilder { + // Use StreamingOutputCallResponse.newBuilder() to construct. + private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StreamingOutputCallResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private StreamingOutputCallResponse( + 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.benchmarks.proto.Messages.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = input.readMessage(io.grpc.benchmarks.proto.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.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.class, io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.Builder.class); + } + + public static final int PAYLOAD_FIELD_NUMBER = 1; + private io.grpc.benchmarks.proto.Messages.Payload payload_; + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase response size.
+     * 
+ */ + public boolean hasPayload() { + return payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase response size.
+     * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+     * Payload to increase response size.
+     * 
+ */ + public io.grpc.benchmarks.proto.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()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payload_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPayload()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse 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.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.StreamingOutputCallResponse} + * + *
+     * Server-streaming response, as configured by the request and parameters.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallResponse) + io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.class, io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (payloadBuilder_ == null) { + payload_ = null; + } else { + payload_ = null; + payloadBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse build() { + io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse buildPartial() { + io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse result = new io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse(this); + if (payloadBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = payloadBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse other) { + if (other == io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse.getDefaultInstance()) return this; + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.grpc.benchmarks.proto.Messages.Payload payload_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_; + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase response size.
+       * 
+ */ + public boolean hasPayload() { + return payloadBuilder_ != null || payload_ != null; + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase response size.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase response size.
+       * 
+ */ + public Builder setPayload(io.grpc.benchmarks.proto.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 response size.
+       * 
+ */ + public Builder setPayload( + io.grpc.benchmarks.proto.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 response size.
+       * 
+ */ + public Builder mergePayload(io.grpc.benchmarks.proto.Messages.Payload value) { + if (payloadBuilder_ == null) { + if (payload_ != null) { + payload_ = + io.grpc.benchmarks.proto.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 response 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 response size.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.Payload.Builder getPayloadBuilder() { + + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase response size.
+       * 
+ */ + public io.grpc.benchmarks.proto.Messages.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? + io.grpc.benchmarks.proto.Messages.Payload.getDefaultInstance() : payload_; + } + } + /** + * optional .grpc.testing.Payload payload = 1; + * + *
+       * Payload to increase response size.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.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.StreamingOutputCallResponse) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallResponse) + private static final io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse(); + } + + public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StreamingOutputCallResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new StreamingOutputCallResponse(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReconnectInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ReconnectInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bool passed = 1; + */ + boolean getPassed(); + + /** + * repeated int32 backoff_ms = 2; + */ + java.util.List getBackoffMsList(); + /** + * repeated int32 backoff_ms = 2; + */ + int getBackoffMsCount(); + /** + * repeated int32 backoff_ms = 2; + */ + int getBackoffMs(int index); + } + /** + * Protobuf type {@code grpc.testing.ReconnectInfo} + * + *
+   * For reconnect interop test only.
+   * Server tells client whether its reconnects are following the spec and the
+   * reconnect backoffs it saw.
+   * 
+ */ + public static final class ReconnectInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ReconnectInfo) + ReconnectInfoOrBuilder { + // Use ReconnectInfo.newBuilder() to construct. + private ReconnectInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ReconnectInfo() { + passed_ = false; + backoffMs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ReconnectInfo( + 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: { + + passed_ = input.readBool(); + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + backoffMs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + backoffMs_.add(input.readInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + backoffMs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + backoffMs_.add(input.readInt32()); + } + input.popLimit(limit); + 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_ & 0x00000002) == 0x00000002)) { + backoffMs_ = java.util.Collections.unmodifiableList(backoffMs_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.ReconnectInfo.class, io.grpc.benchmarks.proto.Messages.ReconnectInfo.Builder.class); + } + + private int bitField0_; + public static final int PASSED_FIELD_NUMBER = 1; + private boolean passed_; + /** + * optional bool passed = 1; + */ + public boolean getPassed() { + return passed_; + } + + public static final int BACKOFF_MS_FIELD_NUMBER = 2; + private java.util.List backoffMs_; + /** + * repeated int32 backoff_ms = 2; + */ + public java.util.List + getBackoffMsList() { + return backoffMs_; + } + /** + * repeated int32 backoff_ms = 2; + */ + public int getBackoffMsCount() { + return backoffMs_.size(); + } + /** + * repeated int32 backoff_ms = 2; + */ + public int getBackoffMs(int index) { + return backoffMs_.get(index); + } + private int backoffMsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (passed_ != false) { + output.writeBool(1, passed_); + } + if (getBackoffMsList().size() > 0) { + output.writeRawVarint32(18); + output.writeRawVarint32(backoffMsMemoizedSerializedSize); + } + for (int i = 0; i < backoffMs_.size(); i++) { + output.writeInt32NoTag(backoffMs_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (passed_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, passed_); + } + { + int dataSize = 0; + for (int i = 0; i < backoffMs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(backoffMs_.get(i)); + } + size += dataSize; + if (!getBackoffMsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + backoffMsMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo 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.benchmarks.proto.Messages.ReconnectInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Messages.ReconnectInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.ReconnectInfo} + * + *
+     * For reconnect interop test only.
+     * Server tells client whether its reconnects are following the spec and the
+     * reconnect backoffs it saw.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectInfo) + io.grpc.benchmarks.proto.Messages.ReconnectInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Messages.ReconnectInfo.class, io.grpc.benchmarks.proto.Messages.ReconnectInfo.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Messages.ReconnectInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + passed_ = false; + + backoffMs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; + } + + public io.grpc.benchmarks.proto.Messages.ReconnectInfo getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Messages.ReconnectInfo.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Messages.ReconnectInfo build() { + io.grpc.benchmarks.proto.Messages.ReconnectInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Messages.ReconnectInfo buildPartial() { + io.grpc.benchmarks.proto.Messages.ReconnectInfo result = new io.grpc.benchmarks.proto.Messages.ReconnectInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.passed_ = passed_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + backoffMs_ = java.util.Collections.unmodifiableList(backoffMs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.backoffMs_ = backoffMs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Messages.ReconnectInfo) { + return mergeFrom((io.grpc.benchmarks.proto.Messages.ReconnectInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Messages.ReconnectInfo other) { + if (other == io.grpc.benchmarks.proto.Messages.ReconnectInfo.getDefaultInstance()) return this; + if (other.getPassed() != false) { + setPassed(other.getPassed()); + } + if (!other.backoffMs_.isEmpty()) { + if (backoffMs_.isEmpty()) { + backoffMs_ = other.backoffMs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBackoffMsIsMutable(); + backoffMs_.addAll(other.backoffMs_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Messages.ReconnectInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Messages.ReconnectInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean passed_ ; + /** + * optional bool passed = 1; + */ + public boolean getPassed() { + return passed_; + } + /** + * optional bool passed = 1; + */ + public Builder setPassed(boolean value) { + + passed_ = value; + onChanged(); + return this; + } + /** + * optional bool passed = 1; + */ + public Builder clearPassed() { + + passed_ = false; + onChanged(); + return this; + } + + private java.util.List backoffMs_ = java.util.Collections.emptyList(); + private void ensureBackoffMsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + backoffMs_ = new java.util.ArrayList(backoffMs_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated int32 backoff_ms = 2; + */ + public java.util.List + getBackoffMsList() { + return java.util.Collections.unmodifiableList(backoffMs_); + } + /** + * repeated int32 backoff_ms = 2; + */ + public int getBackoffMsCount() { + return backoffMs_.size(); + } + /** + * repeated int32 backoff_ms = 2; + */ + public int getBackoffMs(int index) { + return backoffMs_.get(index); + } + /** + * repeated int32 backoff_ms = 2; + */ + public Builder setBackoffMs( + int index, int value) { + ensureBackoffMsIsMutable(); + backoffMs_.set(index, value); + onChanged(); + return this; + } + /** + * repeated int32 backoff_ms = 2; + */ + public Builder addBackoffMs(int value) { + ensureBackoffMsIsMutable(); + backoffMs_.add(value); + onChanged(); + return this; + } + /** + * repeated int32 backoff_ms = 2; + */ + public Builder addAllBackoffMs( + java.lang.Iterable values) { + ensureBackoffMsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, backoffMs_); + onChanged(); + return this; + } + /** + * repeated int32 backoff_ms = 2; + */ + public Builder clearBackoffMs() { + backoffMs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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.ReconnectInfo) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ReconnectInfo) + private static final io.grpc.benchmarks.proto.Messages.ReconnectInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Messages.ReconnectInfo(); + } + + public static io.grpc.benchmarks.proto.Messages.ReconnectInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ReconnectInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ReconnectInfo(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Messages.ReconnectInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static 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 com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_EchoStatus_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_EchoStatus_fieldAccessorTable; + private static 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 com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_SimpleResponse_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_SimpleResponse_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_StreamingInputCallRequest_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_StreamingInputCallResponse_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ResponseParameters_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ResponseParameters_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ReconnectInfo_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ReconnectInfo_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\016messages.proto\022\014grpc.testing\"@\n\007Payloa" + + "d\022\'\n\004type\030\001 \001(\0162\031.grpc.testing.PayloadTy" + + "pe\022\014\n\004body\030\002 \001(\014\"+\n\nEchoStatus\022\014\n\004code\030\001" + + " \001(\005\022\017\n\007message\030\002 \001(\t\"\241\002\n\rSimpleRequest\022" + + "0\n\rresponse_type\030\001 \001(\0162\031.grpc.testing.Pa" + + "yloadType\022\025\n\rresponse_size\030\002 \001(\005\022&\n\007payl" + + "oad\030\003 \001(\0132\025.grpc.testing.Payload\022\025\n\rfill" + + "_username\030\004 \001(\010\022\030\n\020fill_oauth_scope\030\005 \001(" + + "\010\022;\n\024response_compression\030\006 \001(\0162\035.grpc.t" + + "esting.CompressionType\0221\n\017response_statu", + "s\030\007 \001(\0132\030.grpc.testing.EchoStatus\"_\n\016Sim" + + "pleResponse\022&\n\007payload\030\001 \001(\0132\025.grpc.test" + + "ing.Payload\022\020\n\010username\030\002 \001(\t\022\023\n\013oauth_s" + + "cope\030\003 \001(\t\"C\n\031StreamingInputCallRequest\022" + + "&\n\007payload\030\001 \001(\0132\025.grpc.testing.Payload\"" + + "=\n\032StreamingInputCallResponse\022\037\n\027aggrega" + + "ted_payload_size\030\001 \001(\005\"7\n\022ResponseParame" + + "ters\022\014\n\004size\030\001 \001(\005\022\023\n\013interval_us\030\002 \001(\005\"" + + "\245\002\n\032StreamingOutputCallRequest\0220\n\rrespon" + + "se_type\030\001 \001(\0162\031.grpc.testing.PayloadType", + "\022=\n\023response_parameters\030\002 \003(\0132 .grpc.tes" + + "ting.ResponseParameters\022&\n\007payload\030\003 \001(\013" + + "2\025.grpc.testing.Payload\022;\n\024response_comp" + + "ression\030\006 \001(\0162\035.grpc.testing.Compression" + + "Type\0221\n\017response_status\030\007 \001(\0132\030.grpc.tes" + + "ting.EchoStatus\"E\n\033StreamingOutputCallRe" + + "sponse\022&\n\007payload\030\001 \001(\0132\025.grpc.testing.P" + + "ayload\"3\n\rReconnectInfo\022\016\n\006passed\030\001 \001(\010\022" + + "\022\n\nbackoff_ms\030\002 \003(\005*?\n\013PayloadType\022\020\n\014CO" + + "MPRESSABLE\020\000\022\022\n\016UNCOMPRESSABLE\020\001\022\n\n\006RAND", + "OM\020\002*2\n\017CompressionType\022\010\n\004NONE\020\000\022\010\n\004GZI" + + "P\020\001\022\013\n\007DEFLATE\020\002B$\n\030io.grpc.benchmarks.p" + + "rotoB\010Messagesb\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_grpc_testing_Payload_descriptor = + getDescriptor().getMessageTypes().get(0); + 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_EchoStatus_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_grpc_testing_EchoStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_EchoStatus_descriptor, + new java.lang.String[] { "Code", "Message", }); + internal_static_grpc_testing_SimpleRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + 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", "FillUsername", "FillOauthScope", "ResponseCompression", "ResponseStatus", }); + internal_static_grpc_testing_SimpleResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_grpc_testing_SimpleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_SimpleResponse_descriptor, + new java.lang.String[] { "Payload", "Username", "OauthScope", }); + internal_static_grpc_testing_StreamingInputCallRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_StreamingInputCallRequest_descriptor, + new java.lang.String[] { "Payload", }); + internal_static_grpc_testing_StreamingInputCallResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_StreamingInputCallResponse_descriptor, + new java.lang.String[] { "AggregatedPayloadSize", }); + internal_static_grpc_testing_ResponseParameters_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_grpc_testing_ResponseParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ResponseParameters_descriptor, + new java.lang.String[] { "Size", "IntervalUs", }); + internal_static_grpc_testing_StreamingOutputCallRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_StreamingOutputCallRequest_descriptor, + new java.lang.String[] { "ResponseType", "ResponseParameters", "Payload", "ResponseCompression", "ResponseStatus", }); + internal_static_grpc_testing_StreamingOutputCallResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_StreamingOutputCallResponse_descriptor, + new java.lang.String[] { "Payload", }); + internal_static_grpc_testing_ReconnectInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ReconnectInfo_descriptor, + new java.lang.String[] { "Passed", "BackoffMs", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java new file mode 100644 index 0000000000..87deeb41b8 --- /dev/null +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java @@ -0,0 +1,2231 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: payloads.proto + +package io.grpc.benchmarks.proto; + +public final class Payloads { + private Payloads() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + public interface ByteBufferParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ByteBufferParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int32 req_size = 1; + */ + int getReqSize(); + + /** + * optional int32 resp_size = 2; + */ + int getRespSize(); + } + /** + * Protobuf type {@code grpc.testing.ByteBufferParams} + */ + public static final class ByteBufferParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ByteBufferParams) + ByteBufferParamsOrBuilder { + // Use ByteBufferParams.newBuilder() to construct. + private ByteBufferParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ByteBufferParams() { + reqSize_ = 0; + respSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ByteBufferParams( + 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: { + + reqSize_ = input.readInt32(); + break; + } + case 16: { + + respSize_ = 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.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.ByteBufferParams.class, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder.class); + } + + public static final int REQ_SIZE_FIELD_NUMBER = 1; + private int reqSize_; + /** + * optional int32 req_size = 1; + */ + public int getReqSize() { + return reqSize_; + } + + public static final int RESP_SIZE_FIELD_NUMBER = 2; + private int respSize_; + /** + * optional int32 resp_size = 2; + */ + public int getRespSize() { + return respSize_; + } + + 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 (reqSize_ != 0) { + output.writeInt32(1, reqSize_); + } + if (respSize_ != 0) { + output.writeInt32(2, respSize_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reqSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, reqSize_); + } + if (respSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, respSize_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams 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.benchmarks.proto.Payloads.ByteBufferParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Payloads.ByteBufferParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.ByteBufferParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ByteBufferParams) + io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.ByteBufferParams.class, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Payloads.ByteBufferParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + reqSize_ = 0; + + respSize_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_descriptor; + } + + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams build() { + io.grpc.benchmarks.proto.Payloads.ByteBufferParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams buildPartial() { + io.grpc.benchmarks.proto.Payloads.ByteBufferParams result = new io.grpc.benchmarks.proto.Payloads.ByteBufferParams(this); + result.reqSize_ = reqSize_; + result.respSize_ = respSize_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Payloads.ByteBufferParams) { + return mergeFrom((io.grpc.benchmarks.proto.Payloads.ByteBufferParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Payloads.ByteBufferParams other) { + if (other == io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance()) return this; + if (other.getReqSize() != 0) { + setReqSize(other.getReqSize()); + } + if (other.getRespSize() != 0) { + setRespSize(other.getRespSize()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Payloads.ByteBufferParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int reqSize_ ; + /** + * optional int32 req_size = 1; + */ + public int getReqSize() { + return reqSize_; + } + /** + * optional int32 req_size = 1; + */ + public Builder setReqSize(int value) { + + reqSize_ = value; + onChanged(); + return this; + } + /** + * optional int32 req_size = 1; + */ + public Builder clearReqSize() { + + reqSize_ = 0; + onChanged(); + return this; + } + + private int respSize_ ; + /** + * optional int32 resp_size = 2; + */ + public int getRespSize() { + return respSize_; + } + /** + * optional int32 resp_size = 2; + */ + public Builder setRespSize(int value) { + + respSize_ = value; + onChanged(); + return this; + } + /** + * optional int32 resp_size = 2; + */ + public Builder clearRespSize() { + + respSize_ = 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.ByteBufferParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ByteBufferParams) + private static final io.grpc.benchmarks.proto.Payloads.ByteBufferParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Payloads.ByteBufferParams(); + } + + public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ByteBufferParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ByteBufferParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SimpleProtoParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleProtoParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int32 req_size = 1; + */ + int getReqSize(); + + /** + * optional int32 resp_size = 2; + */ + int getRespSize(); + } + /** + * Protobuf type {@code grpc.testing.SimpleProtoParams} + */ + public static final class SimpleProtoParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.SimpleProtoParams) + SimpleProtoParamsOrBuilder { + // Use SimpleProtoParams.newBuilder() to construct. + private SimpleProtoParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SimpleProtoParams() { + reqSize_ = 0; + respSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SimpleProtoParams( + 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: { + + reqSize_ = input.readInt32(); + break; + } + case 16: { + + respSize_ = 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.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.class, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder.class); + } + + public static final int REQ_SIZE_FIELD_NUMBER = 1; + private int reqSize_; + /** + * optional int32 req_size = 1; + */ + public int getReqSize() { + return reqSize_; + } + + public static final int RESP_SIZE_FIELD_NUMBER = 2; + private int respSize_; + /** + * optional int32 resp_size = 2; + */ + public int getRespSize() { + return respSize_; + } + + 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 (reqSize_ != 0) { + output.writeInt32(1, reqSize_); + } + if (respSize_ != 0) { + output.writeInt32(2, respSize_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reqSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, reqSize_); + } + if (respSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, respSize_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams 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.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Payloads.SimpleProtoParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.SimpleProtoParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleProtoParams) + io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.class, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + reqSize_ = 0; + + respSize_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_descriptor; + } + + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams build() { + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams buildPartial() { + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams result = new io.grpc.benchmarks.proto.Payloads.SimpleProtoParams(this); + result.reqSize_ = reqSize_; + result.respSize_ = respSize_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) { + return mergeFrom((io.grpc.benchmarks.proto.Payloads.SimpleProtoParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Payloads.SimpleProtoParams other) { + if (other == io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance()) return this; + if (other.getReqSize() != 0) { + setReqSize(other.getReqSize()); + } + if (other.getRespSize() != 0) { + setRespSize(other.getRespSize()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int reqSize_ ; + /** + * optional int32 req_size = 1; + */ + public int getReqSize() { + return reqSize_; + } + /** + * optional int32 req_size = 1; + */ + public Builder setReqSize(int value) { + + reqSize_ = value; + onChanged(); + return this; + } + /** + * optional int32 req_size = 1; + */ + public Builder clearReqSize() { + + reqSize_ = 0; + onChanged(); + return this; + } + + private int respSize_ ; + /** + * optional int32 resp_size = 2; + */ + public int getRespSize() { + return respSize_; + } + /** + * optional int32 resp_size = 2; + */ + public Builder setRespSize(int value) { + + respSize_ = value; + onChanged(); + return this; + } + /** + * optional int32 resp_size = 2; + */ + public Builder clearRespSize() { + + respSize_ = 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.SimpleProtoParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.SimpleProtoParams) + private static final io.grpc.benchmarks.proto.Payloads.SimpleProtoParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Payloads.SimpleProtoParams(); + } + + public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SimpleProtoParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new SimpleProtoParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ComplexProtoParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ComplexProtoParams) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code grpc.testing.ComplexProtoParams} + * + *
+   * TODO (vpai): Fill this in once the details of complex, representative
+   *              protos are decided
+   * 
+ */ + public static final class ComplexProtoParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.ComplexProtoParams) + ComplexProtoParamsOrBuilder { + // Use ComplexProtoParams.newBuilder() to construct. + private ComplexProtoParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ComplexProtoParams() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ComplexProtoParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + 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; + } + } + } + } 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.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.class, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder.class); + } + + 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 { + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams 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.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Payloads.ComplexProtoParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.ComplexProtoParams} + * + *
+     * TODO (vpai): Fill this in once the details of complex, representative
+     *              protos are decided
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ComplexProtoParams) + io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.class, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_descriptor; + } + + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams build() { + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams buildPartial() { + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams result = new io.grpc.benchmarks.proto.Payloads.ComplexProtoParams(this); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) { + return mergeFrom((io.grpc.benchmarks.proto.Payloads.ComplexProtoParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Payloads.ComplexProtoParams other) { + if (other == io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance()) return this; + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.ComplexProtoParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ComplexProtoParams) + private static final io.grpc.benchmarks.proto.Payloads.ComplexProtoParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Payloads.ComplexProtoParams(); + } + + public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ComplexProtoParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ComplexProtoParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PayloadConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.PayloadConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + io.grpc.benchmarks.proto.Payloads.ByteBufferParams getBytebufParams(); + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder getBytebufParamsOrBuilder(); + + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams getSimpleParams(); + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder getSimpleParamsOrBuilder(); + + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams getComplexParams(); + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder getComplexParamsOrBuilder(); + + public io.grpc.benchmarks.proto.Payloads.PayloadConfig.PayloadCase getPayloadCase(); + } + /** + * Protobuf type {@code grpc.testing.PayloadConfig} + */ + public static final class PayloadConfig extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.PayloadConfig) + PayloadConfigOrBuilder { + // Use PayloadConfig.newBuilder() to construct. + private PayloadConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PayloadConfig() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PayloadConfig( + 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.benchmarks.proto.Payloads.ByteBufferParams.Builder subBuilder = null; + if (payloadCase_ == 1) { + subBuilder = ((io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_).toBuilder(); + } + payload_ = + input.readMessage(io.grpc.benchmarks.proto.Payloads.ByteBufferParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 1; + break; + } + case 18: { + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_).toBuilder(); + } + payload_ = + input.readMessage(io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 2; + break; + } + case 26: { + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder subBuilder = null; + if (payloadCase_ == 3) { + subBuilder = ((io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_).toBuilder(); + } + payload_ = + input.readMessage(io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 3; + 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.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.PayloadConfig.class, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder.class); + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + public enum PayloadCase + implements com.google.protobuf.Internal.EnumLite { + BYTEBUF_PARAMS(1), + SIMPLE_PARAMS(2), + COMPLEX_PARAMS(3), + PAYLOAD_NOT_SET(0); + private int value = 0; + private PayloadCase(int value) { + this.value = value; + } + public static PayloadCase valueOf(int value) { + switch (value) { + case 1: return BYTEBUF_PARAMS; + case 2: return SIMPLE_PARAMS; + case 3: return COMPLEX_PARAMS; + case 0: return PAYLOAD_NOT_SET; + default: throw new java.lang.IllegalArgumentException( + "Value is undefined for this oneof enum."); + } + } + public int getNumber() { + return this.value; + } + }; + + public PayloadCase + getPayloadCase() { + return PayloadCase.valueOf( + payloadCase_); + } + + public static final int BYTEBUF_PARAMS_FIELD_NUMBER = 1; + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams getBytebufParams() { + if (payloadCase_ == 1) { + return (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder getBytebufParamsOrBuilder() { + if (payloadCase_ == 1) { + return (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } + + public static final int SIMPLE_PARAMS_FIELD_NUMBER = 2; + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams getSimpleParams() { + if (payloadCase_ == 2) { + return (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder getSimpleParamsOrBuilder() { + if (payloadCase_ == 2) { + return (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } + + public static final int COMPLEX_PARAMS_FIELD_NUMBER = 3; + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams getComplexParams() { + if (payloadCase_ == 3) { + return (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder getComplexParamsOrBuilder() { + if (payloadCase_ == 3) { + return (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } + + 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 (payloadCase_ == 1) { + output.writeMessage(1, (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_); + } + if (payloadCase_ == 3) { + output.writeMessage(3, (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_); + } + if (payloadCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_); + } + if (payloadCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig 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.benchmarks.proto.Payloads.PayloadConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Payloads.PayloadConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.PayloadConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.PayloadConfig) + io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Payloads.PayloadConfig.class, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Payloads.PayloadConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + payloadCase_ = 0; + payload_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_descriptor; + } + + public io.grpc.benchmarks.proto.Payloads.PayloadConfig getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Payloads.PayloadConfig build() { + io.grpc.benchmarks.proto.Payloads.PayloadConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Payloads.PayloadConfig buildPartial() { + io.grpc.benchmarks.proto.Payloads.PayloadConfig result = new io.grpc.benchmarks.proto.Payloads.PayloadConfig(this); + if (payloadCase_ == 1) { + if (bytebufParamsBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = bytebufParamsBuilder_.build(); + } + } + if (payloadCase_ == 2) { + if (simpleParamsBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = simpleParamsBuilder_.build(); + } + } + if (payloadCase_ == 3) { + if (complexParamsBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = complexParamsBuilder_.build(); + } + } + result.payloadCase_ = payloadCase_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Payloads.PayloadConfig) { + return mergeFrom((io.grpc.benchmarks.proto.Payloads.PayloadConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Payloads.PayloadConfig other) { + if (other == io.grpc.benchmarks.proto.Payloads.PayloadConfig.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case BYTEBUF_PARAMS: { + mergeBytebufParams(other.getBytebufParams()); + break; + } + case SIMPLE_PARAMS: { + mergeSimpleParams(other.getSimpleParams()); + break; + } + case COMPLEX_PARAMS: { + mergeComplexParams(other.getComplexParams()); + break; + } + case PAYLOAD_NOT_SET: { + break; + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Payloads.PayloadConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Payloads.PayloadConfig) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int payloadCase_ = 0; + private java.lang.Object payload_; + public PayloadCase + getPayloadCase() { + return PayloadCase.valueOf( + payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.ByteBufferParams, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder, io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder> bytebufParamsBuilder_; + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams getBytebufParams() { + if (bytebufParamsBuilder_ == null) { + if (payloadCase_ == 1) { + return (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return bytebufParamsBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public Builder setBytebufParams(io.grpc.benchmarks.proto.Payloads.ByteBufferParams value) { + if (bytebufParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + bytebufParamsBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public Builder setBytebufParams( + io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder builderForValue) { + if (bytebufParamsBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + bytebufParamsBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public Builder mergeBytebufParams(io.grpc.benchmarks.proto.Payloads.ByteBufferParams value) { + if (bytebufParamsBuilder_ == null) { + if (payloadCase_ == 1 && + payload_ != io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance()) { + payload_ = io.grpc.benchmarks.proto.Payloads.ByteBufferParams.newBuilder((io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_) + .mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + bytebufParamsBuilder_.mergeFrom(value); + } + bytebufParamsBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public Builder clearBytebufParams() { + if (bytebufParamsBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + bytebufParamsBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder getBytebufParamsBuilder() { + return getBytebufParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + public io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder getBytebufParamsOrBuilder() { + if ((payloadCase_ == 1) && (bytebufParamsBuilder_ != null)) { + return bytebufParamsBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ByteBufferParams bytebuf_params = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.ByteBufferParams, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder, io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder> + getBytebufParamsFieldBuilder() { + if (bytebufParamsBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance(); + } + bytebufParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.ByteBufferParams, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder, io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder>( + (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged();; + return bytebufParamsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder> simpleParamsBuilder_; + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams getSimpleParams() { + if (simpleParamsBuilder_ == null) { + if (payloadCase_ == 2) { + return (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return simpleParamsBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public Builder setSimpleParams(io.grpc.benchmarks.proto.Payloads.SimpleProtoParams value) { + if (simpleParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + simpleParamsBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public Builder setSimpleParams( + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder builderForValue) { + if (simpleParamsBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + simpleParamsBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public Builder mergeSimpleParams(io.grpc.benchmarks.proto.Payloads.SimpleProtoParams value) { + if (simpleParamsBuilder_ == null) { + if (payloadCase_ == 2 && + payload_ != io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance()) { + payload_ = io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.newBuilder((io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_) + .mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + simpleParamsBuilder_.mergeFrom(value); + } + simpleParamsBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public Builder clearSimpleParams() { + if (simpleParamsBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + simpleParamsBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder getSimpleParamsBuilder() { + return getSimpleParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + public io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder getSimpleParamsOrBuilder() { + if ((payloadCase_ == 2) && (simpleParamsBuilder_ != null)) { + return simpleParamsBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.SimpleProtoParams simple_params = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder> + getSimpleParamsFieldBuilder() { + if (simpleParamsBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance(); + } + simpleParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.SimpleProtoParams, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder>( + (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged();; + return simpleParamsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder> complexParamsBuilder_; + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams getComplexParams() { + if (complexParamsBuilder_ == null) { + if (payloadCase_ == 3) { + return (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } else { + if (payloadCase_ == 3) { + return complexParamsBuilder_.getMessage(); + } + return io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public Builder setComplexParams(io.grpc.benchmarks.proto.Payloads.ComplexProtoParams value) { + if (complexParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + complexParamsBuilder_.setMessage(value); + } + payloadCase_ = 3; + return this; + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public Builder setComplexParams( + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder builderForValue) { + if (complexParamsBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + complexParamsBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 3; + return this; + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public Builder mergeComplexParams(io.grpc.benchmarks.proto.Payloads.ComplexProtoParams value) { + if (complexParamsBuilder_ == null) { + if (payloadCase_ == 3 && + payload_ != io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance()) { + payload_ = io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.newBuilder((io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_) + .mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 3) { + complexParamsBuilder_.mergeFrom(value); + } + complexParamsBuilder_.setMessage(value); + } + payloadCase_ = 3; + return this; + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public Builder clearComplexParams() { + if (complexParamsBuilder_ == null) { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + } + complexParamsBuilder_.clear(); + } + return this; + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder getComplexParamsBuilder() { + return getComplexParamsFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + public io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder getComplexParamsOrBuilder() { + if ((payloadCase_ == 3) && (complexParamsBuilder_ != null)) { + return complexParamsBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 3) { + return (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_; + } + return io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } + } + /** + * optional .grpc.testing.ComplexProtoParams complex_params = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder> + getComplexParamsFieldBuilder() { + if (complexParamsBuilder_ == null) { + if (!(payloadCase_ == 3)) { + payload_ = io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance(); + } + complexParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Payloads.ComplexProtoParams, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder>( + (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 3; + onChanged();; + return complexParamsBuilder_; + } + 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.PayloadConfig) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.PayloadConfig) + private static final io.grpc.benchmarks.proto.Payloads.PayloadConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Payloads.PayloadConfig(); + } + + public static io.grpc.benchmarks.proto.Payloads.PayloadConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PayloadConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new PayloadConfig(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Payloads.PayloadConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ByteBufferParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_SimpleProtoParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ComplexProtoParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_PayloadConfig_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_PayloadConfig_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\016payloads.proto\022\014grpc.testing\"7\n\020ByteBu" + + "fferParams\022\020\n\010req_size\030\001 \001(\005\022\021\n\tresp_siz" + + "e\030\002 \001(\005\"8\n\021SimpleProtoParams\022\020\n\010req_size" + + "\030\001 \001(\005\022\021\n\tresp_size\030\002 \001(\005\"\024\n\022ComplexProt" + + "oParams\"\312\001\n\rPayloadConfig\0228\n\016bytebuf_par" + + "ams\030\001 \001(\0132\036.grpc.testing.ByteBufferParam" + + "sH\000\0228\n\rsimple_params\030\002 \001(\0132\037.grpc.testin" + + "g.SimpleProtoParamsH\000\022:\n\016complex_params\030" + + "\003 \001(\0132 .grpc.testing.ComplexProtoParamsH" + + "\000B\t\n\007payloadB$\n\030io.grpc.benchmarks.proto", + "B\010Payloadsb\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_grpc_testing_ByteBufferParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ByteBufferParams_descriptor, + new java.lang.String[] { "ReqSize", "RespSize", }); + internal_static_grpc_testing_SimpleProtoParams_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_SimpleProtoParams_descriptor, + new java.lang.String[] { "ReqSize", "RespSize", }); + internal_static_grpc_testing_ComplexProtoParams_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_ComplexProtoParams_descriptor, + new java.lang.String[] { }); + internal_static_grpc_testing_PayloadConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_grpc_testing_PayloadConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_PayloadConfig_descriptor, + new java.lang.String[] { "BytebufParams", "SimpleParams", "ComplexParams", "Payload", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java new file mode 100644 index 0000000000..8a9298a98b --- /dev/null +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: services.proto + +package io.grpc.benchmarks.proto; + +public final class Services { + private Services() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\016services.proto\022\014grpc.testing\032\016messages" + + ".proto\032\rcontrol.proto2\252\001\n\020BenchmarkServi" + + "ce\022F\n\tUnaryCall\022\033.grpc.testing.SimpleReq" + + "uest\032\034.grpc.testing.SimpleResponse\022N\n\rSt" + + "reamingCall\022\033.grpc.testing.SimpleRequest" + + "\032\034.grpc.testing.SimpleResponse(\0010\0012\227\002\n\rW" + + "orkerService\022E\n\tRunServer\022\030.grpc.testing" + + ".ServerArgs\032\032.grpc.testing.ServerStatus(" + + "\0010\001\022E\n\tRunClient\022\030.grpc.testing.ClientAr" + + "gs\032\032.grpc.testing.ClientStatus(\0010\001\022B\n\tCo", + "reCount\022\031.grpc.testing.CoreRequest\032\032.grp" + + "c.testing.CoreResponse\0224\n\nQuitWorker\022\022.g" + + "rpc.testing.Void\032\022.grpc.testing.VoidB$\n\030" + + "io.grpc.benchmarks.protoB\010Servicesb\006prot" + + "o3" + }; + 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[] { + io.grpc.benchmarks.proto.Messages.getDescriptor(), + io.grpc.benchmarks.proto.Control.getDescriptor(), + }, assigner); + io.grpc.benchmarks.proto.Messages.getDescriptor(); + io.grpc.benchmarks.proto.Control.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java new file mode 100644 index 0000000000..98b7324e46 --- /dev/null +++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java @@ -0,0 +1,2680 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stats.proto + +package io.grpc.benchmarks.proto; + +public final class Stats { + private Stats() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + public interface ServerStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ServerStats) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double time_elapsed = 1; + * + *
+     * wall clock time change in seconds since last reset
+     * 
+ */ + double getTimeElapsed(); + + /** + * optional double time_user = 2; + * + *
+     * change in user time (in seconds) used by the server since last reset
+     * 
+ */ + double getTimeUser(); + + /** + * optional double time_system = 3; + * + *
+     * change in server time (in seconds) used by the server process and all
+     * threads since last reset
+     * 
+ */ + 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ServerStats( + 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 9: { + + timeElapsed_ = input.readDouble(); + break; + } + case 17: { + + timeUser_ = input.readDouble(); + break; + } + case 25: { + + 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.ServerStats.class, io.grpc.benchmarks.proto.Stats.ServerStats.Builder.class); + } + + public static final int TIME_ELAPSED_FIELD_NUMBER = 1; + private double timeElapsed_; + /** + * optional double time_elapsed = 1; + * + *
+     * wall clock time change in seconds since last reset
+     * 
+ */ + public double getTimeElapsed() { + return timeElapsed_; + } + + public static final int TIME_USER_FIELD_NUMBER = 2; + private double timeUser_; + /** + * optional double time_user = 2; + * + *
+     * change in user time (in seconds) used by the server since last reset
+     * 
+ */ + public double getTimeUser() { + return timeUser_; + } + + public static final int TIME_SYSTEM_FIELD_NUMBER = 3; + private double timeSystem_; + /** + * optional double time_system = 3; + * + *
+     * change in server time (in seconds) used by the server process and all
+     * threads since last reset
+     * 
+ */ + 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; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (timeElapsed_ != 0D) { + output.writeDouble(1, timeElapsed_); + } + if (timeUser_ != 0D) { + output.writeDouble(2, timeUser_); + } + if (timeSystem_ != 0D) { + output.writeDouble(3, timeSystem_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeElapsed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, timeElapsed_); + } + if (timeUser_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, timeUser_); + } + if (timeSystem_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, timeSystem_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats 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.benchmarks.proto.Stats.ServerStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.ServerStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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 implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ServerStats) + io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.ServerStats.class, io.grpc.benchmarks.proto.Stats.ServerStats.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Stats.ServerStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + timeElapsed_ = 0D; + + timeUser_ = 0D; + + timeSystem_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor; + } + + public io.grpc.benchmarks.proto.Stats.ServerStats getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Stats.ServerStats build() { + io.grpc.benchmarks.proto.Stats.ServerStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Stats.ServerStats buildPartial() { + io.grpc.benchmarks.proto.Stats.ServerStats result = new io.grpc.benchmarks.proto.Stats.ServerStats(this); + result.timeElapsed_ = timeElapsed_; + result.timeUser_ = timeUser_; + result.timeSystem_ = timeSystem_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Stats.ServerStats) { + return mergeFrom((io.grpc.benchmarks.proto.Stats.ServerStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.ServerStats other) { + if (other == io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance()) return this; + if (other.getTimeElapsed() != 0D) { + setTimeElapsed(other.getTimeElapsed()); + } + if (other.getTimeUser() != 0D) { + setTimeUser(other.getTimeUser()); + } + if (other.getTimeSystem() != 0D) { + setTimeSystem(other.getTimeSystem()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Stats.ServerStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Stats.ServerStats) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double timeElapsed_ ; + /** + * optional double time_elapsed = 1; + * + *
+       * wall clock time change in seconds since last reset
+       * 
+ */ + public double getTimeElapsed() { + return timeElapsed_; + } + /** + * optional double time_elapsed = 1; + * + *
+       * wall clock time change in seconds since last reset
+       * 
+ */ + public Builder setTimeElapsed(double value) { + + timeElapsed_ = value; + onChanged(); + return this; + } + /** + * optional double time_elapsed = 1; + * + *
+       * wall clock time change in seconds since last reset
+       * 
+ */ + public Builder clearTimeElapsed() { + + timeElapsed_ = 0D; + onChanged(); + return this; + } + + private double timeUser_ ; + /** + * optional double time_user = 2; + * + *
+       * change in user time (in seconds) used by the server since last reset
+       * 
+ */ + public double getTimeUser() { + return timeUser_; + } + /** + * optional double time_user = 2; + * + *
+       * change in user time (in seconds) used by the server since last reset
+       * 
+ */ + public Builder setTimeUser(double value) { + + timeUser_ = value; + onChanged(); + return this; + } + /** + * optional double time_user = 2; + * + *
+       * change in user time (in seconds) used by the server since last reset
+       * 
+ */ + public Builder clearTimeUser() { + + timeUser_ = 0D; + onChanged(); + return this; + } + + private double timeSystem_ ; + /** + * optional double time_system = 3; + * + *
+       * change in server time (in seconds) used by the server process and all
+       * threads since last reset
+       * 
+ */ + public double getTimeSystem() { + return timeSystem_; + } + /** + * optional double time_system = 3; + * + *
+       * change in server time (in seconds) used by the server process and all
+       * threads since last reset
+       * 
+ */ + public Builder setTimeSystem(double value) { + + timeSystem_ = value; + onChanged(); + return this; + } + /** + * optional double time_system = 3; + * + *
+       * change in server time (in seconds) used by the server process and all
+       * threads since last reset
+       * 
+ */ + public Builder clearTimeSystem() { + + timeSystem_ = 0D; + 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.ServerStats) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ServerStats) + private static final io.grpc.benchmarks.proto.Stats.ServerStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.ServerStats(); + } + + public static io.grpc.benchmarks.proto.Stats.ServerStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ServerStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ServerStats(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Stats.ServerStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HistogramParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.HistogramParams) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double resolution = 1; + * + *
+     * first bucket is [0, 1 + resolution)
+     * 
+ */ + double getResolution(); + + /** + * optional double max_possible = 2; + * + *
+     * use enough buckets to allow this value
+     * 
+ */ + double getMaxPossible(); + } + /** + * Protobuf type {@code grpc.testing.HistogramParams} + * + *
+   * Histogram params based on grpc/support/histogram.c
+   * 
+ */ + public static final class HistogramParams extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:grpc.testing.HistogramParams) + HistogramParamsOrBuilder { + // Use HistogramParams.newBuilder() to construct. + private HistogramParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private HistogramParams() { + resolution_ = 0D; + maxPossible_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private HistogramParams( + 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 9: { + + resolution_ = input.readDouble(); + break; + } + case 17: { + + maxPossible_ = 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.HistogramParams.class, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder.class); + } + + public static final int RESOLUTION_FIELD_NUMBER = 1; + private double resolution_; + /** + * optional double resolution = 1; + * + *
+     * first bucket is [0, 1 + resolution)
+     * 
+ */ + public double getResolution() { + return resolution_; + } + + public static final int MAX_POSSIBLE_FIELD_NUMBER = 2; + private double maxPossible_; + /** + * optional double max_possible = 2; + * + *
+     * use enough buckets to allow this value
+     * 
+ */ + public double getMaxPossible() { + return maxPossible_; + } + + 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 (resolution_ != 0D) { + output.writeDouble(1, resolution_); + } + if (maxPossible_ != 0D) { + output.writeDouble(2, maxPossible_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resolution_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, resolution_); + } + if (maxPossible_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, maxPossible_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams 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.benchmarks.proto.Stats.HistogramParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.HistogramParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.HistogramParams} + * + *
+     * Histogram params based on grpc/support/histogram.c
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.HistogramParams) + io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.HistogramParams.class, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Stats.HistogramParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + resolution_ = 0D; + + maxPossible_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor; + } + + public io.grpc.benchmarks.proto.Stats.HistogramParams getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Stats.HistogramParams build() { + io.grpc.benchmarks.proto.Stats.HistogramParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Stats.HistogramParams buildPartial() { + io.grpc.benchmarks.proto.Stats.HistogramParams result = new io.grpc.benchmarks.proto.Stats.HistogramParams(this); + result.resolution_ = resolution_; + result.maxPossible_ = maxPossible_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Stats.HistogramParams) { + return mergeFrom((io.grpc.benchmarks.proto.Stats.HistogramParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.HistogramParams other) { + if (other == io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance()) return this; + if (other.getResolution() != 0D) { + setResolution(other.getResolution()); + } + if (other.getMaxPossible() != 0D) { + setMaxPossible(other.getMaxPossible()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Stats.HistogramParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Stats.HistogramParams) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double resolution_ ; + /** + * optional double resolution = 1; + * + *
+       * first bucket is [0, 1 + resolution)
+       * 
+ */ + public double getResolution() { + return resolution_; + } + /** + * optional double resolution = 1; + * + *
+       * first bucket is [0, 1 + resolution)
+       * 
+ */ + public Builder setResolution(double value) { + + resolution_ = value; + onChanged(); + return this; + } + /** + * optional double resolution = 1; + * + *
+       * first bucket is [0, 1 + resolution)
+       * 
+ */ + public Builder clearResolution() { + + resolution_ = 0D; + onChanged(); + return this; + } + + private double maxPossible_ ; + /** + * optional double max_possible = 2; + * + *
+       * use enough buckets to allow this value
+       * 
+ */ + public double getMaxPossible() { + return maxPossible_; + } + /** + * optional double max_possible = 2; + * + *
+       * use enough buckets to allow this value
+       * 
+ */ + public Builder setMaxPossible(double value) { + + maxPossible_ = value; + onChanged(); + return this; + } + /** + * optional double max_possible = 2; + * + *
+       * use enough buckets to allow this value
+       * 
+ */ + public Builder clearMaxPossible() { + + maxPossible_ = 0D; + 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.HistogramParams) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.HistogramParams) + private static final io.grpc.benchmarks.proto.Stats.HistogramParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.HistogramParams(); + } + + public static io.grpc.benchmarks.proto.Stats.HistogramParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HistogramParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new HistogramParams(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Stats.HistogramParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HistogramDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.HistogramData) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint32 bucket = 1; + */ + java.util.List getBucketList(); + /** + * repeated uint32 bucket = 1; + */ + int getBucketCount(); + /** + * repeated uint32 bucket = 1; + */ + int getBucket(int index); + + /** + * optional double min_seen = 2; + */ + double getMinSeen(); + + /** + * optional double max_seen = 3; + */ + double getMaxSeen(); + + /** + * optional double sum = 4; + */ + double getSum(); + + /** + * optional double sum_of_squares = 5; + */ + double getSumOfSquares(); + + /** + * optional double count = 6; + */ + double getCount(); + } + /** + * Protobuf type {@code grpc.testing.HistogramData} + * + *
+   * Histogram data based on grpc/support/histogram.c
+   * 
+ */ + 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private HistogramData( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + bucket_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bucket_.add(input.readUInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + bucket_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + bucket_.add(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 17: { + + minSeen_ = input.readDouble(); + break; + } + case 25: { + + maxSeen_ = input.readDouble(); + break; + } + case 33: { + + sum_ = input.readDouble(); + break; + } + case 41: { + + sumOfSquares_ = input.readDouble(); + break; + } + case 49: { + + count_ = 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + bucket_ = java.util.Collections.unmodifiableList(bucket_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.HistogramData.class, io.grpc.benchmarks.proto.Stats.HistogramData.Builder.class); + } + + private int bitField0_; + public static final int BUCKET_FIELD_NUMBER = 1; + private java.util.List bucket_; + /** + * repeated uint32 bucket = 1; + */ + public java.util.List + getBucketList() { + return bucket_; + } + /** + * repeated uint32 bucket = 1; + */ + public int getBucketCount() { + return bucket_.size(); + } + /** + * repeated uint32 bucket = 1; + */ + public int getBucket(int index) { + return bucket_.get(index); + } + private int bucketMemoizedSerializedSize = -1; + + public static final int MIN_SEEN_FIELD_NUMBER = 2; + private double minSeen_; + /** + * optional double min_seen = 2; + */ + public double getMinSeen() { + return minSeen_; + } + + public static final int MAX_SEEN_FIELD_NUMBER = 3; + private double maxSeen_; + /** + * optional double max_seen = 3; + */ + public double getMaxSeen() { + return maxSeen_; + } + + public static final int SUM_FIELD_NUMBER = 4; + private double sum_; + /** + * optional double sum = 4; + */ + public double getSum() { + return sum_; + } + + public static final int SUM_OF_SQUARES_FIELD_NUMBER = 5; + private double sumOfSquares_; + /** + * optional double sum_of_squares = 5; + */ + public double getSumOfSquares() { + return sumOfSquares_; + } + + public static final int COUNT_FIELD_NUMBER = 6; + private double count_; + /** + * optional 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; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getBucketList().size() > 0) { + output.writeRawVarint32(10); + output.writeRawVarint32(bucketMemoizedSerializedSize); + } + for (int i = 0; i < bucket_.size(); i++) { + output.writeUInt32NoTag(bucket_.get(i)); + } + if (minSeen_ != 0D) { + output.writeDouble(2, minSeen_); + } + if (maxSeen_ != 0D) { + output.writeDouble(3, maxSeen_); + } + if (sum_ != 0D) { + output.writeDouble(4, sum_); + } + if (sumOfSquares_ != 0D) { + output.writeDouble(5, sumOfSquares_); + } + if (count_ != 0D) { + output.writeDouble(6, count_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + 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; + if (!getBucketList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + bucketMemoizedSerializedSize = dataSize; + } + if (minSeen_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minSeen_); + } + if (maxSeen_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, maxSeen_); + } + if (sum_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, sum_); + } + if (sumOfSquares_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, sumOfSquares_); + } + if (count_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, count_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData 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.benchmarks.proto.Stats.HistogramData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.HistogramData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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} + * + *
+     * Histogram data based on grpc/support/histogram.c
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.HistogramData) + io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.HistogramData.class, io.grpc.benchmarks.proto.Stats.HistogramData.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Stats.HistogramData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + bucket_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + minSeen_ = 0D; + + maxSeen_ = 0D; + + sum_ = 0D; + + sumOfSquares_ = 0D; + + count_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor; + } + + public io.grpc.benchmarks.proto.Stats.HistogramData getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Stats.HistogramData build() { + io.grpc.benchmarks.proto.Stats.HistogramData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Stats.HistogramData buildPartial() { + io.grpc.benchmarks.proto.Stats.HistogramData result = new io.grpc.benchmarks.proto.Stats.HistogramData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + bucket_ = java.util.Collections.unmodifiableList(bucket_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bucket_ = bucket_; + result.minSeen_ = minSeen_; + result.maxSeen_ = maxSeen_; + result.sum_ = sum_; + result.sumOfSquares_ = sumOfSquares_; + result.count_ = count_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Stats.HistogramData) { + return mergeFrom((io.grpc.benchmarks.proto.Stats.HistogramData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.HistogramData other) { + if (other == io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance()) return this; + if (!other.bucket_.isEmpty()) { + if (bucket_.isEmpty()) { + bucket_ = other.bucket_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBucketIsMutable(); + bucket_.addAll(other.bucket_); + } + onChanged(); + } + if (other.getMinSeen() != 0D) { + setMinSeen(other.getMinSeen()); + } + if (other.getMaxSeen() != 0D) { + setMaxSeen(other.getMaxSeen()); + } + if (other.getSum() != 0D) { + setSum(other.getSum()); + } + if (other.getSumOfSquares() != 0D) { + setSumOfSquares(other.getSumOfSquares()); + } + if (other.getCount() != 0D) { + setCount(other.getCount()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Stats.HistogramData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Stats.HistogramData) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List bucket_ = java.util.Collections.emptyList(); + private void ensureBucketIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + bucket_ = new java.util.ArrayList(bucket_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint32 bucket = 1; + */ + public java.util.List + getBucketList() { + return java.util.Collections.unmodifiableList(bucket_); + } + /** + * repeated 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 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_ ; + /** + * optional double min_seen = 2; + */ + public double getMinSeen() { + return minSeen_; + } + /** + * optional double min_seen = 2; + */ + public Builder setMinSeen(double value) { + + minSeen_ = value; + onChanged(); + return this; + } + /** + * optional double min_seen = 2; + */ + public Builder clearMinSeen() { + + minSeen_ = 0D; + onChanged(); + return this; + } + + private double maxSeen_ ; + /** + * optional double max_seen = 3; + */ + public double getMaxSeen() { + return maxSeen_; + } + /** + * optional double max_seen = 3; + */ + public Builder setMaxSeen(double value) { + + maxSeen_ = value; + onChanged(); + return this; + } + /** + * optional double max_seen = 3; + */ + public Builder clearMaxSeen() { + + maxSeen_ = 0D; + onChanged(); + return this; + } + + private double sum_ ; + /** + * optional double sum = 4; + */ + public double getSum() { + return sum_; + } + /** + * optional double sum = 4; + */ + public Builder setSum(double value) { + + sum_ = value; + onChanged(); + return this; + } + /** + * optional double sum = 4; + */ + public Builder clearSum() { + + sum_ = 0D; + onChanged(); + return this; + } + + private double sumOfSquares_ ; + /** + * optional double sum_of_squares = 5; + */ + public double getSumOfSquares() { + return sumOfSquares_; + } + /** + * optional double sum_of_squares = 5; + */ + public Builder setSumOfSquares(double value) { + + sumOfSquares_ = value; + onChanged(); + return this; + } + /** + * optional double sum_of_squares = 5; + */ + public Builder clearSumOfSquares() { + + sumOfSquares_ = 0D; + onChanged(); + return this; + } + + private double count_ ; + /** + * optional double count = 6; + */ + public double getCount() { + return count_; + } + /** + * optional double count = 6; + */ + public Builder setCount(double value) { + + count_ = value; + onChanged(); + return this; + } + /** + * optional double count = 6; + */ + public Builder clearCount() { + + count_ = 0D; + 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.HistogramData) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.HistogramData) + private static final io.grpc.benchmarks.proto.Stats.HistogramData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.HistogramData(); + } + + public static io.grpc.benchmarks.proto.Stats.HistogramData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HistogramData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new HistogramData(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Stats.HistogramData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClientStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:grpc.testing.ClientStats) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+     * Latency histogram. Data points are in nanoseconds.
+     * 
+ */ + boolean hasLatencies(); + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+     * Latency histogram. Data points are in nanoseconds.
+     * 
+ */ + io.grpc.benchmarks.proto.Stats.HistogramData getLatencies(); + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+     * Latency histogram. Data points are in nanoseconds.
+     * 
+ */ + io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder(); + + /** + * optional double time_elapsed = 2; + * + *
+     * See ServerStats for details.
+     * 
+ */ + double getTimeElapsed(); + + /** + * optional double time_user = 3; + */ + double getTimeUser(); + + /** + * optional double time_system = 4; + */ + 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientStats( + 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.benchmarks.proto.Stats.HistogramData.Builder subBuilder = null; + if (latencies_ != null) { + subBuilder = latencies_.toBuilder(); + } + latencies_ = input.readMessage(io.grpc.benchmarks.proto.Stats.HistogramData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latencies_); + latencies_ = subBuilder.buildPartial(); + } + + break; + } + case 17: { + + timeElapsed_ = input.readDouble(); + break; + } + case 25: { + + timeUser_ = input.readDouble(); + break; + } + case 33: { + + 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 { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.ClientStats.class, io.grpc.benchmarks.proto.Stats.ClientStats.Builder.class); + } + + public static final int LATENCIES_FIELD_NUMBER = 1; + private io.grpc.benchmarks.proto.Stats.HistogramData latencies_; + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+     * Latency histogram. Data points are in nanoseconds.
+     * 
+ */ + public boolean hasLatencies() { + return latencies_ != null; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+     * Latency histogram. Data points are in nanoseconds.
+     * 
+ */ + public io.grpc.benchmarks.proto.Stats.HistogramData getLatencies() { + return latencies_ == null ? io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+     * Latency histogram. Data points are in nanoseconds.
+     * 
+ */ + public io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder() { + return getLatencies(); + } + + public static final int TIME_ELAPSED_FIELD_NUMBER = 2; + private double timeElapsed_; + /** + * optional double time_elapsed = 2; + * + *
+     * See ServerStats for details.
+     * 
+ */ + public double getTimeElapsed() { + return timeElapsed_; + } + + public static final int TIME_USER_FIELD_NUMBER = 3; + private double timeUser_; + /** + * optional double time_user = 3; + */ + public double getTimeUser() { + return timeUser_; + } + + public static final int TIME_SYSTEM_FIELD_NUMBER = 4; + private double timeSystem_; + /** + * optional double time_system = 4; + */ + 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; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (latencies_ != null) { + output.writeMessage(1, getLatencies()); + } + if (timeElapsed_ != 0D) { + output.writeDouble(2, timeElapsed_); + } + if (timeUser_ != 0D) { + output.writeDouble(3, timeUser_); + } + if (timeSystem_ != 0D) { + output.writeDouble(4, timeSystem_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (latencies_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatencies()); + } + if (timeElapsed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, timeElapsed_); + } + if (timeUser_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, timeUser_); + } + if (timeSystem_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, timeSystem_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats 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.benchmarks.proto.Stats.ClientStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.ClientStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? 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.Builder implements + // @@protoc_insertion_point(builder_implements:grpc.testing.ClientStats) + io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grpc.benchmarks.proto.Stats.ClientStats.class, io.grpc.benchmarks.proto.Stats.ClientStats.Builder.class); + } + + // Construct using io.grpc.benchmarks.proto.Stats.ClientStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (latenciesBuilder_ == null) { + latencies_ = null; + } else { + latencies_ = null; + latenciesBuilder_ = null; + } + timeElapsed_ = 0D; + + timeUser_ = 0D; + + timeSystem_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor; + } + + public io.grpc.benchmarks.proto.Stats.ClientStats getDefaultInstanceForType() { + return io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance(); + } + + public io.grpc.benchmarks.proto.Stats.ClientStats build() { + io.grpc.benchmarks.proto.Stats.ClientStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public io.grpc.benchmarks.proto.Stats.ClientStats buildPartial() { + io.grpc.benchmarks.proto.Stats.ClientStats result = new io.grpc.benchmarks.proto.Stats.ClientStats(this); + if (latenciesBuilder_ == null) { + result.latencies_ = latencies_; + } else { + result.latencies_ = latenciesBuilder_.build(); + } + result.timeElapsed_ = timeElapsed_; + result.timeUser_ = timeUser_; + result.timeSystem_ = timeSystem_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grpc.benchmarks.proto.Stats.ClientStats) { + return mergeFrom((io.grpc.benchmarks.proto.Stats.ClientStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.ClientStats other) { + if (other == io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance()) return this; + if (other.hasLatencies()) { + mergeLatencies(other.getLatencies()); + } + if (other.getTimeElapsed() != 0D) { + setTimeElapsed(other.getTimeElapsed()); + } + if (other.getTimeUser() != 0D) { + setTimeUser(other.getTimeUser()); + } + if (other.getTimeSystem() != 0D) { + setTimeSystem(other.getTimeSystem()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.grpc.benchmarks.proto.Stats.ClientStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.grpc.benchmarks.proto.Stats.ClientStats) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.grpc.benchmarks.proto.Stats.HistogramData latencies_ = null; + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> latenciesBuilder_; + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public boolean hasLatencies() { + return latenciesBuilder_ != null || latencies_ != null; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public io.grpc.benchmarks.proto.Stats.HistogramData getLatencies() { + if (latenciesBuilder_ == null) { + return latencies_ == null ? io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_; + } else { + return latenciesBuilder_.getMessage(); + } + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public Builder setLatencies(io.grpc.benchmarks.proto.Stats.HistogramData value) { + if (latenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latencies_ = value; + onChanged(); + } else { + latenciesBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public Builder setLatencies( + io.grpc.benchmarks.proto.Stats.HistogramData.Builder builderForValue) { + if (latenciesBuilder_ == null) { + latencies_ = builderForValue.build(); + onChanged(); + } else { + latenciesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public Builder mergeLatencies(io.grpc.benchmarks.proto.Stats.HistogramData value) { + if (latenciesBuilder_ == null) { + if (latencies_ != null) { + latencies_ = + io.grpc.benchmarks.proto.Stats.HistogramData.newBuilder(latencies_).mergeFrom(value).buildPartial(); + } else { + latencies_ = value; + } + onChanged(); + } else { + latenciesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public Builder clearLatencies() { + if (latenciesBuilder_ == null) { + latencies_ = null; + onChanged(); + } else { + latencies_ = null; + latenciesBuilder_ = null; + } + + return this; + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public io.grpc.benchmarks.proto.Stats.HistogramData.Builder getLatenciesBuilder() { + + onChanged(); + return getLatenciesFieldBuilder().getBuilder(); + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + public io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder() { + if (latenciesBuilder_ != null) { + return latenciesBuilder_.getMessageOrBuilder(); + } else { + return latencies_ == null ? + io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_; + } + } + /** + * optional .grpc.testing.HistogramData latencies = 1; + * + *
+       * Latency histogram. Data points are in nanoseconds.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> + getLatenciesFieldBuilder() { + if (latenciesBuilder_ == null) { + latenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder>( + getLatencies(), + getParentForChildren(), + isClean()); + latencies_ = null; + } + return latenciesBuilder_; + } + + private double timeElapsed_ ; + /** + * optional double time_elapsed = 2; + * + *
+       * See ServerStats for details.
+       * 
+ */ + public double getTimeElapsed() { + return timeElapsed_; + } + /** + * optional double time_elapsed = 2; + * + *
+       * See ServerStats for details.
+       * 
+ */ + public Builder setTimeElapsed(double value) { + + timeElapsed_ = value; + onChanged(); + return this; + } + /** + * optional double time_elapsed = 2; + * + *
+       * See ServerStats for details.
+       * 
+ */ + public Builder clearTimeElapsed() { + + timeElapsed_ = 0D; + onChanged(); + return this; + } + + private double timeUser_ ; + /** + * optional double time_user = 3; + */ + public double getTimeUser() { + return timeUser_; + } + /** + * optional double time_user = 3; + */ + public Builder setTimeUser(double value) { + + timeUser_ = value; + onChanged(); + return this; + } + /** + * optional double time_user = 3; + */ + public Builder clearTimeUser() { + + timeUser_ = 0D; + onChanged(); + return this; + } + + private double timeSystem_ ; + /** + * optional double time_system = 4; + */ + public double getTimeSystem() { + return timeSystem_; + } + /** + * optional double time_system = 4; + */ + public Builder setTimeSystem(double value) { + + timeSystem_ = value; + onChanged(); + return this; + } + /** + * optional double time_system = 4; + */ + public Builder clearTimeSystem() { + + timeSystem_ = 0D; + 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.ClientStats) + } + + // @@protoc_insertion_point(class_scope:grpc.testing.ClientStats) + private static final io.grpc.benchmarks.proto.Stats.ClientStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.ClientStats(); + } + + public static io.grpc.benchmarks.proto.Stats.ClientStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ClientStats(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public io.grpc.benchmarks.proto.Stats.ClientStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static 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 com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_HistogramParams_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_HistogramParams_fieldAccessorTable; + private static 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 com.google.protobuf.Descriptors.Descriptor + internal_static_grpc_testing_ClientStats_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_grpc_testing_ClientStats_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\013stats.proto\022\014grpc.testing\"K\n\013ServerSta" + + "ts\022\024\n\014time_elapsed\030\001 \001(\001\022\021\n\ttime_user\030\002 " + + "\001(\001\022\023\n\013time_system\030\003 \001(\001\";\n\017HistogramPar" + + "ams\022\022\n\nresolution\030\001 \001(\001\022\024\n\014max_possible\030" + + "\002 \001(\001\"w\n\rHistogramData\022\016\n\006bucket\030\001 \003(\r\022\020" + + "\n\010min_seen\030\002 \001(\001\022\020\n\010max_seen\030\003 \001(\001\022\013\n\003su" + + "m\030\004 \001(\001\022\026\n\016sum_of_squares\030\005 \001(\001\022\r\n\005count" + + "\030\006 \001(\001\"{\n\013ClientStats\022.\n\tlatencies\030\001 \001(\013" + + "2\033.grpc.testing.HistogramData\022\024\n\014time_el" + + "apsed\030\002 \001(\001\022\021\n\ttime_user\030\003 \001(\001\022\023\n\013time_s", + "ystem\030\004 \001(\001B!\n\030io.grpc.benchmarks.protoB" + + "\005Statsb\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_grpc_testing_ServerStats_descriptor = + getDescriptor().getMessageTypes().get(0); + 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_HistogramParams_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_grpc_testing_HistogramParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_grpc_testing_HistogramParams_descriptor, + new java.lang.String[] { "Resolution", "MaxPossible", }); + internal_static_grpc_testing_HistogramData_descriptor = + getDescriptor().getMessageTypes().get(2); + 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_ClientStats_descriptor = + getDescriptor().getMessageTypes().get(3); + 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", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientArgs.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientArgs.java deleted file mode 100644 index f5212edde1..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientArgs.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ClientArgs} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ClientArgs( - 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.ClientConfig.Builder subBuilder = null; - if (argtypeCase_ == 1) { - subBuilder = ((io.grpc.testing.ClientConfig) argtype_).toBuilder(); - } - argtype_ = - input.readMessage(io.grpc.testing.ClientConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.grpc.testing.ClientConfig) argtype_); - argtype_ = subBuilder.buildPartial(); - } - argtypeCase_ = 1; - break; - } - case 18: { - io.grpc.testing.Mark.Builder subBuilder = null; - if (argtypeCase_ == 2) { - subBuilder = ((io.grpc.testing.Mark) argtype_).toBuilder(); - } - argtype_ = - input.readMessage(io.grpc.testing.Mark.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.grpc.testing.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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientArgs_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientArgs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientArgs.class, io.grpc.testing.ClientArgs.Builder.class); - } - - private int argtypeCase_ = 0; - private java.lang.Object argtype_; - public enum ArgtypeCase - implements com.google.protobuf.Internal.EnumLite { - SETUP(1), - MARK(2), - ARGTYPE_NOT_SET(0); - private int value = 0; - private ArgtypeCase(int value) { - this.value = value; - } - public static ArgtypeCase valueOf(int value) { - switch (value) { - case 1: return SETUP; - case 2: return MARK; - case 0: return ARGTYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); - } - } - public int getNumber() { - return this.value; - } - }; - - public ArgtypeCase - getArgtypeCase() { - return ArgtypeCase.valueOf( - argtypeCase_); - } - - public static final int SETUP_FIELD_NUMBER = 1; - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - public io.grpc.testing.ClientConfig getSetup() { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ClientConfig) argtype_; - } - return io.grpc.testing.ClientConfig.getDefaultInstance(); - } - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - public io.grpc.testing.ClientConfigOrBuilder getSetupOrBuilder() { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ClientConfig) argtype_; - } - return io.grpc.testing.ClientConfig.getDefaultInstance(); - } - - public static final int MARK_FIELD_NUMBER = 2; - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.Mark getMark() { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.MarkOrBuilder getMarkOrBuilder() { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - - 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 (argtypeCase_ == 1) { - output.writeMessage(1, (io.grpc.testing.ClientConfig) argtype_); - } - if (argtypeCase_ == 2) { - output.writeMessage(2, (io.grpc.testing.Mark) argtype_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (argtypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (io.grpc.testing.ClientConfig) argtype_); - } - if (argtypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (io.grpc.testing.Mark) argtype_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ClientArgs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientArgs 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.ClientArgs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientArgs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ClientArgs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ClientArgs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientArgs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ClientArgs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientArgs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ClientArgs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientArgs) - io.grpc.testing.ClientArgsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientArgs_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientArgs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientArgs.class, io.grpc.testing.ClientArgs.Builder.class); - } - - // Construct using io.grpc.testing.ClientArgs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - argtypeCase_ = 0; - argtype_ = null; - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientArgs_descriptor; - } - - public io.grpc.testing.ClientArgs getDefaultInstanceForType() { - return io.grpc.testing.ClientArgs.getDefaultInstance(); - } - - public io.grpc.testing.ClientArgs build() { - io.grpc.testing.ClientArgs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ClientArgs buildPartial() { - io.grpc.testing.ClientArgs result = new io.grpc.testing.ClientArgs(this); - if (argtypeCase_ == 1) { - if (setupBuilder_ == null) { - result.argtype_ = argtype_; - } else { - result.argtype_ = setupBuilder_.build(); - } - } - if (argtypeCase_ == 2) { - if (markBuilder_ == null) { - result.argtype_ = argtype_; - } else { - result.argtype_ = markBuilder_.build(); - } - } - result.argtypeCase_ = argtypeCase_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ClientArgs) { - return mergeFrom((io.grpc.testing.ClientArgs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ClientArgs other) { - if (other == io.grpc.testing.ClientArgs.getDefaultInstance()) return this; - switch (other.getArgtypeCase()) { - case SETUP: { - mergeSetup(other.getSetup()); - break; - } - case MARK: { - mergeMark(other.getMark()); - break; - } - case ARGTYPE_NOT_SET: { - break; - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ClientArgs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ClientArgs) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int argtypeCase_ = 0; - private java.lang.Object argtype_; - public ArgtypeCase - getArgtypeCase() { - return ArgtypeCase.valueOf( - argtypeCase_); - } - - public Builder clearArgtype() { - argtypeCase_ = 0; - argtype_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ClientConfig, io.grpc.testing.ClientConfig.Builder, io.grpc.testing.ClientConfigOrBuilder> setupBuilder_; - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - public io.grpc.testing.ClientConfig getSetup() { - if (setupBuilder_ == null) { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ClientConfig) argtype_; - } - return io.grpc.testing.ClientConfig.getDefaultInstance(); - } else { - if (argtypeCase_ == 1) { - return setupBuilder_.getMessage(); - } - return io.grpc.testing.ClientConfig.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - public Builder setSetup(io.grpc.testing.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( - io.grpc.testing.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(io.grpc.testing.ClientConfig value) { - if (setupBuilder_ == null) { - if (argtypeCase_ == 1 && - argtype_ != io.grpc.testing.ClientConfig.getDefaultInstance()) { - argtype_ = io.grpc.testing.ClientConfig.newBuilder((io.grpc.testing.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 io.grpc.testing.ClientConfig.Builder getSetupBuilder() { - return getSetupFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - public io.grpc.testing.ClientConfigOrBuilder getSetupOrBuilder() { - if ((argtypeCase_ == 1) && (setupBuilder_ != null)) { - return setupBuilder_.getMessageOrBuilder(); - } else { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ClientConfig) argtype_; - } - return io.grpc.testing.ClientConfig.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ClientConfig, io.grpc.testing.ClientConfig.Builder, io.grpc.testing.ClientConfigOrBuilder> - getSetupFieldBuilder() { - if (setupBuilder_ == null) { - if (!(argtypeCase_ == 1)) { - argtype_ = io.grpc.testing.ClientConfig.getDefaultInstance(); - } - setupBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ClientConfig, io.grpc.testing.ClientConfig.Builder, io.grpc.testing.ClientConfigOrBuilder>( - (io.grpc.testing.ClientConfig) argtype_, - getParentForChildren(), - isClean()); - argtype_ = null; - } - argtypeCase_ = 1; - onChanged();; - return setupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder> markBuilder_; - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.Mark getMark() { - if (markBuilder_ == null) { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } else { - if (argtypeCase_ == 2) { - return markBuilder_.getMessage(); - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - public Builder setMark(io.grpc.testing.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( - io.grpc.testing.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(io.grpc.testing.Mark value) { - if (markBuilder_ == null) { - if (argtypeCase_ == 2 && - argtype_ != io.grpc.testing.Mark.getDefaultInstance()) { - argtype_ = io.grpc.testing.Mark.newBuilder((io.grpc.testing.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 io.grpc.testing.Mark.Builder getMarkBuilder() { - return getMarkFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.MarkOrBuilder getMarkOrBuilder() { - if ((argtypeCase_ == 2) && (markBuilder_ != null)) { - return markBuilder_.getMessageOrBuilder(); - } else { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder> - getMarkFieldBuilder() { - if (markBuilder_ == null) { - if (!(argtypeCase_ == 2)) { - argtype_ = io.grpc.testing.Mark.getDefaultInstance(); - } - markBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder>( - (io.grpc.testing.Mark) argtype_, - getParentForChildren(), - isClean()); - argtype_ = null; - } - argtypeCase_ = 2; - onChanged();; - return markBuilder_; - } - 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.ClientArgs) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientArgs) - private static final io.grpc.testing.ClientArgs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ClientArgs(); - } - - public static io.grpc.testing.ClientArgs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ClientArgs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ClientArgs(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ClientArgs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientArgsOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientArgsOrBuilder.java deleted file mode 100644 index 5d5a5385d7..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientArgsOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface ClientArgsOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ClientArgs) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - io.grpc.testing.ClientConfig getSetup(); - /** - * optional .grpc.testing.ClientConfig setup = 1; - */ - io.grpc.testing.ClientConfigOrBuilder getSetupOrBuilder(); - - /** - * optional .grpc.testing.Mark mark = 2; - */ - io.grpc.testing.Mark getMark(); - /** - * optional .grpc.testing.Mark mark = 2; - */ - io.grpc.testing.MarkOrBuilder getMarkOrBuilder(); - - public io.grpc.testing.ClientArgs.ArgtypeCase getArgtypeCase(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientConfig.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientConfig.java deleted file mode 100644 index 9a917adf55..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientConfig.java +++ /dev/null @@ -1,932 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ClientConfig} - */ -public 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_ = 0; - enableSsl_ = false; - outstandingRpcsPerChannel_ = 0; - clientChannels_ = 0; - payloadSize_ = 0; - asyncClientThreads_ = 0; - rpcType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ClientConfig( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - serverTargets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - serverTargets_.add(s); - break; - } - case 16: { - int rawValue = input.readEnum(); - - clientType_ = rawValue; - break; - } - case 24: { - - enableSsl_ = input.readBool(); - break; - } - case 32: { - - outstandingRpcsPerChannel_ = input.readInt32(); - break; - } - case 40: { - - clientChannels_ = input.readInt32(); - break; - } - case 48: { - - payloadSize_ = input.readInt32(); - break; - } - case 56: { - - asyncClientThreads_ = input.readInt32(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - 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(); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientConfig_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientConfig.class, io.grpc.testing.ClientConfig.Builder.class); - } - - private int bitField0_; - public static final int SERVER_TARGETS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList serverTargets_; - /** - * repeated 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_; - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public int getClientTypeValue() { - return clientType_; - } - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public io.grpc.testing.ClientType getClientType() { - io.grpc.testing.ClientType result = io.grpc.testing.ClientType.valueOf(clientType_); - return result == null ? io.grpc.testing.ClientType.UNRECOGNIZED : result; - } - - public static final int ENABLE_SSL_FIELD_NUMBER = 3; - private boolean enableSsl_; - /** - * optional bool enable_ssl = 3; - */ - public boolean getEnableSsl() { - return enableSsl_; - } - - public static final int OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER = 4; - private int outstandingRpcsPerChannel_; - /** - * optional int32 outstanding_rpcs_per_channel = 4; - */ - public int getOutstandingRpcsPerChannel() { - return outstandingRpcsPerChannel_; - } - - public static final int CLIENT_CHANNELS_FIELD_NUMBER = 5; - private int clientChannels_; - /** - * optional int32 client_channels = 5; - */ - public int getClientChannels() { - return clientChannels_; - } - - public static final int PAYLOAD_SIZE_FIELD_NUMBER = 6; - private int payloadSize_; - /** - * optional 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 int getAsyncClientThreads() { - return asyncClientThreads_; - } - - public static final int RPC_TYPE_FIELD_NUMBER = 8; - private int rpcType_; - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public int getRpcTypeValue() { - return rpcType_; - } - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public io.grpc.testing.RpcType getRpcType() { - io.grpc.testing.RpcType result = io.grpc.testing.RpcType.valueOf(rpcType_); - return result == null ? io.grpc.testing.RpcType.UNRECOGNIZED : result; - } - - 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 { - for (int i = 0; i < serverTargets_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, serverTargets_.getRaw(i)); - } - if (clientType_ != io.grpc.testing.ClientType.SYNCHRONOUS_CLIENT.getNumber()) { - output.writeEnum(2, clientType_); - } - if (enableSsl_ != false) { - output.writeBool(3, enableSsl_); - } - if (outstandingRpcsPerChannel_ != 0) { - output.writeInt32(4, outstandingRpcsPerChannel_); - } - if (clientChannels_ != 0) { - output.writeInt32(5, clientChannels_); - } - if (payloadSize_ != 0) { - output.writeInt32(6, payloadSize_); - } - if (asyncClientThreads_ != 0) { - output.writeInt32(7, asyncClientThreads_); - } - if (rpcType_ != io.grpc.testing.RpcType.UNARY.getNumber()) { - output.writeEnum(8, rpcType_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < serverTargets_.size(); i++) { - dataSize += computeStringSizeNoTag(serverTargets_.getRaw(i)); - } - size += dataSize; - size += 1 * getServerTargetsList().size(); - } - if (clientType_ != io.grpc.testing.ClientType.SYNCHRONOUS_CLIENT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, clientType_); - } - if (enableSsl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableSsl_); - } - if (outstandingRpcsPerChannel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, outstandingRpcsPerChannel_); - } - if (clientChannels_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, clientChannels_); - } - if (payloadSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, payloadSize_); - } - if (asyncClientThreads_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, asyncClientThreads_); - } - if (rpcType_ != io.grpc.testing.RpcType.UNARY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, rpcType_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ClientConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientConfig 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.ClientConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ClientConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ClientConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ClientConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ClientConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientConfig) - io.grpc.testing.ClientConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientConfig_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientConfig.class, io.grpc.testing.ClientConfig.Builder.class); - } - - // Construct using io.grpc.testing.ClientConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - clientType_ = 0; - - enableSsl_ = false; - - outstandingRpcsPerChannel_ = 0; - - clientChannels_ = 0; - - payloadSize_ = 0; - - asyncClientThreads_ = 0; - - rpcType_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientConfig_descriptor; - } - - public io.grpc.testing.ClientConfig getDefaultInstanceForType() { - return io.grpc.testing.ClientConfig.getDefaultInstance(); - } - - public io.grpc.testing.ClientConfig build() { - io.grpc.testing.ClientConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ClientConfig buildPartial() { - io.grpc.testing.ClientConfig result = new io.grpc.testing.ClientConfig(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - serverTargets_ = serverTargets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.serverTargets_ = serverTargets_; - result.clientType_ = clientType_; - result.enableSsl_ = enableSsl_; - result.outstandingRpcsPerChannel_ = outstandingRpcsPerChannel_; - result.clientChannels_ = clientChannels_; - result.payloadSize_ = payloadSize_; - result.asyncClientThreads_ = asyncClientThreads_; - result.rpcType_ = rpcType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ClientConfig) { - return mergeFrom((io.grpc.testing.ClientConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ClientConfig other) { - if (other == io.grpc.testing.ClientConfig.getDefaultInstance()) return this; - if (!other.serverTargets_.isEmpty()) { - if (serverTargets_.isEmpty()) { - serverTargets_ = other.serverTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServerTargetsIsMutable(); - serverTargets_.addAll(other.serverTargets_); - } - onChanged(); - } - if (other.clientType_ != 0) { - setClientTypeValue(other.getClientTypeValue()); - } - if (other.getEnableSsl() != false) { - setEnableSsl(other.getEnableSsl()); - } - if (other.getOutstandingRpcsPerChannel() != 0) { - setOutstandingRpcsPerChannel(other.getOutstandingRpcsPerChannel()); - } - if (other.getClientChannels() != 0) { - setClientChannels(other.getClientChannels()); - } - if (other.getPayloadSize() != 0) { - setPayloadSize(other.getPayloadSize()); - } - if (other.getAsyncClientThreads() != 0) { - setAsyncClientThreads(other.getAsyncClientThreads()); - } - if (other.rpcType_ != 0) { - setRpcTypeValue(other.getRpcTypeValue()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ClientConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ClientConfig) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureServerTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - serverTargets_ = new com.google.protobuf.LazyStringArrayList(serverTargets_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated 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.Iterable values) { - ensureServerTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serverTargets_); - onChanged(); - return this; - } - /** - * repeated 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(); - } - checkByteStringIsUtf8(value); - ensureServerTargetsIsMutable(); - serverTargets_.add(value); - onChanged(); - return this; - } - - private int clientType_ = 0; - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public int getClientTypeValue() { - return clientType_; - } - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public Builder setClientTypeValue(int value) { - clientType_ = value; - onChanged(); - return this; - } - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public io.grpc.testing.ClientType getClientType() { - io.grpc.testing.ClientType result = io.grpc.testing.ClientType.valueOf(clientType_); - return result == null ? io.grpc.testing.ClientType.UNRECOGNIZED : result; - } - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public Builder setClientType(io.grpc.testing.ClientType value) { - if (value == null) { - throw new NullPointerException(); - } - - clientType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - public Builder clearClientType() { - - clientType_ = 0; - onChanged(); - return this; - } - - private boolean enableSsl_ ; - /** - * optional bool enable_ssl = 3; - */ - public boolean getEnableSsl() { - return enableSsl_; - } - /** - * optional bool enable_ssl = 3; - */ - public Builder setEnableSsl(boolean value) { - - enableSsl_ = value; - onChanged(); - return this; - } - /** - * optional bool enable_ssl = 3; - */ - public Builder clearEnableSsl() { - - enableSsl_ = false; - onChanged(); - return this; - } - - private int outstandingRpcsPerChannel_ ; - /** - * optional int32 outstanding_rpcs_per_channel = 4; - */ - public int getOutstandingRpcsPerChannel() { - return outstandingRpcsPerChannel_; - } - /** - * optional int32 outstanding_rpcs_per_channel = 4; - */ - public Builder setOutstandingRpcsPerChannel(int value) { - - outstandingRpcsPerChannel_ = value; - onChanged(); - return this; - } - /** - * optional int32 outstanding_rpcs_per_channel = 4; - */ - public Builder clearOutstandingRpcsPerChannel() { - - outstandingRpcsPerChannel_ = 0; - onChanged(); - return this; - } - - private int clientChannels_ ; - /** - * optional int32 client_channels = 5; - */ - public int getClientChannels() { - return clientChannels_; - } - /** - * optional int32 client_channels = 5; - */ - public Builder setClientChannels(int value) { - - clientChannels_ = value; - onChanged(); - return this; - } - /** - * optional int32 client_channels = 5; - */ - public Builder clearClientChannels() { - - clientChannels_ = 0; - onChanged(); - return this; - } - - private int payloadSize_ ; - /** - * optional int32 payload_size = 6; - */ - public int getPayloadSize() { - return payloadSize_; - } - /** - * optional int32 payload_size = 6; - */ - public Builder setPayloadSize(int value) { - - payloadSize_ = value; - onChanged(); - return this; - } - /** - * optional int32 payload_size = 6; - */ - public Builder clearPayloadSize() { - - payloadSize_ = 0; - onChanged(); - return this; - } - - private int asyncClientThreads_ ; - /** - * 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) { - - asyncClientThreads_ = value; - onChanged(); - return this; - } - /** - * optional int32 async_client_threads = 7; - * - *
-     * only for async client:
-     * 
- */ - public Builder clearAsyncClientThreads() { - - asyncClientThreads_ = 0; - onChanged(); - return this; - } - - private int rpcType_ = 0; - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public int getRpcTypeValue() { - return rpcType_; - } - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public Builder setRpcTypeValue(int value) { - rpcType_ = value; - onChanged(); - return this; - } - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public io.grpc.testing.RpcType getRpcType() { - io.grpc.testing.RpcType result = io.grpc.testing.RpcType.valueOf(rpcType_); - return result == null ? io.grpc.testing.RpcType.UNRECOGNIZED : result; - } - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public Builder setRpcType(io.grpc.testing.RpcType value) { - if (value == null) { - throw new NullPointerException(); - } - - rpcType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - public Builder clearRpcType() { - - rpcType_ = 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.ClientConfig) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientConfig) - private static final io.grpc.testing.ClientConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ClientConfig(); - } - - public static io.grpc.testing.ClientConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ClientConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ClientConfig(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ClientConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientConfigOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientConfigOrBuilder.java deleted file mode 100644 index 5940fe8bbe..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientConfigOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -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); - - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - int getClientTypeValue(); - /** - * optional .grpc.testing.ClientType client_type = 2; - */ - io.grpc.testing.ClientType getClientType(); - - /** - * optional bool enable_ssl = 3; - */ - boolean getEnableSsl(); - - /** - * optional int32 outstanding_rpcs_per_channel = 4; - */ - int getOutstandingRpcsPerChannel(); - - /** - * optional int32 client_channels = 5; - */ - int getClientChannels(); - - /** - * optional int32 payload_size = 6; - */ - int getPayloadSize(); - - /** - * optional int32 async_client_threads = 7; - * - *
-   * only for async client:
-   * 
- */ - int getAsyncClientThreads(); - - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - int getRpcTypeValue(); - /** - * optional .grpc.testing.RpcType rpc_type = 8; - */ - io.grpc.testing.RpcType getRpcType(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStats.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientStats.java deleted file mode 100644 index ba61940ed7..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStats.java +++ /dev/null @@ -1,651 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ClientStats} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ClientStats( - 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.HistogramData.Builder subBuilder = null; - if (latencies_ != null) { - subBuilder = latencies_.toBuilder(); - } - latencies_ = input.readMessage(io.grpc.testing.HistogramData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latencies_); - latencies_ = subBuilder.buildPartial(); - } - - break; - } - case 25: { - - timeElapsed_ = input.readDouble(); - break; - } - case 33: { - - timeUser_ = input.readDouble(); - break; - } - case 41: { - - 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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStats_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientStats.class, io.grpc.testing.ClientStats.Builder.class); - } - - public static final int LATENCIES_FIELD_NUMBER = 1; - private io.grpc.testing.HistogramData latencies_; - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public boolean hasLatencies() { - return latencies_ != null; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public io.grpc.testing.HistogramData getLatencies() { - return latencies_ == null ? io.grpc.testing.HistogramData.getDefaultInstance() : latencies_; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public io.grpc.testing.HistogramDataOrBuilder getLatenciesOrBuilder() { - return getLatencies(); - } - - public static final int TIME_ELAPSED_FIELD_NUMBER = 3; - private double timeElapsed_; - /** - * optional double time_elapsed = 3; - */ - public double getTimeElapsed() { - return timeElapsed_; - } - - public static final int TIME_USER_FIELD_NUMBER = 4; - private double timeUser_; - /** - * optional double time_user = 4; - */ - public double getTimeUser() { - return timeUser_; - } - - public static final int TIME_SYSTEM_FIELD_NUMBER = 5; - private double timeSystem_; - /** - * optional 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (latencies_ != null) { - output.writeMessage(1, getLatencies()); - } - if (timeElapsed_ != 0D) { - output.writeDouble(3, timeElapsed_); - } - if (timeUser_ != 0D) { - output.writeDouble(4, timeUser_); - } - if (timeSystem_ != 0D) { - output.writeDouble(5, timeSystem_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (latencies_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatencies()); - } - if (timeElapsed_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, timeElapsed_); - } - if (timeUser_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, timeUser_); - } - if (timeSystem_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, timeSystem_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ClientStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientStats 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.ClientStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ClientStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ClientStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ClientStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ClientStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientStats) - io.grpc.testing.ClientStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStats_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientStats.class, io.grpc.testing.ClientStats.Builder.class); - } - - // Construct using io.grpc.testing.ClientStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (latenciesBuilder_ == null) { - latencies_ = null; - } else { - latencies_ = null; - latenciesBuilder_ = null; - } - timeElapsed_ = 0D; - - timeUser_ = 0D; - - timeSystem_ = 0D; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStats_descriptor; - } - - public io.grpc.testing.ClientStats getDefaultInstanceForType() { - return io.grpc.testing.ClientStats.getDefaultInstance(); - } - - public io.grpc.testing.ClientStats build() { - io.grpc.testing.ClientStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ClientStats buildPartial() { - io.grpc.testing.ClientStats result = new io.grpc.testing.ClientStats(this); - if (latenciesBuilder_ == null) { - result.latencies_ = latencies_; - } else { - result.latencies_ = latenciesBuilder_.build(); - } - result.timeElapsed_ = timeElapsed_; - result.timeUser_ = timeUser_; - result.timeSystem_ = timeSystem_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ClientStats) { - return mergeFrom((io.grpc.testing.ClientStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ClientStats other) { - if (other == io.grpc.testing.ClientStats.getDefaultInstance()) return this; - if (other.hasLatencies()) { - mergeLatencies(other.getLatencies()); - } - if (other.getTimeElapsed() != 0D) { - setTimeElapsed(other.getTimeElapsed()); - } - if (other.getTimeUser() != 0D) { - setTimeUser(other.getTimeUser()); - } - if (other.getTimeSystem() != 0D) { - setTimeSystem(other.getTimeSystem()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ClientStats parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ClientStats) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.grpc.testing.HistogramData latencies_ = null; - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.HistogramData, io.grpc.testing.HistogramData.Builder, io.grpc.testing.HistogramDataOrBuilder> latenciesBuilder_; - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public boolean hasLatencies() { - return latenciesBuilder_ != null || latencies_ != null; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public io.grpc.testing.HistogramData getLatencies() { - if (latenciesBuilder_ == null) { - return latencies_ == null ? io.grpc.testing.HistogramData.getDefaultInstance() : latencies_; - } else { - return latenciesBuilder_.getMessage(); - } - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public Builder setLatencies(io.grpc.testing.HistogramData value) { - if (latenciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - latencies_ = value; - onChanged(); - } else { - latenciesBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public Builder setLatencies( - io.grpc.testing.HistogramData.Builder builderForValue) { - if (latenciesBuilder_ == null) { - latencies_ = builderForValue.build(); - onChanged(); - } else { - latenciesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public Builder mergeLatencies(io.grpc.testing.HistogramData value) { - if (latenciesBuilder_ == null) { - if (latencies_ != null) { - latencies_ = - io.grpc.testing.HistogramData.newBuilder(latencies_).mergeFrom(value).buildPartial(); - } else { - latencies_ = value; - } - onChanged(); - } else { - latenciesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public Builder clearLatencies() { - if (latenciesBuilder_ == null) { - latencies_ = null; - onChanged(); - } else { - latencies_ = null; - latenciesBuilder_ = null; - } - - return this; - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public io.grpc.testing.HistogramData.Builder getLatenciesBuilder() { - - onChanged(); - return getLatenciesFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - public io.grpc.testing.HistogramDataOrBuilder getLatenciesOrBuilder() { - if (latenciesBuilder_ != null) { - return latenciesBuilder_.getMessageOrBuilder(); - } else { - return latencies_ == null ? - io.grpc.testing.HistogramData.getDefaultInstance() : latencies_; - } - } - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.HistogramData, io.grpc.testing.HistogramData.Builder, io.grpc.testing.HistogramDataOrBuilder> - getLatenciesFieldBuilder() { - if (latenciesBuilder_ == null) { - latenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.HistogramData, io.grpc.testing.HistogramData.Builder, io.grpc.testing.HistogramDataOrBuilder>( - getLatencies(), - getParentForChildren(), - isClean()); - latencies_ = null; - } - return latenciesBuilder_; - } - - private double timeElapsed_ ; - /** - * optional double time_elapsed = 3; - */ - public double getTimeElapsed() { - return timeElapsed_; - } - /** - * optional double time_elapsed = 3; - */ - public Builder setTimeElapsed(double value) { - - timeElapsed_ = value; - onChanged(); - return this; - } - /** - * optional double time_elapsed = 3; - */ - public Builder clearTimeElapsed() { - - timeElapsed_ = 0D; - onChanged(); - return this; - } - - private double timeUser_ ; - /** - * optional double time_user = 4; - */ - public double getTimeUser() { - return timeUser_; - } - /** - * optional double time_user = 4; - */ - public Builder setTimeUser(double value) { - - timeUser_ = value; - onChanged(); - return this; - } - /** - * optional double time_user = 4; - */ - public Builder clearTimeUser() { - - timeUser_ = 0D; - onChanged(); - return this; - } - - private double timeSystem_ ; - /** - * optional double time_system = 5; - */ - public double getTimeSystem() { - return timeSystem_; - } - /** - * optional double time_system = 5; - */ - public Builder setTimeSystem(double value) { - - timeSystem_ = value; - onChanged(); - return this; - } - /** - * optional double time_system = 5; - */ - public Builder clearTimeSystem() { - - timeSystem_ = 0D; - 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.ClientStats) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientStats) - private static final io.grpc.testing.ClientStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ClientStats(); - } - - public static io.grpc.testing.ClientStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ClientStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ClientStats(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ClientStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatsOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatsOrBuilder.java deleted file mode 100644 index 8652d67646..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatsOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface ClientStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ClientStats) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - boolean hasLatencies(); - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - io.grpc.testing.HistogramData getLatencies(); - /** - * optional .grpc.testing.HistogramData latencies = 1; - */ - io.grpc.testing.HistogramDataOrBuilder getLatenciesOrBuilder(); - - /** - * optional double time_elapsed = 3; - */ - double getTimeElapsed(); - - /** - * optional double time_user = 4; - */ - double getTimeUser(); - - /** - * optional double time_system = 5; - */ - double getTimeSystem(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatus.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatus.java deleted file mode 100644 index 186e38aa1b..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatus.java +++ /dev/null @@ -1,489 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ClientStatus} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ClientStatus( - 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.ClientStats.Builder subBuilder = null; - if (stats_ != null) { - subBuilder = stats_.toBuilder(); - } - stats_ = input.readMessage(io.grpc.testing.ClientStats.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stats_); - stats_ = 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.QpsTestProto.internal_static_grpc_testing_ClientStatus_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientStatus.class, io.grpc.testing.ClientStatus.Builder.class); - } - - public static final int STATS_FIELD_NUMBER = 1; - private io.grpc.testing.ClientStats stats_; - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public boolean hasStats() { - return stats_ != null; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public io.grpc.testing.ClientStats getStats() { - return stats_ == null ? io.grpc.testing.ClientStats.getDefaultInstance() : stats_; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public io.grpc.testing.ClientStatsOrBuilder getStatsOrBuilder() { - return getStats(); - } - - 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 (stats_ != null) { - output.writeMessage(1, getStats()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStats()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ClientStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientStatus 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.ClientStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ClientStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ClientStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ClientStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ClientStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ClientStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ClientStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientStatus) - io.grpc.testing.ClientStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStatus_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ClientStatus.class, io.grpc.testing.ClientStatus.Builder.class); - } - - // Construct using io.grpc.testing.ClientStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (statsBuilder_ == null) { - stats_ = null; - } else { - stats_ = null; - statsBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ClientStatus_descriptor; - } - - public io.grpc.testing.ClientStatus getDefaultInstanceForType() { - return io.grpc.testing.ClientStatus.getDefaultInstance(); - } - - public io.grpc.testing.ClientStatus build() { - io.grpc.testing.ClientStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ClientStatus buildPartial() { - io.grpc.testing.ClientStatus result = new io.grpc.testing.ClientStatus(this); - if (statsBuilder_ == null) { - result.stats_ = stats_; - } else { - result.stats_ = statsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ClientStatus) { - return mergeFrom((io.grpc.testing.ClientStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ClientStatus other) { - if (other == io.grpc.testing.ClientStatus.getDefaultInstance()) return this; - if (other.hasStats()) { - mergeStats(other.getStats()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ClientStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ClientStatus) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.grpc.testing.ClientStats stats_ = null; - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ClientStats, io.grpc.testing.ClientStats.Builder, io.grpc.testing.ClientStatsOrBuilder> statsBuilder_; - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public boolean hasStats() { - return statsBuilder_ != null || stats_ != null; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public io.grpc.testing.ClientStats getStats() { - if (statsBuilder_ == null) { - return stats_ == null ? io.grpc.testing.ClientStats.getDefaultInstance() : stats_; - } else { - return statsBuilder_.getMessage(); - } - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public Builder setStats(io.grpc.testing.ClientStats value) { - if (statsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stats_ = value; - onChanged(); - } else { - statsBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public Builder setStats( - io.grpc.testing.ClientStats.Builder builderForValue) { - if (statsBuilder_ == null) { - stats_ = builderForValue.build(); - onChanged(); - } else { - statsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public Builder mergeStats(io.grpc.testing.ClientStats value) { - if (statsBuilder_ == null) { - if (stats_ != null) { - stats_ = - io.grpc.testing.ClientStats.newBuilder(stats_).mergeFrom(value).buildPartial(); - } else { - stats_ = value; - } - onChanged(); - } else { - statsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public Builder clearStats() { - if (statsBuilder_ == null) { - stats_ = null; - onChanged(); - } else { - stats_ = null; - statsBuilder_ = null; - } - - return this; - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public io.grpc.testing.ClientStats.Builder getStatsBuilder() { - - onChanged(); - return getStatsFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - public io.grpc.testing.ClientStatsOrBuilder getStatsOrBuilder() { - if (statsBuilder_ != null) { - return statsBuilder_.getMessageOrBuilder(); - } else { - return stats_ == null ? - io.grpc.testing.ClientStats.getDefaultInstance() : stats_; - } - } - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ClientStats, io.grpc.testing.ClientStats.Builder, io.grpc.testing.ClientStatsOrBuilder> - getStatsFieldBuilder() { - if (statsBuilder_ == null) { - statsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ClientStats, io.grpc.testing.ClientStats.Builder, io.grpc.testing.ClientStatsOrBuilder>( - getStats(), - getParentForChildren(), - isClean()); - stats_ = null; - } - return statsBuilder_; - } - 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.ClientStatus) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientStatus) - private static final io.grpc.testing.ClientStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ClientStatus(); - } - - public static io.grpc.testing.ClientStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ClientStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ClientStatus(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ClientStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatusOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatusOrBuilder.java deleted file mode 100644 index fc0ba55415..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientStatusOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -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; - */ - io.grpc.testing.ClientStats getStats(); - /** - * optional .grpc.testing.ClientStats stats = 1; - */ - io.grpc.testing.ClientStatsOrBuilder getStatsOrBuilder(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ClientType.java b/benchmarks/src/generated/main/java/io/grpc/testing/ClientType.java deleted file mode 100644 index 1301a7e085..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ClientType.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf enum {@code grpc.testing.ClientType} - */ -public enum ClientType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SYNCHRONOUS_CLIENT = 0; - */ - SYNCHRONOUS_CLIENT(0, 0), - /** - * ASYNC_CLIENT = 1; - */ - ASYNC_CLIENT(1, 1), - UNRECOGNIZED(-1, -1), - ; - - /** - * SYNCHRONOUS_CLIENT = 0; - */ - public static final int SYNCHRONOUS_CLIENT_VALUE = 0; - /** - * ASYNC_CLIENT = 1; - */ - public static final int ASYNC_CLIENT_VALUE = 1; - - - 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 ClientType valueOf(int value) { - switch (value) { - case 0: return SYNCHRONOUS_CLIENT; - case 1: return ASYNC_CLIENT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ClientType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClientType findValueByNumber(int number) { - return ClientType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.getDescriptor() - .getEnumTypes().get(1); - } - - private static final ClientType[] VALUES = values(); - - public static ClientType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private ClientType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.ClientType) -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/HistogramData.java b/benchmarks/src/generated/main/java/io/grpc/testing/HistogramData.java deleted file mode 100644 index 921519b320..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/HistogramData.java +++ /dev/null @@ -1,745 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.HistogramData} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private HistogramData( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - bucket_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bucket_.add(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - bucket_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - bucket_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 17: { - - minSeen_ = input.readDouble(); - break; - } - case 25: { - - maxSeen_ = input.readDouble(); - break; - } - case 33: { - - sum_ = input.readDouble(); - break; - } - case 41: { - - sumOfSquares_ = input.readDouble(); - break; - } - case 49: { - - count_ = 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 { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - bucket_ = java.util.Collections.unmodifiableList(bucket_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_HistogramData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_HistogramData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.HistogramData.class, io.grpc.testing.HistogramData.Builder.class); - } - - private int bitField0_; - public static final int BUCKET_FIELD_NUMBER = 1; - private java.util.List bucket_; - /** - * repeated uint32 bucket = 1; - */ - public java.util.List - getBucketList() { - return bucket_; - } - /** - * repeated uint32 bucket = 1; - */ - public int getBucketCount() { - return bucket_.size(); - } - /** - * repeated uint32 bucket = 1; - */ - public int getBucket(int index) { - return bucket_.get(index); - } - private int bucketMemoizedSerializedSize = -1; - - public static final int MIN_SEEN_FIELD_NUMBER = 2; - private double minSeen_; - /** - * optional double min_seen = 2; - */ - public double getMinSeen() { - return minSeen_; - } - - public static final int MAX_SEEN_FIELD_NUMBER = 3; - private double maxSeen_; - /** - * optional double max_seen = 3; - */ - public double getMaxSeen() { - return maxSeen_; - } - - public static final int SUM_FIELD_NUMBER = 4; - private double sum_; - /** - * optional double sum = 4; - */ - public double getSum() { - return sum_; - } - - public static final int SUM_OF_SQUARES_FIELD_NUMBER = 5; - private double sumOfSquares_; - /** - * optional double sum_of_squares = 5; - */ - public double getSumOfSquares() { - return sumOfSquares_; - } - - public static final int COUNT_FIELD_NUMBER = 6; - private double count_; - /** - * optional 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getBucketList().size() > 0) { - output.writeRawVarint32(10); - output.writeRawVarint32(bucketMemoizedSerializedSize); - } - for (int i = 0; i < bucket_.size(); i++) { - output.writeUInt32NoTag(bucket_.get(i)); - } - if (minSeen_ != 0D) { - output.writeDouble(2, minSeen_); - } - if (maxSeen_ != 0D) { - output.writeDouble(3, maxSeen_); - } - if (sum_ != 0D) { - output.writeDouble(4, sum_); - } - if (sumOfSquares_ != 0D) { - output.writeDouble(5, sumOfSquares_); - } - if (count_ != 0D) { - output.writeDouble(6, count_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - 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; - if (!getBucketList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - bucketMemoizedSerializedSize = dataSize; - } - if (minSeen_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, minSeen_); - } - if (maxSeen_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, maxSeen_); - } - if (sum_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, sum_); - } - if (sumOfSquares_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, sumOfSquares_); - } - if (count_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, count_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.HistogramData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.HistogramData 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.HistogramData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.HistogramData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.HistogramData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.HistogramData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.HistogramData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.HistogramData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.HistogramData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.HistogramData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.HistogramData) - io.grpc.testing.HistogramDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_HistogramData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_HistogramData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.HistogramData.class, io.grpc.testing.HistogramData.Builder.class); - } - - // Construct using io.grpc.testing.HistogramData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - bucket_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - minSeen_ = 0D; - - maxSeen_ = 0D; - - sum_ = 0D; - - sumOfSquares_ = 0D; - - count_ = 0D; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_HistogramData_descriptor; - } - - public io.grpc.testing.HistogramData getDefaultInstanceForType() { - return io.grpc.testing.HistogramData.getDefaultInstance(); - } - - public io.grpc.testing.HistogramData build() { - io.grpc.testing.HistogramData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.HistogramData buildPartial() { - io.grpc.testing.HistogramData result = new io.grpc.testing.HistogramData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - bucket_ = java.util.Collections.unmodifiableList(bucket_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bucket_ = bucket_; - result.minSeen_ = minSeen_; - result.maxSeen_ = maxSeen_; - result.sum_ = sum_; - result.sumOfSquares_ = sumOfSquares_; - result.count_ = count_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.HistogramData) { - return mergeFrom((io.grpc.testing.HistogramData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.HistogramData other) { - if (other == io.grpc.testing.HistogramData.getDefaultInstance()) return this; - if (!other.bucket_.isEmpty()) { - if (bucket_.isEmpty()) { - bucket_ = other.bucket_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBucketIsMutable(); - bucket_.addAll(other.bucket_); - } - onChanged(); - } - if (other.getMinSeen() != 0D) { - setMinSeen(other.getMinSeen()); - } - if (other.getMaxSeen() != 0D) { - setMaxSeen(other.getMaxSeen()); - } - if (other.getSum() != 0D) { - setSum(other.getSum()); - } - if (other.getSumOfSquares() != 0D) { - setSumOfSquares(other.getSumOfSquares()); - } - if (other.getCount() != 0D) { - setCount(other.getCount()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.HistogramData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.HistogramData) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List bucket_ = java.util.Collections.emptyList(); - private void ensureBucketIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - bucket_ = new java.util.ArrayList(bucket_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint32 bucket = 1; - */ - public java.util.List - getBucketList() { - return java.util.Collections.unmodifiableList(bucket_); - } - /** - * repeated 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 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_ ; - /** - * optional double min_seen = 2; - */ - public double getMinSeen() { - return minSeen_; - } - /** - * optional double min_seen = 2; - */ - public Builder setMinSeen(double value) { - - minSeen_ = value; - onChanged(); - return this; - } - /** - * optional double min_seen = 2; - */ - public Builder clearMinSeen() { - - minSeen_ = 0D; - onChanged(); - return this; - } - - private double maxSeen_ ; - /** - * optional double max_seen = 3; - */ - public double getMaxSeen() { - return maxSeen_; - } - /** - * optional double max_seen = 3; - */ - public Builder setMaxSeen(double value) { - - maxSeen_ = value; - onChanged(); - return this; - } - /** - * optional double max_seen = 3; - */ - public Builder clearMaxSeen() { - - maxSeen_ = 0D; - onChanged(); - return this; - } - - private double sum_ ; - /** - * optional double sum = 4; - */ - public double getSum() { - return sum_; - } - /** - * optional double sum = 4; - */ - public Builder setSum(double value) { - - sum_ = value; - onChanged(); - return this; - } - /** - * optional double sum = 4; - */ - public Builder clearSum() { - - sum_ = 0D; - onChanged(); - return this; - } - - private double sumOfSquares_ ; - /** - * optional double sum_of_squares = 5; - */ - public double getSumOfSquares() { - return sumOfSquares_; - } - /** - * optional double sum_of_squares = 5; - */ - public Builder setSumOfSquares(double value) { - - sumOfSquares_ = value; - onChanged(); - return this; - } - /** - * optional double sum_of_squares = 5; - */ - public Builder clearSumOfSquares() { - - sumOfSquares_ = 0D; - onChanged(); - return this; - } - - private double count_ ; - /** - * optional double count = 6; - */ - public double getCount() { - return count_; - } - /** - * optional double count = 6; - */ - public Builder setCount(double value) { - - count_ = value; - onChanged(); - return this; - } - /** - * optional double count = 6; - */ - public Builder clearCount() { - - count_ = 0D; - 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.HistogramData) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.HistogramData) - private static final io.grpc.testing.HistogramData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.HistogramData(); - } - - public static io.grpc.testing.HistogramData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public HistogramData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new HistogramData(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.HistogramData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/HistogramDataOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/HistogramDataOrBuilder.java deleted file mode 100644 index eebb446ca3..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/HistogramDataOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface HistogramDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.HistogramData) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint32 bucket = 1; - */ - java.util.List getBucketList(); - /** - * repeated uint32 bucket = 1; - */ - int getBucketCount(); - /** - * repeated uint32 bucket = 1; - */ - int getBucket(int index); - - /** - * optional double min_seen = 2; - */ - double getMinSeen(); - - /** - * optional double max_seen = 3; - */ - double getMaxSeen(); - - /** - * optional double sum = 4; - */ - double getSum(); - - /** - * optional double sum_of_squares = 5; - */ - double getSumOfSquares(); - - /** - * optional double count = 6; - */ - double getCount(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/Mark.java b/benchmarks/src/generated/main/java/io/grpc/testing/Mark.java deleted file mode 100644 index 18079c8750..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/Mark.java +++ /dev/null @@ -1,324 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.Mark} - * - *
- * Request current stats
- * 
- */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Mark( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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; - } - } - } - } 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.QpsTestProto.internal_static_grpc_testing_Mark_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Mark_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.Mark.class, io.grpc.testing.Mark.Builder.class); - } - - 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 { - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.Mark parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.Mark 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.Mark parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.Mark parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.Mark parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.Mark parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.Mark parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.Mark parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.Mark parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.Mark prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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 implements - // @@protoc_insertion_point(builder_implements:grpc.testing.Mark) - io.grpc.testing.MarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Mark_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Mark_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.Mark.class, io.grpc.testing.Mark.Builder.class); - } - - // Construct using io.grpc.testing.Mark.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Mark_descriptor; - } - - public io.grpc.testing.Mark getDefaultInstanceForType() { - return io.grpc.testing.Mark.getDefaultInstance(); - } - - public io.grpc.testing.Mark build() { - io.grpc.testing.Mark result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.Mark buildPartial() { - io.grpc.testing.Mark result = new io.grpc.testing.Mark(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.Mark) { - return mergeFrom((io.grpc.testing.Mark)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.Mark other) { - if (other == io.grpc.testing.Mark.getDefaultInstance()) return this; - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.Mark parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.Mark) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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.Mark) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.Mark) - private static final io.grpc.testing.Mark DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.Mark(); - } - - public static io.grpc.testing.Mark getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private 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; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.Mark getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/MarkOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/MarkOrBuilder.java deleted file mode 100644 index a927d84c5c..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/MarkOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface MarkOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.Mark) - com.google.protobuf.MessageOrBuilder { -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/Payload.java b/benchmarks/src/generated/main/java/io/grpc/testing/Payload.java deleted file mode 100644 index b7ee1bad4f..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/Payload.java +++ /dev/null @@ -1,498 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.Payload} - */ -public 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.QpsTestProto.internal_static_grpc_testing_Payload_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.Payload.class, io.grpc.testing.Payload.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * 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.PayloadType getType() { - io.grpc.testing.PayloadType result = io.grpc.testing.PayloadType.valueOf(type_); - return result == null ? io.grpc.testing.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.PayloadType.COMPRESSABLE.getNumber()) { - output.writeEnum(1, type_); - } - if (!body_.isEmpty()) { - output.writeBytes(2, body_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != io.grpc.testing.PayloadType.COMPRESSABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, body_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.Payload parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.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.Payload parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.Payload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.Payload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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.Payload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.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.Payload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.Payload prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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 implements - // @@protoc_insertion_point(builder_implements:grpc.testing.Payload) - io.grpc.testing.PayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Payload_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.Payload.class, io.grpc.testing.Payload.Builder.class); - } - - // Construct using io.grpc.testing.Payload.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - - body_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_Payload_descriptor; - } - - public io.grpc.testing.Payload getDefaultInstanceForType() { - return io.grpc.testing.Payload.getDefaultInstance(); - } - - public io.grpc.testing.Payload build() { - io.grpc.testing.Payload result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.Payload buildPartial() { - io.grpc.testing.Payload result = new io.grpc.testing.Payload(this); - result.type_ = type_; - result.body_ = body_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.Payload) { - return mergeFrom((io.grpc.testing.Payload)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.Payload other) { - if (other == io.grpc.testing.Payload.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.Payload parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.Payload) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * 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.PayloadType getType() { - io.grpc.testing.PayloadType result = io.grpc.testing.PayloadType.valueOf(type_); - return result == null ? io.grpc.testing.PayloadType.UNRECOGNIZED : result; - } - /** - * optional .grpc.testing.PayloadType type = 1; - * - *
-     * The type of data in body.
-     * 
- */ - public Builder setType(io.grpc.testing.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.Payload DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.Payload(); - } - - public static io.grpc.testing.Payload getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Payload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Payload(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.Payload getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/PayloadOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/PayloadOrBuilder.java deleted file mode 100644 index da872f65c3..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/PayloadOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -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.
-   * 
- */ - int getTypeValue(); - /** - * optional .grpc.testing.PayloadType type = 1; - * - *
-   * The type of data in body.
-   * 
- */ - io.grpc.testing.PayloadType getType(); - - /** - * optional bytes body = 2; - * - *
-   * Primary contents of payload.
-   * 
- */ - com.google.protobuf.ByteString getBody(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/PayloadType.java b/benchmarks/src/generated/main/java/io/grpc/testing/PayloadType.java deleted file mode 100644 index dc3aab2743..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/PayloadType.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf enum {@code grpc.testing.PayloadType} - */ -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 - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PayloadType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PayloadType findValueByNumber(int number) { - return PayloadType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.getDescriptor() - .getEnumTypes().get(0); - } - - private static final PayloadType[] VALUES = values(); - - public static PayloadType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private PayloadType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.PayloadType) -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/QpsTestProto.java b/benchmarks/src/generated/main/java/io/grpc/testing/QpsTestProto.java deleted file mode 100644 index e49c0efcff..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/QpsTestProto.java +++ /dev/null @@ -1,239 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public final class QpsTestProto { - private QpsTestProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_StatsRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_StatsRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ServerStats_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ServerStats_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_Payload_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_Payload_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_HistogramData_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_HistogramData_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientConfig_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ClientConfig_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_Mark_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_Mark_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientArgs_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ClientArgs_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientStats_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ClientStats_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientStatus_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ClientStatus_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ServerConfig_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ServerConfig_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ServerArgs_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ServerArgs_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ServerStatus_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_ServerStatus_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_SimpleRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_grpc_testing_SimpleRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_SimpleResponse_descriptor; - 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 \001(\001\022\021\n\ttime_user\030\002 \001(\001\022" + - "\023\n\013time_system\030\003 \001(\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 \001(\001\022\020\n\010max_seen\030\003 \001(\001\022\013\n\003s" + - "um\030\004 \001(\001\022\026\n\016sum_of_squares\030\005 \001(\001\022\r\n\005coun" + - "t\030\006 \001(\001\"\205\002\n\014ClientConfig\022\026\n\016server_targe" + - "ts\030\001 \003(\t\022-\n\013client_type\030\002 \001(\0162\030.grpc.tes", - "ting.ClientType\022\022\n\nenable_ssl\030\003 \001(\010\022$\n\034o" + - "utstanding_rpcs_per_channel\030\004 \001(\005\022\027\n\017cli" + - "ent_channels\030\005 \001(\005\022\024\n\014payload_size\030\006 \001(\005" + - "\022\034\n\024async_client_threads\030\007 \001(\005\022\'\n\010rpc_ty" + - "pe\030\010 \001(\0162\025.grpc.testing.RpcType\"\006\n\004Mark\"" + - "h\n\nClientArgs\022+\n\005setup\030\001 \001(\0132\032.grpc.test" + - "ing.ClientConfigH\000\022\"\n\004mark\030\002 \001(\0132\022.grpc." + - "testing.MarkH\000B\t\n\007argtype\"{\n\013ClientStats" + - "\022.\n\tlatencies\030\001 \001(\0132\033.grpc.testing.Histo" + - "gramData\022\024\n\014time_elapsed\030\003 \001(\001\022\021\n\ttime_u", - "ser\030\004 \001(\001\022\023\n\013time_system\030\005 \001(\001\"8\n\014Client" + - "Status\022(\n\005stats\030\001 \001(\0132\031.grpc.testing.Cli" + - "entStats\"b\n\014ServerConfig\022-\n\013server_type\030" + - "\001 \001(\0162\030.grpc.testing.ServerType\022\017\n\007threa" + - "ds\030\002 \001(\005\022\022\n\nenable_ssl\030\003 \001(\010\"h\n\nServerAr" + - "gs\022+\n\005setup\030\001 \001(\0132\032.grpc.testing.ServerC" + - "onfigH\000\022\"\n\004mark\030\002 \001(\0132\022.grpc.testing.Mar" + - "kH\000B\t\n\007argtype\"F\n\014ServerStatus\022(\n\005stats\030" + - "\001 \001(\0132\031.grpc.testing.ServerStats\022\014\n\004port" + - "\030\002 \001(\005\"\200\001\n\rSimpleRequest\0220\n\rresponse_typ", - "e\030\001 \001(\0162\031.grpc.testing.PayloadType\022\025\n\rre" + - "sponse_size\030\002 \001(\005\022&\n\007payload\030\003 \001(\0132\025.grp" + - "c.testing.Payload\"8\n\016SimpleResponse\022&\n\007p" + - "ayload\030\001 \001(\0132\025.grpc.testing.Payload*?\n\013P" + - "ayloadType\022\020\n\014COMPRESSABLE\020\000\022\022\n\016UNCOMPRE" + - "SSABLE\020\001\022\n\n\006RANDOM\020\002*6\n\nClientType\022\026\n\022SY" + - "NCHRONOUS_CLIENT\020\000\022\020\n\014ASYNC_CLIENT\020\001*6\n\n" + - "ServerType\022\026\n\022SYNCHRONOUS_SERVER\020\000\022\020\n\014AS" + - "YNC_SERVER\020\001*#\n\007RpcType\022\t\n\005UNARY\020\000\022\r\n\tST" + - "REAMING\020\0012\245\001\n\013TestService\022F\n\tUnaryCall\022\033", - ".grpc.testing.SimpleRequest\032\034.grpc.testi" + - "ng.SimpleResponse\022N\n\rStreamingCall\022\033.grp" + - "c.testing.SimpleRequest\032\034.grpc.testing.S" + - "impleResponse(\0010\0012\224\001\n\006Worker\022C\n\007RunTest\022" + - "\030.grpc.testing.ClientArgs\032\032.grpc.testing" + - ".ClientStatus(\0010\001\022E\n\tRunServer\022\030.grpc.te" + - "sting.ServerArgs\032\032.grpc.testing.ServerSt" + - "atus(\0010\001B!\n\017io.grpc.testingB\014QpsTestProt" + - "oP\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_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/java/io/grpc/testing/RpcType.java b/benchmarks/src/generated/main/java/io/grpc/testing/RpcType.java deleted file mode 100644 index b5785cf086..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/RpcType.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf enum {@code grpc.testing.RpcType} - */ -public enum RpcType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNARY = 0; - */ - UNARY(0, 0), - /** - * STREAMING = 1; - */ - STREAMING(1, 1), - UNRECOGNIZED(-1, -1), - ; - - /** - * UNARY = 0; - */ - public static final int UNARY_VALUE = 0; - /** - * STREAMING = 1; - */ - public static final int STREAMING_VALUE = 1; - - - 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 RpcType valueOf(int value) { - switch (value) { - case 0: return UNARY; - case 1: return STREAMING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RpcType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RpcType findValueByNumber(int number) { - return RpcType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.getDescriptor() - .getEnumTypes().get(3); - } - - private static final RpcType[] VALUES = values(); - - public static RpcType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RpcType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.RpcType) -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerArgs.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerArgs.java deleted file mode 100644 index 2561483c28..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerArgs.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ServerArgs} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ServerArgs( - 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.ServerConfig.Builder subBuilder = null; - if (argtypeCase_ == 1) { - subBuilder = ((io.grpc.testing.ServerConfig) argtype_).toBuilder(); - } - argtype_ = - input.readMessage(io.grpc.testing.ServerConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.grpc.testing.ServerConfig) argtype_); - argtype_ = subBuilder.buildPartial(); - } - argtypeCase_ = 1; - break; - } - case 18: { - io.grpc.testing.Mark.Builder subBuilder = null; - if (argtypeCase_ == 2) { - subBuilder = ((io.grpc.testing.Mark) argtype_).toBuilder(); - } - argtype_ = - input.readMessage(io.grpc.testing.Mark.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.grpc.testing.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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerArgs_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerArgs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerArgs.class, io.grpc.testing.ServerArgs.Builder.class); - } - - private int argtypeCase_ = 0; - private java.lang.Object argtype_; - public enum ArgtypeCase - implements com.google.protobuf.Internal.EnumLite { - SETUP(1), - MARK(2), - ARGTYPE_NOT_SET(0); - private int value = 0; - private ArgtypeCase(int value) { - this.value = value; - } - public static ArgtypeCase valueOf(int value) { - switch (value) { - case 1: return SETUP; - case 2: return MARK; - case 0: return ARGTYPE_NOT_SET; - default: throw new java.lang.IllegalArgumentException( - "Value is undefined for this oneof enum."); - } - } - public int getNumber() { - return this.value; - } - }; - - public ArgtypeCase - getArgtypeCase() { - return ArgtypeCase.valueOf( - argtypeCase_); - } - - public static final int SETUP_FIELD_NUMBER = 1; - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - public io.grpc.testing.ServerConfig getSetup() { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ServerConfig) argtype_; - } - return io.grpc.testing.ServerConfig.getDefaultInstance(); - } - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - public io.grpc.testing.ServerConfigOrBuilder getSetupOrBuilder() { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ServerConfig) argtype_; - } - return io.grpc.testing.ServerConfig.getDefaultInstance(); - } - - public static final int MARK_FIELD_NUMBER = 2; - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.Mark getMark() { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.MarkOrBuilder getMarkOrBuilder() { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - - 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 (argtypeCase_ == 1) { - output.writeMessage(1, (io.grpc.testing.ServerConfig) argtype_); - } - if (argtypeCase_ == 2) { - output.writeMessage(2, (io.grpc.testing.Mark) argtype_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (argtypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (io.grpc.testing.ServerConfig) argtype_); - } - if (argtypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (io.grpc.testing.Mark) argtype_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ServerArgs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerArgs 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.ServerArgs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerArgs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ServerArgs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ServerArgs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerArgs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ServerArgs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerArgs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ServerArgs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ServerArgs) - io.grpc.testing.ServerArgsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerArgs_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerArgs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerArgs.class, io.grpc.testing.ServerArgs.Builder.class); - } - - // Construct using io.grpc.testing.ServerArgs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - argtypeCase_ = 0; - argtype_ = null; - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerArgs_descriptor; - } - - public io.grpc.testing.ServerArgs getDefaultInstanceForType() { - return io.grpc.testing.ServerArgs.getDefaultInstance(); - } - - public io.grpc.testing.ServerArgs build() { - io.grpc.testing.ServerArgs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ServerArgs buildPartial() { - io.grpc.testing.ServerArgs result = new io.grpc.testing.ServerArgs(this); - if (argtypeCase_ == 1) { - if (setupBuilder_ == null) { - result.argtype_ = argtype_; - } else { - result.argtype_ = setupBuilder_.build(); - } - } - if (argtypeCase_ == 2) { - if (markBuilder_ == null) { - result.argtype_ = argtype_; - } else { - result.argtype_ = markBuilder_.build(); - } - } - result.argtypeCase_ = argtypeCase_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ServerArgs) { - return mergeFrom((io.grpc.testing.ServerArgs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ServerArgs other) { - if (other == io.grpc.testing.ServerArgs.getDefaultInstance()) return this; - switch (other.getArgtypeCase()) { - case SETUP: { - mergeSetup(other.getSetup()); - break; - } - case MARK: { - mergeMark(other.getMark()); - break; - } - case ARGTYPE_NOT_SET: { - break; - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ServerArgs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ServerArgs) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int argtypeCase_ = 0; - private java.lang.Object argtype_; - public ArgtypeCase - getArgtypeCase() { - return ArgtypeCase.valueOf( - argtypeCase_); - } - - public Builder clearArgtype() { - argtypeCase_ = 0; - argtype_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ServerConfig, io.grpc.testing.ServerConfig.Builder, io.grpc.testing.ServerConfigOrBuilder> setupBuilder_; - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - public io.grpc.testing.ServerConfig getSetup() { - if (setupBuilder_ == null) { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ServerConfig) argtype_; - } - return io.grpc.testing.ServerConfig.getDefaultInstance(); - } else { - if (argtypeCase_ == 1) { - return setupBuilder_.getMessage(); - } - return io.grpc.testing.ServerConfig.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - public Builder setSetup(io.grpc.testing.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( - io.grpc.testing.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(io.grpc.testing.ServerConfig value) { - if (setupBuilder_ == null) { - if (argtypeCase_ == 1 && - argtype_ != io.grpc.testing.ServerConfig.getDefaultInstance()) { - argtype_ = io.grpc.testing.ServerConfig.newBuilder((io.grpc.testing.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 io.grpc.testing.ServerConfig.Builder getSetupBuilder() { - return getSetupFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - public io.grpc.testing.ServerConfigOrBuilder getSetupOrBuilder() { - if ((argtypeCase_ == 1) && (setupBuilder_ != null)) { - return setupBuilder_.getMessageOrBuilder(); - } else { - if (argtypeCase_ == 1) { - return (io.grpc.testing.ServerConfig) argtype_; - } - return io.grpc.testing.ServerConfig.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ServerConfig, io.grpc.testing.ServerConfig.Builder, io.grpc.testing.ServerConfigOrBuilder> - getSetupFieldBuilder() { - if (setupBuilder_ == null) { - if (!(argtypeCase_ == 1)) { - argtype_ = io.grpc.testing.ServerConfig.getDefaultInstance(); - } - setupBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ServerConfig, io.grpc.testing.ServerConfig.Builder, io.grpc.testing.ServerConfigOrBuilder>( - (io.grpc.testing.ServerConfig) argtype_, - getParentForChildren(), - isClean()); - argtype_ = null; - } - argtypeCase_ = 1; - onChanged();; - return setupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder> markBuilder_; - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.Mark getMark() { - if (markBuilder_ == null) { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } else { - if (argtypeCase_ == 2) { - return markBuilder_.getMessage(); - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - public Builder setMark(io.grpc.testing.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( - io.grpc.testing.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(io.grpc.testing.Mark value) { - if (markBuilder_ == null) { - if (argtypeCase_ == 2 && - argtype_ != io.grpc.testing.Mark.getDefaultInstance()) { - argtype_ = io.grpc.testing.Mark.newBuilder((io.grpc.testing.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 io.grpc.testing.Mark.Builder getMarkBuilder() { - return getMarkFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - public io.grpc.testing.MarkOrBuilder getMarkOrBuilder() { - if ((argtypeCase_ == 2) && (markBuilder_ != null)) { - return markBuilder_.getMessageOrBuilder(); - } else { - if (argtypeCase_ == 2) { - return (io.grpc.testing.Mark) argtype_; - } - return io.grpc.testing.Mark.getDefaultInstance(); - } - } - /** - * optional .grpc.testing.Mark mark = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder> - getMarkFieldBuilder() { - if (markBuilder_ == null) { - if (!(argtypeCase_ == 2)) { - argtype_ = io.grpc.testing.Mark.getDefaultInstance(); - } - markBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder>( - (io.grpc.testing.Mark) argtype_, - getParentForChildren(), - isClean()); - argtype_ = null; - } - argtypeCase_ = 2; - onChanged();; - return markBuilder_; - } - 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.ServerArgs) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ServerArgs) - private static final io.grpc.testing.ServerArgs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ServerArgs(); - } - - public static io.grpc.testing.ServerArgs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ServerArgs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ServerArgs(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ServerArgs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerArgsOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerArgsOrBuilder.java deleted file mode 100644 index 49dee628a1..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerArgsOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface ServerArgsOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ServerArgs) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - io.grpc.testing.ServerConfig getSetup(); - /** - * optional .grpc.testing.ServerConfig setup = 1; - */ - io.grpc.testing.ServerConfigOrBuilder getSetupOrBuilder(); - - /** - * optional .grpc.testing.Mark mark = 2; - */ - io.grpc.testing.Mark getMark(); - /** - * optional .grpc.testing.Mark mark = 2; - */ - io.grpc.testing.MarkOrBuilder getMarkOrBuilder(); - - public io.grpc.testing.ServerArgs.ArgtypeCase getArgtypeCase(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerConfig.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerConfig.java deleted file mode 100644 index f2dd8b5140..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerConfig.java +++ /dev/null @@ -1,505 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ServerConfig} - */ -public 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_ = 0; - threads_ = 0; - enableSsl_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ServerConfig( - 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(); - - serverType_ = rawValue; - break; - } - case 16: { - - threads_ = input.readInt32(); - break; - } - case 24: { - - 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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerConfig_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerConfig.class, io.grpc.testing.ServerConfig.Builder.class); - } - - public static final int SERVER_TYPE_FIELD_NUMBER = 1; - private int serverType_; - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public int getServerTypeValue() { - return serverType_; - } - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public io.grpc.testing.ServerType getServerType() { - io.grpc.testing.ServerType result = io.grpc.testing.ServerType.valueOf(serverType_); - return result == null ? io.grpc.testing.ServerType.UNRECOGNIZED : result; - } - - public static final int THREADS_FIELD_NUMBER = 2; - private int threads_; - /** - * optional int32 threads = 2; - */ - public int getThreads() { - return threads_; - } - - public static final int ENABLE_SSL_FIELD_NUMBER = 3; - private boolean enableSsl_; - /** - * optional bool enable_ssl = 3; - */ - 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (serverType_ != io.grpc.testing.ServerType.SYNCHRONOUS_SERVER.getNumber()) { - output.writeEnum(1, serverType_); - } - if (threads_ != 0) { - output.writeInt32(2, threads_); - } - if (enableSsl_ != false) { - output.writeBool(3, enableSsl_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (serverType_ != io.grpc.testing.ServerType.SYNCHRONOUS_SERVER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, serverType_); - } - if (threads_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, threads_); - } - if (enableSsl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableSsl_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ServerConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerConfig 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.ServerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ServerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ServerConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ServerConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ServerConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ServerConfig) - io.grpc.testing.ServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerConfig_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerConfig.class, io.grpc.testing.ServerConfig.Builder.class); - } - - // Construct using io.grpc.testing.ServerConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - serverType_ = 0; - - threads_ = 0; - - enableSsl_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerConfig_descriptor; - } - - public io.grpc.testing.ServerConfig getDefaultInstanceForType() { - return io.grpc.testing.ServerConfig.getDefaultInstance(); - } - - public io.grpc.testing.ServerConfig build() { - io.grpc.testing.ServerConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ServerConfig buildPartial() { - io.grpc.testing.ServerConfig result = new io.grpc.testing.ServerConfig(this); - result.serverType_ = serverType_; - result.threads_ = threads_; - result.enableSsl_ = enableSsl_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ServerConfig) { - return mergeFrom((io.grpc.testing.ServerConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ServerConfig other) { - if (other == io.grpc.testing.ServerConfig.getDefaultInstance()) return this; - if (other.serverType_ != 0) { - setServerTypeValue(other.getServerTypeValue()); - } - if (other.getThreads() != 0) { - setThreads(other.getThreads()); - } - if (other.getEnableSsl() != false) { - setEnableSsl(other.getEnableSsl()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ServerConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ServerConfig) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int serverType_ = 0; - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public int getServerTypeValue() { - return serverType_; - } - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public Builder setServerTypeValue(int value) { - serverType_ = value; - onChanged(); - return this; - } - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public io.grpc.testing.ServerType getServerType() { - io.grpc.testing.ServerType result = io.grpc.testing.ServerType.valueOf(serverType_); - return result == null ? io.grpc.testing.ServerType.UNRECOGNIZED : result; - } - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public Builder setServerType(io.grpc.testing.ServerType value) { - if (value == null) { - throw new NullPointerException(); - } - - serverType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - public Builder clearServerType() { - - serverType_ = 0; - onChanged(); - return this; - } - - private int threads_ ; - /** - * optional int32 threads = 2; - */ - public int getThreads() { - return threads_; - } - /** - * optional int32 threads = 2; - */ - public Builder setThreads(int value) { - - threads_ = value; - onChanged(); - return this; - } - /** - * optional int32 threads = 2; - */ - public Builder clearThreads() { - - threads_ = 0; - onChanged(); - return this; - } - - private boolean enableSsl_ ; - /** - * optional bool enable_ssl = 3; - */ - public boolean getEnableSsl() { - return enableSsl_; - } - /** - * optional bool enable_ssl = 3; - */ - public Builder setEnableSsl(boolean value) { - - enableSsl_ = value; - onChanged(); - return this; - } - /** - * optional bool enable_ssl = 3; - */ - public Builder clearEnableSsl() { - - enableSsl_ = 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.ServerConfig) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ServerConfig) - private static final io.grpc.testing.ServerConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ServerConfig(); - } - - public static io.grpc.testing.ServerConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ServerConfig(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ServerConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerConfigOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerConfigOrBuilder.java deleted file mode 100644 index f406d345a5..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerConfigOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface ServerConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ServerConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - int getServerTypeValue(); - /** - * optional .grpc.testing.ServerType server_type = 1; - */ - io.grpc.testing.ServerType getServerType(); - - /** - * optional int32 threads = 2; - */ - int getThreads(); - - /** - * optional bool enable_ssl = 3; - */ - boolean getEnableSsl(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStats.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerStats.java deleted file mode 100644 index 98c9eee664..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStats.java +++ /dev/null @@ -1,527 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ServerStats} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ServerStats( - 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 9: { - - timeElapsed_ = input.readDouble(); - break; - } - case 17: { - - timeUser_ = input.readDouble(); - break; - } - case 25: { - - 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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStats_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerStats.class, io.grpc.testing.ServerStats.Builder.class); - } - - public static final int TIME_ELAPSED_FIELD_NUMBER = 1; - private double timeElapsed_; - /** - * optional double time_elapsed = 1; - * - *
-   * wall clock time
-   * 
- */ - public double getTimeElapsed() { - return timeElapsed_; - } - - public static final int TIME_USER_FIELD_NUMBER = 2; - private double timeUser_; - /** - * optional 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_; - /** - * optional 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timeElapsed_ != 0D) { - output.writeDouble(1, timeElapsed_); - } - if (timeUser_ != 0D) { - output.writeDouble(2, timeUser_); - } - if (timeSystem_ != 0D) { - output.writeDouble(3, timeSystem_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timeElapsed_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, timeElapsed_); - } - if (timeUser_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, timeUser_); - } - if (timeSystem_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, timeSystem_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ServerStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerStats 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.ServerStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ServerStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ServerStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ServerStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ServerStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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 implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ServerStats) - io.grpc.testing.ServerStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStats_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerStats.class, io.grpc.testing.ServerStats.Builder.class); - } - - // Construct using io.grpc.testing.ServerStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - timeElapsed_ = 0D; - - timeUser_ = 0D; - - timeSystem_ = 0D; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStats_descriptor; - } - - public io.grpc.testing.ServerStats getDefaultInstanceForType() { - return io.grpc.testing.ServerStats.getDefaultInstance(); - } - - public io.grpc.testing.ServerStats build() { - io.grpc.testing.ServerStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ServerStats buildPartial() { - io.grpc.testing.ServerStats result = new io.grpc.testing.ServerStats(this); - result.timeElapsed_ = timeElapsed_; - result.timeUser_ = timeUser_; - result.timeSystem_ = timeSystem_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ServerStats) { - return mergeFrom((io.grpc.testing.ServerStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ServerStats other) { - if (other == io.grpc.testing.ServerStats.getDefaultInstance()) return this; - if (other.getTimeElapsed() != 0D) { - setTimeElapsed(other.getTimeElapsed()); - } - if (other.getTimeUser() != 0D) { - setTimeUser(other.getTimeUser()); - } - if (other.getTimeSystem() != 0D) { - setTimeSystem(other.getTimeSystem()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ServerStats parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ServerStats) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private double timeElapsed_ ; - /** - * optional double time_elapsed = 1; - * - *
-     * wall clock time
-     * 
- */ - public double getTimeElapsed() { - return timeElapsed_; - } - /** - * optional double time_elapsed = 1; - * - *
-     * wall clock time
-     * 
- */ - public Builder setTimeElapsed(double value) { - - timeElapsed_ = value; - onChanged(); - return this; - } - /** - * optional double time_elapsed = 1; - * - *
-     * wall clock time
-     * 
- */ - public Builder clearTimeElapsed() { - - timeElapsed_ = 0D; - onChanged(); - return this; - } - - private double timeUser_ ; - /** - * optional double time_user = 2; - * - *
-     * user time used by the server process and threads
-     * 
- */ - public double getTimeUser() { - return timeUser_; - } - /** - * optional double time_user = 2; - * - *
-     * user time used by the server process and threads
-     * 
- */ - public Builder setTimeUser(double value) { - - timeUser_ = value; - onChanged(); - return this; - } - /** - * optional double time_user = 2; - * - *
-     * user time used by the server process and threads
-     * 
- */ - public Builder clearTimeUser() { - - timeUser_ = 0D; - onChanged(); - return this; - } - - private double timeSystem_ ; - /** - * optional double time_system = 3; - * - *
-     * server time used by the server process and all threads
-     * 
- */ - public double getTimeSystem() { - return timeSystem_; - } - /** - * optional double time_system = 3; - * - *
-     * server time used by the server process and all threads
-     * 
- */ - public Builder setTimeSystem(double value) { - - timeSystem_ = value; - onChanged(); - return this; - } - /** - * optional double time_system = 3; - * - *
-     * server time used by the server process and all threads
-     * 
- */ - public Builder clearTimeSystem() { - - timeSystem_ = 0D; - 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.ServerStats) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ServerStats) - private static final io.grpc.testing.ServerStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ServerStats(); - } - - public static io.grpc.testing.ServerStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ServerStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ServerStats(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ServerStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatsOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatsOrBuilder.java deleted file mode 100644 index 9d41f20ad8..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatsOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface ServerStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ServerStats) - com.google.protobuf.MessageOrBuilder { - - /** - * optional double time_elapsed = 1; - * - *
-   * wall clock time
-   * 
- */ - double getTimeElapsed(); - - /** - * optional double time_user = 2; - * - *
-   * user time used by the server process and threads
-   * 
- */ - double getTimeUser(); - - /** - * optional double time_system = 3; - * - *
-   * server time used by the server process and all threads
-   * 
- */ - double getTimeSystem(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatus.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatus.java deleted file mode 100644 index aa2111437f..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatus.java +++ /dev/null @@ -1,543 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.ServerStatus} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ServerStatus( - 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.ServerStats.Builder subBuilder = null; - if (stats_ != null) { - subBuilder = stats_.toBuilder(); - } - stats_ = input.readMessage(io.grpc.testing.ServerStats.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stats_); - stats_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - 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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStatus_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerStatus.class, io.grpc.testing.ServerStatus.Builder.class); - } - - public static final int STATS_FIELD_NUMBER = 1; - private io.grpc.testing.ServerStats stats_; - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public boolean hasStats() { - return stats_ != null; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public io.grpc.testing.ServerStats getStats() { - return stats_ == null ? io.grpc.testing.ServerStats.getDefaultInstance() : stats_; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public io.grpc.testing.ServerStatsOrBuilder getStatsOrBuilder() { - return getStats(); - } - - public static final int PORT_FIELD_NUMBER = 2; - private int port_; - /** - * optional 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (stats_ != null) { - output.writeMessage(1, getStats()); - } - if (port_ != 0) { - output.writeInt32(2, port_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStats()); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.ServerStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerStatus 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.ServerStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.ServerStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.ServerStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.ServerStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.ServerStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.ServerStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.ServerStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ServerStatus) - io.grpc.testing.ServerStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStatus_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.ServerStatus.class, io.grpc.testing.ServerStatus.Builder.class); - } - - // Construct using io.grpc.testing.ServerStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (statsBuilder_ == null) { - stats_ = null; - } else { - stats_ = null; - statsBuilder_ = null; - } - port_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_ServerStatus_descriptor; - } - - public io.grpc.testing.ServerStatus getDefaultInstanceForType() { - return io.grpc.testing.ServerStatus.getDefaultInstance(); - } - - public io.grpc.testing.ServerStatus build() { - io.grpc.testing.ServerStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.ServerStatus buildPartial() { - io.grpc.testing.ServerStatus result = new io.grpc.testing.ServerStatus(this); - if (statsBuilder_ == null) { - result.stats_ = stats_; - } else { - result.stats_ = statsBuilder_.build(); - } - result.port_ = port_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.ServerStatus) { - return mergeFrom((io.grpc.testing.ServerStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.ServerStatus other) { - if (other == io.grpc.testing.ServerStatus.getDefaultInstance()) return this; - if (other.hasStats()) { - mergeStats(other.getStats()); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.ServerStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.ServerStatus) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.grpc.testing.ServerStats stats_ = null; - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ServerStats, io.grpc.testing.ServerStats.Builder, io.grpc.testing.ServerStatsOrBuilder> statsBuilder_; - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public boolean hasStats() { - return statsBuilder_ != null || stats_ != null; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public io.grpc.testing.ServerStats getStats() { - if (statsBuilder_ == null) { - return stats_ == null ? io.grpc.testing.ServerStats.getDefaultInstance() : stats_; - } else { - return statsBuilder_.getMessage(); - } - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public Builder setStats(io.grpc.testing.ServerStats value) { - if (statsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stats_ = value; - onChanged(); - } else { - statsBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public Builder setStats( - io.grpc.testing.ServerStats.Builder builderForValue) { - if (statsBuilder_ == null) { - stats_ = builderForValue.build(); - onChanged(); - } else { - statsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public Builder mergeStats(io.grpc.testing.ServerStats value) { - if (statsBuilder_ == null) { - if (stats_ != null) { - stats_ = - io.grpc.testing.ServerStats.newBuilder(stats_).mergeFrom(value).buildPartial(); - } else { - stats_ = value; - } - onChanged(); - } else { - statsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public Builder clearStats() { - if (statsBuilder_ == null) { - stats_ = null; - onChanged(); - } else { - stats_ = null; - statsBuilder_ = null; - } - - return this; - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public io.grpc.testing.ServerStats.Builder getStatsBuilder() { - - onChanged(); - return getStatsFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - public io.grpc.testing.ServerStatsOrBuilder getStatsOrBuilder() { - if (statsBuilder_ != null) { - return statsBuilder_.getMessageOrBuilder(); - } else { - return stats_ == null ? - io.grpc.testing.ServerStats.getDefaultInstance() : stats_; - } - } - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ServerStats, io.grpc.testing.ServerStats.Builder, io.grpc.testing.ServerStatsOrBuilder> - getStatsFieldBuilder() { - if (statsBuilder_ == null) { - statsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.ServerStats, io.grpc.testing.ServerStats.Builder, io.grpc.testing.ServerStatsOrBuilder>( - getStats(), - getParentForChildren(), - isClean()); - stats_ = null; - } - return statsBuilder_; - } - - private int port_ ; - /** - * optional int32 port = 2; - */ - public int getPort() { - return port_; - } - /** - * optional int32 port = 2; - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - * optional int32 port = 2; - */ - public Builder clearPort() { - - port_ = 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.ServerStatus) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ServerStatus) - private static final io.grpc.testing.ServerStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.ServerStatus(); - } - - public static io.grpc.testing.ServerStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ServerStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ServerStatus(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.ServerStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatusOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatusOrBuilder.java deleted file mode 100644 index 338703bf54..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerStatusOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -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; - */ - io.grpc.testing.ServerStats getStats(); - /** - * optional .grpc.testing.ServerStats stats = 1; - */ - io.grpc.testing.ServerStatsOrBuilder getStatsOrBuilder(); - - /** - * optional int32 port = 2; - */ - int getPort(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/ServerType.java b/benchmarks/src/generated/main/java/io/grpc/testing/ServerType.java deleted file mode 100644 index 7fb1881c00..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/ServerType.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf enum {@code grpc.testing.ServerType} - */ -public enum ServerType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SYNCHRONOUS_SERVER = 0; - */ - SYNCHRONOUS_SERVER(0, 0), - /** - * ASYNC_SERVER = 1; - */ - ASYNC_SERVER(1, 1), - UNRECOGNIZED(-1, -1), - ; - - /** - * SYNCHRONOUS_SERVER = 0; - */ - public static final int SYNCHRONOUS_SERVER_VALUE = 0; - /** - * ASYNC_SERVER = 1; - */ - public static final int ASYNC_SERVER_VALUE = 1; - - - 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 ServerType valueOf(int value) { - switch (value) { - case 0: return SYNCHRONOUS_SERVER; - case 1: return ASYNC_SERVER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServerType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServerType findValueByNumber(int number) { - return ServerType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.getDescriptor() - .getEnumTypes().get(2); - } - - private static final ServerType[] VALUES = values(); - - public static ServerType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private ServerType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.ServerType) -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleRequest.java b/benchmarks/src/generated/main/java/io/grpc/testing/SimpleRequest.java deleted file mode 100644 index 5914e3bdaa..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleRequest.java +++ /dev/null @@ -1,726 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.SimpleRequest} - */ -public 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; - } - - @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.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(io.grpc.testing.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.QpsTestProto.internal_static_grpc_testing_SimpleRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.SimpleRequest.class, io.grpc.testing.SimpleRequest.Builder.class); - } - - public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; - private int responseType_; - /** - * optional .grpc.testing.PayloadType response_type = 1; - * - *
-   * Desired payload type in the response from the server.
-   * If response_type is RANDOM, server randomly chooses one from other formats.
-   * 
- */ - 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.PayloadType getResponseType() { - io.grpc.testing.PayloadType result = io.grpc.testing.PayloadType.valueOf(responseType_); - return result == null ? io.grpc.testing.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.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.Payload getPayload() { - return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_; - } - /** - * optional .grpc.testing.Payload payload = 3; - * - *
-   * Optional input payload sent along with the request.
-   * 
- */ - public io.grpc.testing.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 (responseType_ != io.grpc.testing.PayloadType.COMPRESSABLE.getNumber()) { - output.writeEnum(1, responseType_); - } - if (responseSize_ != 0) { - output.writeInt32(2, responseSize_); - } - if (payload_ != null) { - output.writeMessage(3, getPayload()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (responseType_ != io.grpc.testing.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()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.SimpleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.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.SimpleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.SimpleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.SimpleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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.SimpleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.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.SimpleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.SimpleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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 implements - // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleRequest) - io.grpc.testing.SimpleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.SimpleRequest.class, io.grpc.testing.SimpleRequest.Builder.class); - } - - // Construct using io.grpc.testing.SimpleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - responseType_ = 0; - - responseSize_ = 0; - - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleRequest_descriptor; - } - - public io.grpc.testing.SimpleRequest getDefaultInstanceForType() { - return io.grpc.testing.SimpleRequest.getDefaultInstance(); - } - - public io.grpc.testing.SimpleRequest build() { - io.grpc.testing.SimpleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.SimpleRequest buildPartial() { - io.grpc.testing.SimpleRequest result = new io.grpc.testing.SimpleRequest(this); - result.responseType_ = responseType_; - result.responseSize_ = responseSize_; - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.SimpleRequest) { - return mergeFrom((io.grpc.testing.SimpleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.SimpleRequest other) { - if (other == io.grpc.testing.SimpleRequest.getDefaultInstance()) return this; - if (other.responseType_ != 0) { - setResponseTypeValue(other.getResponseTypeValue()); - } - if (other.getResponseSize() != 0) { - setResponseSize(other.getResponseSize()); - } - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.SimpleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.SimpleRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int responseType_ = 0; - /** - * optional .grpc.testing.PayloadType response_type = 1; - * - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, server randomly chooses one from other formats.
-     * 
- */ - 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.PayloadType getResponseType() { - io.grpc.testing.PayloadType result = io.grpc.testing.PayloadType.valueOf(responseType_); - return result == null ? io.grpc.testing.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.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.Payload payload_ = null; - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Payload, io.grpc.testing.Payload.Builder, io.grpc.testing.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.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? io.grpc.testing.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.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.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.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - io.grpc.testing.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.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.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - io.grpc.testing.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.Payload, io.grpc.testing.Payload.Builder, io.grpc.testing.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Payload, io.grpc.testing.Payload.Builder, io.grpc.testing.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.SimpleRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.SimpleRequest) - private static final io.grpc.testing.SimpleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.SimpleRequest(); - } - - public static io.grpc.testing.SimpleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public SimpleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new SimpleRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.SimpleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleRequestOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/SimpleRequestOrBuilder.java deleted file mode 100644 index a863b5c751..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleRequestOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -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.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.Payload getPayload(); - /** - * optional .grpc.testing.Payload payload = 3; - * - *
-   * Optional input payload sent along with the request.
-   * 
- */ - io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleResponse.java b/benchmarks/src/generated/main/java/io/grpc/testing/SimpleResponse.java deleted file mode 100644 index d40d7380a3..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleResponse.java +++ /dev/null @@ -1,489 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.SimpleResponse} - */ -public 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 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.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(io.grpc.testing.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.QpsTestProto.internal_static_grpc_testing_SimpleResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.SimpleResponse.class, io.grpc.testing.SimpleResponse.Builder.class); - } - - public static final int PAYLOAD_FIELD_NUMBER = 1; - private io.grpc.testing.Payload payload_; - /** - * optional .grpc.testing.Payload payload = 1; - */ - public boolean hasPayload() { - return payload_ != null; - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public io.grpc.testing.Payload getPayload() { - return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_; - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public io.grpc.testing.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()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPayload()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.SimpleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.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.SimpleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.SimpleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.SimpleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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.SimpleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.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.SimpleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.SimpleResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleResponse) - io.grpc.testing.SimpleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.SimpleResponse.class, io.grpc.testing.SimpleResponse.Builder.class); - } - - // Construct using io.grpc.testing.SimpleResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_SimpleResponse_descriptor; - } - - public io.grpc.testing.SimpleResponse getDefaultInstanceForType() { - return io.grpc.testing.SimpleResponse.getDefaultInstance(); - } - - public io.grpc.testing.SimpleResponse build() { - io.grpc.testing.SimpleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.SimpleResponse buildPartial() { - io.grpc.testing.SimpleResponse result = new io.grpc.testing.SimpleResponse(this); - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.SimpleResponse) { - return mergeFrom((io.grpc.testing.SimpleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.SimpleResponse other) { - if (other == io.grpc.testing.SimpleResponse.getDefaultInstance()) return this; - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.SimpleResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.SimpleResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.grpc.testing.Payload payload_ = null; - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Payload, io.grpc.testing.Payload.Builder, io.grpc.testing.PayloadOrBuilder> payloadBuilder_; - /** - * optional .grpc.testing.Payload payload = 1; - */ - public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public io.grpc.testing.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public Builder setPayload(io.grpc.testing.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; - */ - public Builder setPayload( - io.grpc.testing.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public Builder mergePayload(io.grpc.testing.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - io.grpc.testing.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - payloadBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; - payloadBuilder_ = null; - } - - return this; - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public io.grpc.testing.Payload.Builder getPayloadBuilder() { - - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - public io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - io.grpc.testing.Payload.getDefaultInstance() : payload_; - } - } - /** - * optional .grpc.testing.Payload payload = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Payload, io.grpc.testing.Payload.Builder, io.grpc.testing.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.grpc.testing.Payload, io.grpc.testing.Payload.Builder, io.grpc.testing.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.SimpleResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.SimpleResponse) - private static final io.grpc.testing.SimpleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.SimpleResponse(); - } - - public static io.grpc.testing.SimpleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public SimpleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new SimpleResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.SimpleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleResponseOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/SimpleResponseOrBuilder.java deleted file mode 100644 index 56823c1abd..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/SimpleResponseOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -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; - */ - io.grpc.testing.Payload getPayload(); - /** - * optional .grpc.testing.Payload payload = 1; - */ - io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder(); -} diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/StatsRequest.java b/benchmarks/src/generated/main/java/io/grpc/testing/StatsRequest.java deleted file mode 100644 index 5efc6d18a6..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/StatsRequest.java +++ /dev/null @@ -1,387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -/** - * Protobuf type {@code grpc.testing.StatsRequest} - */ -public 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private StatsRequest( - 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: { - - 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 { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_StatsRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_StatsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.StatsRequest.class, io.grpc.testing.StatsRequest.Builder.class); - } - - public static final int TEST_NUM_FIELD_NUMBER = 1; - private int testNum_; - /** - * 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 (testNum_ != 0) { - output.writeInt32(1, testNum_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (testNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, testNum_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static io.grpc.testing.StatsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.StatsRequest 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.StatsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.testing.StatsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.testing.StatsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.StatsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static io.grpc.testing.StatsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static io.grpc.testing.StatsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static io.grpc.testing.StatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static io.grpc.testing.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 DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.testing.StatsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? 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 implements - // @@protoc_insertion_point(builder_implements:grpc.testing.StatsRequest) - io.grpc.testing.StatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_StatsRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_StatsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.testing.StatsRequest.class, io.grpc.testing.StatsRequest.Builder.class); - } - - // Construct using io.grpc.testing.StatsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - testNum_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.testing.QpsTestProto.internal_static_grpc_testing_StatsRequest_descriptor; - } - - public io.grpc.testing.StatsRequest getDefaultInstanceForType() { - return io.grpc.testing.StatsRequest.getDefaultInstance(); - } - - public io.grpc.testing.StatsRequest build() { - io.grpc.testing.StatsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.testing.StatsRequest buildPartial() { - io.grpc.testing.StatsRequest result = new io.grpc.testing.StatsRequest(this); - result.testNum_ = testNum_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.testing.StatsRequest) { - return mergeFrom((io.grpc.testing.StatsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.testing.StatsRequest other) { - if (other == io.grpc.testing.StatsRequest.getDefaultInstance()) return this; - if (other.getTestNum() != 0) { - setTestNum(other.getTestNum()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.testing.StatsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.testing.StatsRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int testNum_ ; - /** - * optional int32 test_num = 1; - * - *
-     * run number
-     * 
- */ - public int getTestNum() { - return testNum_; - } - /** - * optional int32 test_num = 1; - * - *
-     * run number
-     * 
- */ - public Builder setTestNum(int value) { - - testNum_ = value; - onChanged(); - return this; - } - /** - * optional int32 test_num = 1; - * - *
-     * run number
-     * 
- */ - public Builder clearTestNum() { - - testNum_ = 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.StatsRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.StatsRequest) - private static final io.grpc.testing.StatsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.testing.StatsRequest(); - } - - public static io.grpc.testing.StatsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public StatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new StatsRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.testing.StatsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/benchmarks/src/generated/main/java/io/grpc/testing/StatsRequestOrBuilder.java b/benchmarks/src/generated/main/java/io/grpc/testing/StatsRequestOrBuilder.java deleted file mode 100644 index 5d1548ec50..0000000000 --- a/benchmarks/src/generated/main/java/io/grpc/testing/StatsRequestOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: qpstest.proto - -package io.grpc.testing; - -public interface StatsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.StatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 test_num = 1; - * - *
-   * run number
-   * 
- */ - int getTestNum(); -} diff --git a/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java b/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java index 469a2e26fe..f087796c4c 100644 --- a/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java +++ b/benchmarks/src/jmh/java/io/grpc/benchmarks/TransportBenchmark.java @@ -37,6 +37,10 @@ import com.google.protobuf.ByteString; import io.grpc.ManagedChannel; import io.grpc.Server; +import io.grpc.benchmarks.proto.BenchmarkServiceGrpc; +import io.grpc.benchmarks.proto.Messages.Payload; +import io.grpc.benchmarks.proto.Messages.SimpleRequest; +import io.grpc.benchmarks.proto.Messages.SimpleResponse; import io.grpc.benchmarks.qps.AsyncServer; import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; @@ -46,10 +50,6 @@ import io.grpc.netty.NegotiationType; import io.grpc.netty.NettyChannelBuilder; import io.grpc.netty.NettyServerBuilder; import io.grpc.okhttp.OkHttpChannelBuilder; -import io.grpc.testing.Payload; -import io.grpc.testing.SimpleRequest; -import io.grpc.testing.SimpleResponse; -import io.grpc.testing.TestServiceGrpc; import io.netty.channel.local.LocalAddress; import io.netty.channel.local.LocalChannel; import io.netty.channel.local.LocalServerChannel; @@ -81,7 +81,7 @@ public class TransportBenchmark { private ManagedChannel channel; private Server server; - private TestServiceGrpc.TestServiceBlockingStub stub; + private BenchmarkServiceGrpc.BenchmarkServiceBlockingStub stub; @Setup public void setUp() throws Exception { @@ -134,11 +134,11 @@ public class TransportBenchmark { } server = serverBuilder - .addService(TestServiceGrpc.bindService(new AsyncServer.TestServiceImpl())) + .addService(BenchmarkServiceGrpc.bindService(new AsyncServer.BenchmarkServiceImpl())) .build(); server.start(); channel = channelBuilder.build(); - stub = TestServiceGrpc.newBlockingStub(channel); + stub = BenchmarkServiceGrpc.newBlockingStub(channel); // Wait for channel to start stub.unaryCall(SimpleRequest.getDefaultInstance()); } diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncClient.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncClient.java index 4e2e821959..df5c654bc2 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncClient.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncClient.java @@ -57,12 +57,12 @@ import com.google.protobuf.ByteString; import io.grpc.Channel; import io.grpc.ManagedChannel; import io.grpc.Status; +import io.grpc.benchmarks.proto.BenchmarkServiceGrpc; +import io.grpc.benchmarks.proto.BenchmarkServiceGrpc.BenchmarkServiceStub; +import io.grpc.benchmarks.proto.Messages.Payload; +import io.grpc.benchmarks.proto.Messages.SimpleRequest; +import io.grpc.benchmarks.proto.Messages.SimpleResponse; import io.grpc.stub.StreamObserver; -import io.grpc.testing.Payload; -import io.grpc.testing.SimpleRequest; -import io.grpc.testing.SimpleResponse; -import io.grpc.testing.TestServiceGrpc; -import io.grpc.testing.TestServiceGrpc.TestServiceStub; import org.HdrHistogram.Histogram; import org.HdrHistogram.HistogramIterationValue; @@ -172,7 +172,7 @@ public class AsyncClient { private Future doUnaryCalls(Channel channel, final SimpleRequest request, final long endTime) { - final TestServiceStub stub = TestServiceGrpc.newStub(channel); + final BenchmarkServiceStub stub = BenchmarkServiceGrpc.newStub(channel); final Histogram histogram = new Histogram(HISTOGRAM_MAX_VALUE, HISTOGRAM_PRECISION); final HistogramFuture future = new HistogramFuture(histogram); @@ -212,7 +212,7 @@ public class AsyncClient { private static Future doStreamingCalls(Channel channel, final SimpleRequest request, final long endTime) { - final TestServiceStub stub = TestServiceGrpc.newStub(channel); + final BenchmarkServiceStub stub = BenchmarkServiceGrpc.newStub(channel); final Histogram histogram = new Histogram(HISTOGRAM_MAX_VALUE, HISTOGRAM_PRECISION); final HistogramFuture future = new HistogramFuture(histogram); diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java index 25199a79a8..db5189a4b7 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java @@ -35,14 +35,14 @@ import com.google.protobuf.ByteString; import io.grpc.Server; import io.grpc.Status; +import io.grpc.benchmarks.proto.BenchmarkServiceGrpc; +import io.grpc.benchmarks.proto.Messages.Payload; +import io.grpc.benchmarks.proto.Messages.PayloadType; +import io.grpc.benchmarks.proto.Messages.SimpleRequest; +import io.grpc.benchmarks.proto.Messages.SimpleResponse; import io.grpc.netty.GrpcSslContexts; import io.grpc.netty.NettyServerBuilder; import io.grpc.stub.StreamObserver; -import io.grpc.testing.Payload; -import io.grpc.testing.PayloadType; -import io.grpc.testing.SimpleRequest; -import io.grpc.testing.SimpleResponse; -import io.grpc.testing.TestServiceGrpc; import io.grpc.testing.TestUtils; import io.netty.channel.EventLoopGroup; import io.netty.channel.ServerChannel; @@ -171,7 +171,7 @@ public class AsyncServer { .bossEventLoopGroup(boss) .workerEventLoopGroup(worker) .channelType(channelType) - .addService(TestServiceGrpc.bindService(new TestServiceImpl())) + .addService(BenchmarkServiceGrpc.bindService(new BenchmarkServiceImpl())) .sslContext(sslContext) .flowControlWindow(config.flowControlWindow); if (config.directExecutor) { @@ -181,7 +181,7 @@ public class AsyncServer { return builder.build(); } - public static class TestServiceImpl implements TestServiceGrpc.TestService { + public static class BenchmarkServiceImpl implements BenchmarkServiceGrpc.BenchmarkService { @Override public void unaryCall(SimpleRequest request, StreamObserver responseObserver) { diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/ClientConfiguration.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/ClientConfiguration.java index f3c115a45c..de95b0a784 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/ClientConfiguration.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/ClientConfiguration.java @@ -34,14 +34,12 @@ package io.grpc.benchmarks.qps; import static io.grpc.benchmarks.qps.SocketAddressValidator.INET; import static io.grpc.benchmarks.qps.SocketAddressValidator.UDS; import static io.grpc.benchmarks.qps.Utils.parseBoolean; -import static io.grpc.testing.RpcType.STREAMING; -import static io.grpc.testing.RpcType.UNARY; import static java.lang.Integer.parseInt; import static java.util.Arrays.asList; +import io.grpc.benchmarks.proto.Control.RpcType; +import io.grpc.benchmarks.proto.Messages.PayloadType; import io.grpc.netty.NettyChannelBuilder; -import io.grpc.testing.PayloadType; -import io.grpc.testing.RpcType; import io.grpc.testing.TestUtils; import java.net.InetSocketAddress; @@ -74,7 +72,7 @@ class ClientConfiguration implements Configuration { int warmupDuration = 10; int targetQps; String histogramFile; - RpcType rpcType = UNARY; + RpcType rpcType = RpcType.UNARY; PayloadType payloadType = PayloadType.COMPRESSABLE; private ClientConfiguration() { @@ -276,7 +274,7 @@ class ClientConfiguration implements Configuration { STREAMING_RPCS("", "Use Streaming RPCs.", "false") { @Override protected void setClientValue(ClientConfiguration config, String value) { - config.rpcType = STREAMING; + config.rpcType = RpcType.STREAMING; } }, FLOW_CONTROL_WINDOW("BYTES", "The HTTP/2 flow control window.", diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/OpenLoopClient.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/OpenLoopClient.java index 97e026eda8..0051da0f08 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/OpenLoopClient.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/OpenLoopClient.java @@ -52,11 +52,11 @@ import static io.grpc.benchmarks.qps.Utils.saveHistogram; import io.grpc.Channel; import io.grpc.ManagedChannel; import io.grpc.Status; +import io.grpc.benchmarks.proto.BenchmarkServiceGrpc; +import io.grpc.benchmarks.proto.Messages.SimpleRequest; +import io.grpc.benchmarks.proto.Messages.SimpleResponse; + import io.grpc.stub.StreamObserver; -import io.grpc.testing.SimpleRequest; -import io.grpc.testing.SimpleResponse; -import io.grpc.testing.TestServiceGrpc; -import io.grpc.testing.TestServiceGrpc.TestServiceStub; import org.HdrHistogram.AtomicHistogram; import org.HdrHistogram.Histogram; @@ -147,14 +147,14 @@ public class OpenLoopClient { static class LoadGenerationWorker implements Callable { final Histogram histogram = new AtomicHistogram(HISTOGRAM_MAX_VALUE, HISTOGRAM_PRECISION); - final TestServiceStub stub; + final BenchmarkServiceGrpc.BenchmarkServiceStub stub; final SimpleRequest request; final Random rnd; final int targetQps; final long numRpcs; LoadGenerationWorker(Channel channel, SimpleRequest request, int targetQps, int duration) { - stub = TestServiceGrpc.newStub(checkNotNull(channel, "channel")); + stub = BenchmarkServiceGrpc.newStub(checkNotNull(channel, "channel")); this.request = checkNotNull(request, "request"); this.targetQps = targetQps; numRpcs = targetQps * duration; @@ -197,7 +197,7 @@ public class OpenLoopClient { return histogram; } - private void newRpc(TestServiceStub stub) { + private void newRpc(BenchmarkServiceGrpc.BenchmarkServiceStub stub) { stub.unaryCall(request, new StreamObserver() { private final long start = System.nanoTime(); diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java index 82627f2295..951ac74ee9 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java @@ -35,13 +35,13 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.protobuf.ByteString; import io.grpc.ManagedChannel; +import io.grpc.benchmarks.proto.Messages.Payload; +import io.grpc.benchmarks.proto.Messages.SimpleRequest; import io.grpc.internal.GrpcUtil; import io.grpc.netty.GrpcSslContexts; import io.grpc.netty.NegotiationType; import io.grpc.netty.NettyChannelBuilder; import io.grpc.okhttp.OkHttpChannelBuilder; -import io.grpc.testing.Payload; -import io.grpc.testing.SimpleRequest; import io.grpc.testing.TestUtils; import io.netty.channel.EventLoopGroup; import io.netty.channel.epoll.EpollDomainSocketChannel; diff --git a/benchmarks/src/main/proto/control.proto b/benchmarks/src/main/proto/control.proto new file mode 100644 index 0000000000..372a78629b --- /dev/null +++ b/benchmarks/src/main/proto/control.proto @@ -0,0 +1,175 @@ +// Copyright 2015-2016, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +import "payloads.proto"; +import "stats.proto"; + +package grpc.testing; + +option java_package = "io.grpc.benchmarks.proto"; +option java_outer_classname = "Control"; + +enum ClientType { + SYNC_CLIENT = 0; + ASYNC_CLIENT = 1; +} + +enum ServerType { + SYNC_SERVER = 0; + ASYNC_SERVER = 1; + ASYNC_GENERIC_SERVER = 2; +} + +enum RpcType { + UNARY = 0; + STREAMING = 1; +} + +// Parameters of poisson process distribution, which is a good representation +// of activity coming in from independent identical stationary sources. +message PoissonParams { + // The rate of arrivals (a.k.a. lambda parameter of the exp distribution). + double offered_load = 1; +} + +message UniformParams { + double interarrival_lo = 1; + double interarrival_hi = 2; +} + +message DeterministicParams { double offered_load = 1; } + +message ParetoParams { + double interarrival_base = 1; + double alpha = 2; +} + +// Once an RPC finishes, immediately start a new one. +// No configuration parameters needed. +message ClosedLoopParams {} + +message LoadParams { + oneof load { + ClosedLoopParams closed_loop = 1; + PoissonParams poisson = 2; + UniformParams uniform = 3; + DeterministicParams determ = 4; + ParetoParams pareto = 5; + }; +} + +// presence of SecurityParams implies use of TLS +message SecurityParams { + bool use_test_ca = 1; + string server_host_override = 2; +} + +message ClientConfig { + // List of targets to connect to. At least one target needs to be specified. + repeated string server_targets = 1; + ClientType client_type = 2; + SecurityParams security_params = 3; + // How many concurrent RPCs to start for each channel. + // For synchronous client, use a separate thread for each outstanding RPC. + int32 outstanding_rpcs_per_channel = 4; + // Number of independent client channels to create. + // i-th channel will connect to server_target[i % server_targets.size()] + int32 client_channels = 5; + // Only for async client. Number of threads to use to start/manage RPCs. + int32 async_client_threads = 7; + RpcType rpc_type = 8; + // The requested load for the entire client (aggregated over all the threads). + LoadParams load_params = 10; + PayloadConfig payload_config = 11; + HistogramParams histogram_params = 12; + + // Specify the cores we should run the client on, if desired + repeated int32 core_list = 13; + int32 core_limit = 14; +} + +message ClientStatus { ClientStats stats = 1; } + +// Request current stats +message Mark { + // if true, the stats will be reset after taking their snapshot. + bool reset = 1; +} + +message ClientArgs { + oneof argtype { + ClientConfig setup = 1; + Mark mark = 2; + } +} + +message ServerConfig { + ServerType server_type = 1; + SecurityParams security_params = 2; + // Port on which to listen. Zero means pick unused port. + int32 port = 4; + // Only for async server. Number of threads used to serve the requests. + int32 async_server_threads = 7; + // Specify the number of cores to limit server to, if desired + int32 core_limit = 8; + // payload config, used in generic server + PayloadConfig payload_config = 9; + + // Specify the cores we should run the server on, if desired + repeated int32 core_list = 10; +} + +message ServerArgs { + oneof argtype { + ServerConfig setup = 1; + Mark mark = 2; + } +} + +message ServerStatus { + ServerStats stats = 1; + // the port bound by the server + int32 port = 2; + // Number of cores available to the server + int32 cores = 3; +} + +message CoreRequest { +} + +message CoreResponse { + // Number of cores available on the server + int32 cores = 1; +} + +message Void { +} + diff --git a/benchmarks/src/main/proto/messages.proto b/benchmarks/src/main/proto/messages.proto new file mode 100644 index 0000000000..c966ff5d7a --- /dev/null +++ b/benchmarks/src/main/proto/messages.proto @@ -0,0 +1,170 @@ +// Copyright 2015, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Message definitions to be used by integration test service definitions. + +syntax = "proto3"; + +package grpc.testing; + +option java_package = "io.grpc.benchmarks.proto"; +option java_outer_classname = "Messages"; + + +// The type of payload that should be returned. +enum PayloadType { + // Compressable text format. + COMPRESSABLE = 0; + + // Uncompressable binary format. + UNCOMPRESSABLE = 1; + + // Randomly chosen from all other formats defined in this enum. + RANDOM = 2; +} + +// Compression algorithms +enum CompressionType { + // No compression + NONE = 0; + GZIP = 1; + DEFLATE = 2; +} + +// A block of data, to simply increase gRPC message size. +message Payload { + // The type of data in body. + PayloadType type = 1; + // Primary contents of payload. + bytes body = 2; +} + +// A protobuf representation for grpc status. This is used by test +// clients to specify a status that the server should attempt to return. +message EchoStatus { + int32 code = 1; + string message = 2; +} + +// Unary request. +message SimpleRequest { + // Desired payload type in the response from the server. + // If response_type is RANDOM, server randomly chooses one from other formats. + PayloadType response_type = 1; + + // Desired payload size in the response from the server. + // If response_type is COMPRESSABLE, this denotes the size before compression. + int32 response_size = 2; + + // Optional input payload sent along with the request. + Payload payload = 3; + + // Whether SimpleResponse should include username. + bool fill_username = 4; + + // Whether SimpleResponse should include OAuth scope. + bool fill_oauth_scope = 5; + + // Compression algorithm to be used by the server for the response (stream) + CompressionType response_compression = 6; + + // Whether server should return a given status + EchoStatus response_status = 7; +} + +// Unary response, as configured by the request. +message SimpleResponse { + // Payload to increase message size. + Payload payload = 1; + // The user the request came from, for verifying authentication was + // successful when the client expected it. + string username = 2; + // OAuth scope. + string oauth_scope = 3; +} + +// Client-streaming request. +message StreamingInputCallRequest { + // Optional input payload sent along with the request. + Payload payload = 1; + + // Not expecting any payload from the response. +} + +// Client-streaming response. +message StreamingInputCallResponse { + // Aggregated size of payloads received from the client. + int32 aggregated_payload_size = 1; +} + +// Configuration for a particular response. +message ResponseParameters { + // Desired payload sizes in responses from the server. + // If response_type is COMPRESSABLE, this denotes the size before compression. + int32 size = 1; + + // Desired interval between consecutive responses in the response stream in + // microseconds. + int32 interval_us = 2; +} + +// Server-streaming request. +message StreamingOutputCallRequest { + // 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. + PayloadType response_type = 1; + + // Configuration for each expected response message. + repeated ResponseParameters response_parameters = 2; + + // Optional input payload sent along with the request. + Payload payload = 3; + + // Compression algorithm to be used by the server for the response (stream) + CompressionType response_compression = 6; + + // Whether server should return a given status + EchoStatus response_status = 7; +} + +// Server-streaming response, as configured by the request and parameters. +message StreamingOutputCallResponse { + // Payload to increase response size. + Payload payload = 1; +} + +// For reconnect interop test only. +// Server tells client whether its reconnects are following the spec and the +// reconnect backoffs it saw. +message ReconnectInfo { + bool passed = 1; + repeated int32 backoff_ms = 2; +} \ No newline at end of file diff --git a/benchmarks/src/main/proto/payloads.proto b/benchmarks/src/main/proto/payloads.proto new file mode 100644 index 0000000000..4af8688603 --- /dev/null +++ b/benchmarks/src/main/proto/payloads.proto @@ -0,0 +1,58 @@ +// Copyright 2015, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package grpc.testing; + +option java_package = "io.grpc.benchmarks.proto"; +option java_outer_classname = "Payloads"; + +message ByteBufferParams { + int32 req_size = 1; + int32 resp_size = 2; +} + +message SimpleProtoParams { + int32 req_size = 1; + int32 resp_size = 2; +} + +message ComplexProtoParams { + // TODO (vpai): Fill this in once the details of complex, representative + // protos are decided +} + +message PayloadConfig { + oneof payload { + ByteBufferParams bytebuf_params = 1; + SimpleProtoParams simple_params = 2; + ComplexProtoParams complex_params = 3; + } +} \ No newline at end of file diff --git a/benchmarks/src/main/proto/qpstest.proto b/benchmarks/src/main/proto/qpstest.proto deleted file mode 100644 index 056383fc87..0000000000 --- a/benchmarks/src/main/proto/qpstest.proto +++ /dev/null @@ -1,182 +0,0 @@ - -// Copyright 2015, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// An integration test service that covers all the method signature permutations -// of unary/streaming requests/responses. -syntax = "proto3"; - -package grpc.testing; - -option java_multiple_files = true; -option java_package = "io.grpc.testing"; -option java_outer_classname = "QpsTestProto"; - -enum PayloadType { - // Compressable text format. - COMPRESSABLE = 0; - - // Uncompressable binary format. - UNCOMPRESSABLE = 1; - - // Randomly chosen from all other formats defined in this enum. - RANDOM = 2; -} - -message StatsRequest { - // run number - int32 test_num = 1; -} - -message ServerStats { - // wall clock time - double time_elapsed = 1; - - // user time used by the server process and threads - double time_user = 2; - - // server time used by the server process and all threads - double time_system = 3; -} - -message Payload { - // The type of data in body. - PayloadType type = 1; - // Primary contents of payload. - bytes body = 2; -} - -message HistogramData { - repeated uint32 bucket = 1; - double min_seen = 2; - double max_seen = 3; - double sum = 4; - double sum_of_squares = 5; - double count = 6; -} - -enum ClientType { - SYNCHRONOUS_CLIENT = 0; - ASYNC_CLIENT = 1; -} - -enum ServerType { - SYNCHRONOUS_SERVER = 0; - ASYNC_SERVER = 1; -} - -enum RpcType { - UNARY = 0; - STREAMING = 1; -} - -message ClientConfig { - repeated string server_targets = 1; - ClientType client_type = 2; - bool enable_ssl = 3; - int32 outstanding_rpcs_per_channel = 4; - int32 client_channels = 5; - int32 payload_size = 6; - // only for async client: - int32 async_client_threads = 7; - RpcType rpc_type = 8; -} - -// Request current stats -message Mark {} - -message ClientArgs { - oneof argtype { - ClientConfig setup = 1; - Mark mark = 2; - } -} - -message ClientStats { - HistogramData latencies = 1; - double time_elapsed = 3; - double time_user = 4; - double time_system = 5; -} - -message ClientStatus { - ClientStats stats = 1; -} - -message ServerConfig { - ServerType server_type = 1; - int32 threads = 2; - bool enable_ssl = 3; -} - -message ServerArgs { - oneof argtype { - ServerConfig setup = 1; - Mark mark = 2; - } -} - -message ServerStatus { - ServerStats stats = 1; - int32 port = 2; -} - -message SimpleRequest { - // Desired payload type in the response from the server. - // If response_type is RANDOM, server randomly chooses one from other formats. - PayloadType response_type = 1; - - // Desired payload size in the response from the server. - // If response_type is COMPRESSABLE, this denotes the size before compression. - int32 response_size = 2; - - // Optional input payload sent along with the request. - Payload payload = 3; -} - -message SimpleResponse { - Payload payload = 1; -} - -service TestService { - // One request followed by one response. - // The server returns the client payload as-is. - rpc UnaryCall(SimpleRequest) returns (SimpleResponse); - - // One request followed by one response. - // The server returns the client payload as-is. - rpc StreamingCall(stream SimpleRequest) returns (stream SimpleResponse); -} - -service Worker { - // Start test with specified workload - rpc RunTest(stream ClientArgs) returns (stream ClientStatus); - // Start test with specified workload - rpc RunServer(stream ServerArgs) returns (stream ServerStatus); -} diff --git a/benchmarks/src/main/proto/services.proto b/benchmarks/src/main/proto/services.proto new file mode 100644 index 0000000000..d76c5e02e5 --- /dev/null +++ b/benchmarks/src/main/proto/services.proto @@ -0,0 +1,75 @@ +// Copyright 2015-2016, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// An integration test service that covers all the method signature permutations +// of unary/streaming requests/responses. +syntax = "proto3"; + +import "messages.proto"; +import "control.proto"; + +package grpc.testing; + +option java_package = "io.grpc.benchmarks.proto"; +option java_outer_classname = "Services"; + + +service BenchmarkService { + // One request followed by one response. + // The server returns the client payload as-is. + rpc UnaryCall(SimpleRequest) returns (SimpleResponse); + + // One request followed by one response. + // The server returns the client payload as-is. + rpc StreamingCall(stream SimpleRequest) returns (stream SimpleResponse); +} + +service WorkerService { + // Start server with specified workload. + // First request sent specifies the ServerConfig followed by ServerStatus + // response. After that, a "Mark" can be sent anytime to request the latest + // stats. Closing the stream will initiate shutdown of the test server + // and once the shutdown has finished, the OK status is sent to terminate + // this RPC. + rpc RunServer(stream ServerArgs) returns (stream ServerStatus); + + // Start client with specified workload. + // First request sent specifies the ClientConfig followed by ClientStatus + // response. After that, a "Mark" can be sent anytime to request the latest + // stats. Closing the stream will initiate shutdown of the test client + // and once the shutdown has finished, the OK status is sent to terminate + // this RPC. + rpc RunClient(stream ClientArgs) returns (stream ClientStatus); + + // Just return the core count - unary call + rpc CoreCount(CoreRequest) returns (CoreResponse); + + // Quit this worker + rpc QuitWorker(Void) returns (Void); +} \ No newline at end of file diff --git a/benchmarks/src/main/proto/stats.proto b/benchmarks/src/main/proto/stats.proto new file mode 100644 index 0000000000..eab9bb230b --- /dev/null +++ b/benchmarks/src/main/proto/stats.proto @@ -0,0 +1,73 @@ +// Copyright 2015, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package grpc.testing; + +option java_package = "io.grpc.benchmarks.proto"; +option java_outer_classname = "Stats"; + +message ServerStats { + // wall clock time change in seconds since last reset + double time_elapsed = 1; + + // change in user time (in seconds) used by the server since last reset + double time_user = 2; + + // change in server time (in seconds) used by the server process and all + // threads since last reset + double time_system = 3; +} + +// Histogram params based on grpc/support/histogram.c +message HistogramParams { + double resolution = 1; // first bucket is [0, 1 + resolution) + double max_possible = 2; // use enough buckets to allow this value +} + +// Histogram data based on grpc/support/histogram.c +message HistogramData { + repeated uint32 bucket = 1; + double min_seen = 2; + double max_seen = 3; + double sum = 4; + double sum_of_squares = 5; + double count = 6; +} + +message ClientStats { + // Latency histogram. Data points are in nanoseconds. + HistogramData latencies = 1; + + // See ServerStats for details. + double time_elapsed = 2; + double time_user = 3; + double time_system = 4; +} \ No newline at end of file