mirror of https://github.com/grpc/grpc-java.git
Commit codegen'd files missing from 43038a5
This allows users to use -PskipCodegen=true
This commit is contained in:
parent
65769c26b3
commit
7a7450fff9
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,716 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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);
|
||||
}
|
||||
|
||||
public static final com.google.protobuf.Parser<ClientArgs> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ClientArgs>() {
|
||||
public ClientArgs parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ClientArgs(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ClientArgs> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ClientConfig getSetup() {
|
||||
if (argtypeCase_ == 1) {
|
||||
return (io.grpc.testing.ClientConfig) argtype_;
|
||||
}
|
||||
return io.grpc.testing.ClientConfig.getDefaultInstance();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
public io.grpc.testing.Mark getMark() {
|
||||
if (argtypeCase_ == 2) {
|
||||
return (io.grpc.testing.Mark) argtype_;
|
||||
}
|
||||
return io.grpc.testing.Mark.getDefaultInstance();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (argtypeCase_ == 1) {
|
||||
output.writeMessage(1, (io.grpc.testing.ClientConfig) argtype_);
|
||||
}
|
||||
if (argtypeCase_ == 2) {
|
||||
output.writeMessage(2, (io.grpc.testing.Mark) argtype_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (argtypeCase_ == 1) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, (io.grpc.testing.ClientConfig) argtype_);
|
||||
}
|
||||
if (argtypeCase_ == 2) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(2, (io.grpc.testing.Mark) argtype_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ClientArgs prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ClientConfig.Builder getSetupBuilder() {
|
||||
return getSetupFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
public io.grpc.testing.Mark.Builder getMarkBuilder() {
|
||||
return getMarkFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ClientArgs();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ClientArgs getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ClientArgs getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ClientConfig getSetup();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ClientConfigOrBuilder getSetupOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
io.grpc.testing.Mark getMark();
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
io.grpc.testing.MarkOrBuilder getMarkOrBuilder();
|
||||
}
|
||||
|
|
@ -0,0 +1,915 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
int mutable_bitField0_ = 0;
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
com.google.protobuf.ByteString bs = input.readBytes();
|
||||
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
serverTargets_ = new com.google.protobuf.LazyStringArrayList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
serverTargets_.add(bs);
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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);
|
||||
}
|
||||
|
||||
public static final com.google.protobuf.Parser<ClientConfig> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ClientConfig>() {
|
||||
public ClientConfig parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ClientConfig(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ClientConfig> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
public static final int SERVER_TARGETS_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.LazyStringList serverTargets_;
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getServerTargetsList() {
|
||||
return serverTargets_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public int getServerTargetsCount() {
|
||||
return serverTargets_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public java.lang.String getServerTargets(int index) {
|
||||
return serverTargets_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getServerTargetsBytes(int index) {
|
||||
return serverTargets_.getByteString(index);
|
||||
}
|
||||
|
||||
public static final int CLIENT_TYPE_FIELD_NUMBER = 2;
|
||||
private int clientType_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
public int getClientTypeValue() {
|
||||
return clientType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
public boolean getEnableSsl() {
|
||||
return enableSsl_;
|
||||
}
|
||||
|
||||
public static final int OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER = 4;
|
||||
private int outstandingRpcsPerChannel_;
|
||||
/**
|
||||
* <code>optional int32 outstanding_rpcs_per_channel = 4;</code>
|
||||
*/
|
||||
public int getOutstandingRpcsPerChannel() {
|
||||
return outstandingRpcsPerChannel_;
|
||||
}
|
||||
|
||||
public static final int CLIENT_CHANNELS_FIELD_NUMBER = 5;
|
||||
private int clientChannels_;
|
||||
/**
|
||||
* <code>optional int32 client_channels = 5;</code>
|
||||
*/
|
||||
public int getClientChannels() {
|
||||
return clientChannels_;
|
||||
}
|
||||
|
||||
public static final int PAYLOAD_SIZE_FIELD_NUMBER = 6;
|
||||
private int payloadSize_;
|
||||
/**
|
||||
* <code>optional int32 payload_size = 6;</code>
|
||||
*/
|
||||
public int getPayloadSize() {
|
||||
return payloadSize_;
|
||||
}
|
||||
|
||||
public static final int ASYNC_CLIENT_THREADS_FIELD_NUMBER = 7;
|
||||
private int asyncClientThreads_;
|
||||
/**
|
||||
* <code>optional int32 async_client_threads = 7;</code>
|
||||
*
|
||||
* <pre>
|
||||
* only for async client:
|
||||
* </pre>
|
||||
*/
|
||||
public int getAsyncClientThreads() {
|
||||
return asyncClientThreads_;
|
||||
}
|
||||
|
||||
public static final int RPC_TYPE_FIELD_NUMBER = 8;
|
||||
private int rpcType_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
public int getRpcTypeValue() {
|
||||
return rpcType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
for (int i = 0; i < serverTargets_.size(); i++) {
|
||||
output.writeBytes(1, serverTargets_.getByteString(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_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < serverTargets_.size(); i++) {
|
||||
dataSize += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSizeNoTag(serverTargets_.getByteString(i));
|
||||
}
|
||||
size += dataSize;
|
||||
size += 1 * getServerTargetsList().size();
|
||||
}
|
||||
if (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_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ClientConfig prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getServerTargetsList() {
|
||||
return serverTargets_.getUnmodifiableView();
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public int getServerTargetsCount() {
|
||||
return serverTargets_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public java.lang.String getServerTargets(int index) {
|
||||
return serverTargets_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getServerTargetsBytes(int index) {
|
||||
return serverTargets_.getByteString(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public Builder setServerTargets(
|
||||
int index, java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureServerTargetsIsMutable();
|
||||
serverTargets_.set(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public Builder addServerTargets(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureServerTargetsIsMutable();
|
||||
serverTargets_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public Builder addAllServerTargets(
|
||||
java.lang.Iterable<java.lang.String> values) {
|
||||
ensureServerTargetsIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, serverTargets_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public Builder clearServerTargets() {
|
||||
serverTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
public Builder addServerTargetsBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureServerTargetsIsMutable();
|
||||
serverTargets_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int clientType_ = 0;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
public int getClientTypeValue() {
|
||||
return clientType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
public Builder setClientTypeValue(int value) {
|
||||
clientType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
public Builder setClientType(io.grpc.testing.ClientType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
clientType_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
public Builder clearClientType() {
|
||||
|
||||
clientType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean enableSsl_ ;
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
public boolean getEnableSsl() {
|
||||
return enableSsl_;
|
||||
}
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
public Builder setEnableSsl(boolean value) {
|
||||
|
||||
enableSsl_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
public Builder clearEnableSsl() {
|
||||
|
||||
enableSsl_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int outstandingRpcsPerChannel_ ;
|
||||
/**
|
||||
* <code>optional int32 outstanding_rpcs_per_channel = 4;</code>
|
||||
*/
|
||||
public int getOutstandingRpcsPerChannel() {
|
||||
return outstandingRpcsPerChannel_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 outstanding_rpcs_per_channel = 4;</code>
|
||||
*/
|
||||
public Builder setOutstandingRpcsPerChannel(int value) {
|
||||
|
||||
outstandingRpcsPerChannel_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 outstanding_rpcs_per_channel = 4;</code>
|
||||
*/
|
||||
public Builder clearOutstandingRpcsPerChannel() {
|
||||
|
||||
outstandingRpcsPerChannel_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int clientChannels_ ;
|
||||
/**
|
||||
* <code>optional int32 client_channels = 5;</code>
|
||||
*/
|
||||
public int getClientChannels() {
|
||||
return clientChannels_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 client_channels = 5;</code>
|
||||
*/
|
||||
public Builder setClientChannels(int value) {
|
||||
|
||||
clientChannels_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 client_channels = 5;</code>
|
||||
*/
|
||||
public Builder clearClientChannels() {
|
||||
|
||||
clientChannels_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int payloadSize_ ;
|
||||
/**
|
||||
* <code>optional int32 payload_size = 6;</code>
|
||||
*/
|
||||
public int getPayloadSize() {
|
||||
return payloadSize_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 payload_size = 6;</code>
|
||||
*/
|
||||
public Builder setPayloadSize(int value) {
|
||||
|
||||
payloadSize_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 payload_size = 6;</code>
|
||||
*/
|
||||
public Builder clearPayloadSize() {
|
||||
|
||||
payloadSize_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int asyncClientThreads_ ;
|
||||
/**
|
||||
* <code>optional int32 async_client_threads = 7;</code>
|
||||
*
|
||||
* <pre>
|
||||
* only for async client:
|
||||
* </pre>
|
||||
*/
|
||||
public int getAsyncClientThreads() {
|
||||
return asyncClientThreads_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 async_client_threads = 7;</code>
|
||||
*
|
||||
* <pre>
|
||||
* only for async client:
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setAsyncClientThreads(int value) {
|
||||
|
||||
asyncClientThreads_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 async_client_threads = 7;</code>
|
||||
*
|
||||
* <pre>
|
||||
* only for async client:
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearAsyncClientThreads() {
|
||||
|
||||
asyncClientThreads_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int rpcType_ = 0;
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
public int getRpcTypeValue() {
|
||||
return rpcType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
public Builder setRpcTypeValue(int value) {
|
||||
rpcType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
public Builder setRpcType(io.grpc.testing.RpcType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
rpcType_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ClientConfig();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ClientConfig getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ClientConfig getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ProtocolStringList
|
||||
getServerTargetsList();
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
int getServerTargetsCount();
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
java.lang.String getServerTargets(int index);
|
||||
/**
|
||||
* <code>repeated string server_targets = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getServerTargetsBytes(int index);
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
int getClientTypeValue();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
|
||||
*/
|
||||
io.grpc.testing.ClientType getClientType();
|
||||
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
boolean getEnableSsl();
|
||||
|
||||
/**
|
||||
* <code>optional int32 outstanding_rpcs_per_channel = 4;</code>
|
||||
*/
|
||||
int getOutstandingRpcsPerChannel();
|
||||
|
||||
/**
|
||||
* <code>optional int32 client_channels = 5;</code>
|
||||
*/
|
||||
int getClientChannels();
|
||||
|
||||
/**
|
||||
* <code>optional int32 payload_size = 6;</code>
|
||||
*/
|
||||
int getPayloadSize();
|
||||
|
||||
/**
|
||||
* <code>optional int32 async_client_threads = 7;</code>
|
||||
*
|
||||
* <pre>
|
||||
* only for async client:
|
||||
* </pre>
|
||||
*/
|
||||
int getAsyncClientThreads();
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
int getRpcTypeValue();
|
||||
/**
|
||||
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
|
||||
*/
|
||||
io.grpc.testing.RpcType getRpcType();
|
||||
}
|
||||
|
|
@ -0,0 +1,634 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<ClientStats> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ClientStats>() {
|
||||
public ClientStats parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ClientStats(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ClientStats> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int LATENCIES_FIELD_NUMBER = 1;
|
||||
private io.grpc.testing.HistogramData latencies_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public boolean hasLatencies() {
|
||||
return latencies_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.HistogramData getLatencies() {
|
||||
return latencies_ == null ? io.grpc.testing.HistogramData.getDefaultInstance() : latencies_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.HistogramDataOrBuilder getLatenciesOrBuilder() {
|
||||
return getLatencies();
|
||||
}
|
||||
|
||||
public static final int TIME_ELAPSED_FIELD_NUMBER = 3;
|
||||
private double timeElapsed_;
|
||||
/**
|
||||
* <code>optional double time_elapsed = 3;</code>
|
||||
*/
|
||||
public double getTimeElapsed() {
|
||||
return timeElapsed_;
|
||||
}
|
||||
|
||||
public static final int TIME_USER_FIELD_NUMBER = 4;
|
||||
private double timeUser_;
|
||||
/**
|
||||
* <code>optional double time_user = 4;</code>
|
||||
*/
|
||||
public double getTimeUser() {
|
||||
return timeUser_;
|
||||
}
|
||||
|
||||
public static final int TIME_SYSTEM_FIELD_NUMBER = 5;
|
||||
private double timeSystem_;
|
||||
/**
|
||||
* <code>optional double time_system = 5;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
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_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
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_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ClientStats prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public boolean hasLatencies() {
|
||||
return latenciesBuilder_ != null || latencies_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.HistogramData getLatencies() {
|
||||
if (latenciesBuilder_ == null) {
|
||||
return latencies_ == null ? io.grpc.testing.HistogramData.getDefaultInstance() : latencies_;
|
||||
} else {
|
||||
return latenciesBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public Builder setLatencies(
|
||||
io.grpc.testing.HistogramData.Builder builderForValue) {
|
||||
if (latenciesBuilder_ == null) {
|
||||
latencies_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
latenciesBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public Builder clearLatencies() {
|
||||
if (latenciesBuilder_ == null) {
|
||||
latencies_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
latencies_ = null;
|
||||
latenciesBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.HistogramData.Builder getLatenciesBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getLatenciesFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.HistogramDataOrBuilder getLatenciesOrBuilder() {
|
||||
if (latenciesBuilder_ != null) {
|
||||
return latenciesBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return latencies_ == null ?
|
||||
io.grpc.testing.HistogramData.getDefaultInstance() : latencies_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
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_ ;
|
||||
/**
|
||||
* <code>optional double time_elapsed = 3;</code>
|
||||
*/
|
||||
public double getTimeElapsed() {
|
||||
return timeElapsed_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_elapsed = 3;</code>
|
||||
*/
|
||||
public Builder setTimeElapsed(double value) {
|
||||
|
||||
timeElapsed_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_elapsed = 3;</code>
|
||||
*/
|
||||
public Builder clearTimeElapsed() {
|
||||
|
||||
timeElapsed_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double timeUser_ ;
|
||||
/**
|
||||
* <code>optional double time_user = 4;</code>
|
||||
*/
|
||||
public double getTimeUser() {
|
||||
return timeUser_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_user = 4;</code>
|
||||
*/
|
||||
public Builder setTimeUser(double value) {
|
||||
|
||||
timeUser_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_user = 4;</code>
|
||||
*/
|
||||
public Builder clearTimeUser() {
|
||||
|
||||
timeUser_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double timeSystem_ ;
|
||||
/**
|
||||
* <code>optional double time_system = 5;</code>
|
||||
*/
|
||||
public double getTimeSystem() {
|
||||
return timeSystem_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_system = 5;</code>
|
||||
*/
|
||||
public Builder setTimeSystem(double value) {
|
||||
|
||||
timeSystem_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_system = 5;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ClientStats();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ClientStats getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ClientStats getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
boolean hasLatencies();
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.HistogramData getLatencies();
|
||||
/**
|
||||
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.HistogramDataOrBuilder getLatenciesOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>optional double time_elapsed = 3;</code>
|
||||
*/
|
||||
double getTimeElapsed();
|
||||
|
||||
/**
|
||||
* <code>optional double time_user = 4;</code>
|
||||
*/
|
||||
double getTimeUser();
|
||||
|
||||
/**
|
||||
* <code>optional double time_system = 5;</code>
|
||||
*/
|
||||
double getTimeSystem();
|
||||
}
|
||||
|
|
@ -0,0 +1,472 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<ClientStatus> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ClientStatus>() {
|
||||
public ClientStatus parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ClientStatus(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ClientStatus> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int STATS_FIELD_NUMBER = 1;
|
||||
private io.grpc.testing.ClientStats stats_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public boolean hasStats() {
|
||||
return stats_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ClientStats getStats() {
|
||||
return stats_ == null ? io.grpc.testing.ClientStats.getDefaultInstance() : stats_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (stats_ != null) {
|
||||
output.writeMessage(1, getStats());
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (stats_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getStats());
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ClientStatus prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public boolean hasStats() {
|
||||
return statsBuilder_ != null || stats_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ClientStats getStats() {
|
||||
if (statsBuilder_ == null) {
|
||||
return stats_ == null ? io.grpc.testing.ClientStats.getDefaultInstance() : stats_;
|
||||
} else {
|
||||
return statsBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public Builder setStats(
|
||||
io.grpc.testing.ClientStats.Builder builderForValue) {
|
||||
if (statsBuilder_ == null) {
|
||||
stats_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
statsBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public Builder clearStats() {
|
||||
if (statsBuilder_ == null) {
|
||||
stats_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
stats_ = null;
|
||||
statsBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ClientStats.Builder getStatsBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getStatsFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ClientStatsOrBuilder getStatsOrBuilder() {
|
||||
if (statsBuilder_ != null) {
|
||||
return statsBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return stats_ == null ?
|
||||
io.grpc.testing.ClientStats.getDefaultInstance() : stats_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ClientStatus();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ClientStatus getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ClientStatus getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
boolean hasStats();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ClientStats getStats();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ClientStatsOrBuilder getStatsOrBuilder();
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
// 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 {
|
||||
/**
|
||||
* <code>SYNCHRONOUS_CLIENT = 0;</code>
|
||||
*/
|
||||
SYNCHRONOUS_CLIENT(0, 0),
|
||||
/**
|
||||
* <code>ASYNC_CLIENT = 1;</code>
|
||||
*/
|
||||
ASYNC_CLIENT(1, 1),
|
||||
UNRECOGNIZED(-1, -1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>SYNCHRONOUS_CLIENT = 0;</code>
|
||||
*/
|
||||
public static final int SYNCHRONOUS_CLIENT_VALUE = 0;
|
||||
/**
|
||||
* <code>ASYNC_CLIENT = 1;</code>
|
||||
*/
|
||||
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<ClientType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static com.google.protobuf.Internal.EnumLiteMap<ClientType>
|
||||
internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<ClientType>() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,717 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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<java.lang.Integer>();
|
||||
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<java.lang.Integer>();
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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);
|
||||
}
|
||||
|
||||
public static final com.google.protobuf.Parser<HistogramData> PARSER =
|
||||
new com.google.protobuf.AbstractParser<HistogramData>() {
|
||||
public HistogramData parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new HistogramData(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<HistogramData> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
public static final int BUCKET_FIELD_NUMBER = 1;
|
||||
private java.util.List<java.lang.Integer> bucket_;
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getBucketList() {
|
||||
return bucket_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public int getBucketCount() {
|
||||
return bucket_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public int getBucket(int index) {
|
||||
return bucket_.get(index);
|
||||
}
|
||||
|
||||
public static final int MIN_SEEN_FIELD_NUMBER = 2;
|
||||
private double minSeen_;
|
||||
/**
|
||||
* <code>optional double min_seen = 2;</code>
|
||||
*/
|
||||
public double getMinSeen() {
|
||||
return minSeen_;
|
||||
}
|
||||
|
||||
public static final int MAX_SEEN_FIELD_NUMBER = 3;
|
||||
private double maxSeen_;
|
||||
/**
|
||||
* <code>optional double max_seen = 3;</code>
|
||||
*/
|
||||
public double getMaxSeen() {
|
||||
return maxSeen_;
|
||||
}
|
||||
|
||||
public static final int SUM_FIELD_NUMBER = 4;
|
||||
private double sum_;
|
||||
/**
|
||||
* <code>optional double sum = 4;</code>
|
||||
*/
|
||||
public double getSum() {
|
||||
return sum_;
|
||||
}
|
||||
|
||||
public static final int SUM_OF_SQUARES_FIELD_NUMBER = 5;
|
||||
private double sumOfSquares_;
|
||||
/**
|
||||
* <code>optional double sum_of_squares = 5;</code>
|
||||
*/
|
||||
public double getSumOfSquares() {
|
||||
return sumOfSquares_;
|
||||
}
|
||||
|
||||
public static final int COUNT_FIELD_NUMBER = 6;
|
||||
private double count_;
|
||||
/**
|
||||
* <code>optional double count = 6;</code>
|
||||
*/
|
||||
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();
|
||||
for (int i = 0; i < bucket_.size(); i++) {
|
||||
output.writeUInt32(1, 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_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < bucket_.size(); i++) {
|
||||
dataSize += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32SizeNoTag(bucket_.get(i));
|
||||
}
|
||||
size += dataSize;
|
||||
size += 1 * getBucketList().size();
|
||||
}
|
||||
if (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_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.HistogramData prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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<java.lang.Integer> bucket_ = java.util.Collections.emptyList();
|
||||
private void ensureBucketIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
bucket_ = new java.util.ArrayList<java.lang.Integer>(bucket_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getBucketList() {
|
||||
return java.util.Collections.unmodifiableList(bucket_);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public int getBucketCount() {
|
||||
return bucket_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public int getBucket(int index) {
|
||||
return bucket_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public Builder setBucket(
|
||||
int index, int value) {
|
||||
ensureBucketIsMutable();
|
||||
bucket_.set(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public Builder addBucket(int value) {
|
||||
ensureBucketIsMutable();
|
||||
bucket_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public Builder addAllBucket(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureBucketIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, bucket_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
public Builder clearBucket() {
|
||||
bucket_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double minSeen_ ;
|
||||
/**
|
||||
* <code>optional double min_seen = 2;</code>
|
||||
*/
|
||||
public double getMinSeen() {
|
||||
return minSeen_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double min_seen = 2;</code>
|
||||
*/
|
||||
public Builder setMinSeen(double value) {
|
||||
|
||||
minSeen_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double min_seen = 2;</code>
|
||||
*/
|
||||
public Builder clearMinSeen() {
|
||||
|
||||
minSeen_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double maxSeen_ ;
|
||||
/**
|
||||
* <code>optional double max_seen = 3;</code>
|
||||
*/
|
||||
public double getMaxSeen() {
|
||||
return maxSeen_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double max_seen = 3;</code>
|
||||
*/
|
||||
public Builder setMaxSeen(double value) {
|
||||
|
||||
maxSeen_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double max_seen = 3;</code>
|
||||
*/
|
||||
public Builder clearMaxSeen() {
|
||||
|
||||
maxSeen_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double sum_ ;
|
||||
/**
|
||||
* <code>optional double sum = 4;</code>
|
||||
*/
|
||||
public double getSum() {
|
||||
return sum_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double sum = 4;</code>
|
||||
*/
|
||||
public Builder setSum(double value) {
|
||||
|
||||
sum_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double sum = 4;</code>
|
||||
*/
|
||||
public Builder clearSum() {
|
||||
|
||||
sum_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double sumOfSquares_ ;
|
||||
/**
|
||||
* <code>optional double sum_of_squares = 5;</code>
|
||||
*/
|
||||
public double getSumOfSquares() {
|
||||
return sumOfSquares_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double sum_of_squares = 5;</code>
|
||||
*/
|
||||
public Builder setSumOfSquares(double value) {
|
||||
|
||||
sumOfSquares_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double sum_of_squares = 5;</code>
|
||||
*/
|
||||
public Builder clearSumOfSquares() {
|
||||
|
||||
sumOfSquares_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double count_ ;
|
||||
/**
|
||||
* <code>optional double count = 6;</code>
|
||||
*/
|
||||
public double getCount() {
|
||||
return count_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double count = 6;</code>
|
||||
*/
|
||||
public Builder setCount(double value) {
|
||||
|
||||
count_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double count = 6;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.HistogramData();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.HistogramData getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.HistogramData getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getBucketList();
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
int getBucketCount();
|
||||
/**
|
||||
* <code>repeated uint32 bucket = 1;</code>
|
||||
*/
|
||||
int getBucket(int index);
|
||||
|
||||
/**
|
||||
* <code>optional double min_seen = 2;</code>
|
||||
*/
|
||||
double getMinSeen();
|
||||
|
||||
/**
|
||||
* <code>optional double max_seen = 3;</code>
|
||||
*/
|
||||
double getMaxSeen();
|
||||
|
||||
/**
|
||||
* <code>optional double sum = 4;</code>
|
||||
*/
|
||||
double getSum();
|
||||
|
||||
/**
|
||||
* <code>optional double sum_of_squares = 5;</code>
|
||||
*/
|
||||
double getSumOfSquares();
|
||||
|
||||
/**
|
||||
* <code>optional double count = 6;</code>
|
||||
*/
|
||||
double getCount();
|
||||
}
|
||||
|
|
@ -0,0 +1,307 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: qpstest.proto
|
||||
|
||||
package io.grpc.testing;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code grpc.testing.Mark}
|
||||
*
|
||||
* <pre>
|
||||
* Request current stats
|
||||
* </pre>
|
||||
*/
|
||||
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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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);
|
||||
}
|
||||
|
||||
public static final com.google.protobuf.Parser<Mark> PARSER =
|
||||
new com.google.protobuf.AbstractParser<Mark>() {
|
||||
public Mark parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new Mark(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Mark> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.Mark prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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}
|
||||
*
|
||||
* <pre>
|
||||
* Request current stats
|
||||
* </pre>
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessage.Builder<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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.Mark();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.Mark getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.Mark getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// 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 {
|
||||
}
|
||||
|
|
@ -0,0 +1,481 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<Payload> PARSER =
|
||||
new com.google.protobuf.AbstractParser<Payload>() {
|
||||
public Payload parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new Payload(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Payload> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int TYPE_FIELD_NUMBER = 1;
|
||||
private int type_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
public int getTypeValue() {
|
||||
return type_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional bytes body = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Primary contents of payload.
|
||||
* </pre>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (type_ != io.grpc.testing.PayloadType.COMPRESSABLE.getNumber()) {
|
||||
output.writeEnum(1, type_);
|
||||
}
|
||||
if (!body_.isEmpty()) {
|
||||
output.writeBytes(2, body_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (type_ != io.grpc.testing.PayloadType.COMPRESSABLE.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(1, type_);
|
||||
}
|
||||
if (!body_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(2, body_);
|
||||
}
|
||||
memoizedSerializedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 0L;
|
||||
public static io.grpc.testing.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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.Payload prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
public int getTypeValue() {
|
||||
return type_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setTypeValue(int value) {
|
||||
type_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setType(io.grpc.testing.PayloadType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
type_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearType() {
|
||||
|
||||
type_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>optional bytes body = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Primary contents of payload.
|
||||
* </pre>
|
||||
*/
|
||||
public com.google.protobuf.ByteString getBody() {
|
||||
return body_;
|
||||
}
|
||||
/**
|
||||
* <code>optional bytes body = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Primary contents of payload.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setBody(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
body_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional bytes body = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Primary contents of payload.
|
||||
* </pre>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.Payload();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.Payload getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.Payload getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
int getTypeValue();
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* The type of data in body.
|
||||
* </pre>
|
||||
*/
|
||||
io.grpc.testing.PayloadType getType();
|
||||
|
||||
/**
|
||||
* <code>optional bytes body = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Primary contents of payload.
|
||||
* </pre>
|
||||
*/
|
||||
com.google.protobuf.ByteString getBody();
|
||||
}
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
// 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 {
|
||||
/**
|
||||
* <code>COMPRESSABLE = 0;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Compressable text format.
|
||||
* </pre>
|
||||
*/
|
||||
COMPRESSABLE(0, 0),
|
||||
/**
|
||||
* <code>UNCOMPRESSABLE = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Uncompressable binary format.
|
||||
* </pre>
|
||||
*/
|
||||
UNCOMPRESSABLE(1, 1),
|
||||
/**
|
||||
* <code>RANDOM = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Randomly chosen from all other formats defined in this enum.
|
||||
* </pre>
|
||||
*/
|
||||
RANDOM(2, 2),
|
||||
UNRECOGNIZED(-1, -1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>COMPRESSABLE = 0;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Compressable text format.
|
||||
* </pre>
|
||||
*/
|
||||
public static final int COMPRESSABLE_VALUE = 0;
|
||||
/**
|
||||
* <code>UNCOMPRESSABLE = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Uncompressable binary format.
|
||||
* </pre>
|
||||
*/
|
||||
public static final int UNCOMPRESSABLE_VALUE = 1;
|
||||
/**
|
||||
* <code>RANDOM = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Randomly chosen from all other formats defined in this enum.
|
||||
* </pre>
|
||||
*/
|
||||
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<PayloadType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static com.google.protobuf.Internal.EnumLiteMap<PayloadType>
|
||||
internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<PayloadType>() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,239 @@
|
|||
// 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 final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_StatsRequest_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_StatsRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ServerStats_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ServerStats_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_Payload_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_Payload_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_HistogramData_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_HistogramData_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ClientConfig_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ClientConfig_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_Mark_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_Mark_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ClientArgs_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ClientArgs_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ClientStats_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ClientStats_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ClientStatus_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ClientStatus_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ServerConfig_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ServerConfig_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ServerArgs_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ServerArgs_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_ServerStatus_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_ServerStatus_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_grpc_testing_SimpleRequest_descriptor;
|
||||
static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_grpc_testing_SimpleRequest_fieldAccessorTable;
|
||||
static final 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)
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
// 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 {
|
||||
/**
|
||||
* <code>UNARY = 0;</code>
|
||||
*/
|
||||
UNARY(0, 0),
|
||||
/**
|
||||
* <code>STREAMING = 1;</code>
|
||||
*/
|
||||
STREAMING(1, 1),
|
||||
UNRECOGNIZED(-1, -1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>UNARY = 0;</code>
|
||||
*/
|
||||
public static final int UNARY_VALUE = 0;
|
||||
/**
|
||||
* <code>STREAMING = 1;</code>
|
||||
*/
|
||||
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<RpcType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static com.google.protobuf.Internal.EnumLiteMap<RpcType>
|
||||
internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<RpcType>() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,716 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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);
|
||||
}
|
||||
|
||||
public static final com.google.protobuf.Parser<ServerArgs> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ServerArgs>() {
|
||||
public ServerArgs parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ServerArgs(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ServerArgs> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerConfig getSetup() {
|
||||
if (argtypeCase_ == 1) {
|
||||
return (io.grpc.testing.ServerConfig) argtype_;
|
||||
}
|
||||
return io.grpc.testing.ServerConfig.getDefaultInstance();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
public io.grpc.testing.Mark getMark() {
|
||||
if (argtypeCase_ == 2) {
|
||||
return (io.grpc.testing.Mark) argtype_;
|
||||
}
|
||||
return io.grpc.testing.Mark.getDefaultInstance();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (argtypeCase_ == 1) {
|
||||
output.writeMessage(1, (io.grpc.testing.ServerConfig) argtype_);
|
||||
}
|
||||
if (argtypeCase_ == 2) {
|
||||
output.writeMessage(2, (io.grpc.testing.Mark) argtype_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (argtypeCase_ == 1) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, (io.grpc.testing.ServerConfig) argtype_);
|
||||
}
|
||||
if (argtypeCase_ == 2) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(2, (io.grpc.testing.Mark) argtype_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ServerArgs prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerConfig.Builder getSetupBuilder() {
|
||||
return getSetupFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
public io.grpc.testing.Mark.Builder getMarkBuilder() {
|
||||
return getMarkFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ServerArgs();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ServerArgs getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ServerArgs getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ServerConfig getSetup();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ServerConfigOrBuilder getSetupOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
io.grpc.testing.Mark getMark();
|
||||
/**
|
||||
* <code>optional .grpc.testing.Mark mark = 2;</code>
|
||||
*/
|
||||
io.grpc.testing.MarkOrBuilder getMarkOrBuilder();
|
||||
}
|
||||
|
|
@ -0,0 +1,488 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<ServerConfig> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ServerConfig>() {
|
||||
public ServerConfig parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ServerConfig(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ServerConfig> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int SERVER_TYPE_FIELD_NUMBER = 1;
|
||||
private int serverType_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
public int getServerTypeValue() {
|
||||
return serverType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional int32 threads = 2;</code>
|
||||
*/
|
||||
public int getThreads() {
|
||||
return threads_;
|
||||
}
|
||||
|
||||
public static final int ENABLE_SSL_FIELD_NUMBER = 3;
|
||||
private boolean enableSsl_;
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
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_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
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_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ServerConfig prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
public int getServerTypeValue() {
|
||||
return serverType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
public Builder setServerTypeValue(int value) {
|
||||
serverType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
public Builder setServerType(io.grpc.testing.ServerType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
serverType_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
public Builder clearServerType() {
|
||||
|
||||
serverType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int threads_ ;
|
||||
/**
|
||||
* <code>optional int32 threads = 2;</code>
|
||||
*/
|
||||
public int getThreads() {
|
||||
return threads_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 threads = 2;</code>
|
||||
*/
|
||||
public Builder setThreads(int value) {
|
||||
|
||||
threads_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 threads = 2;</code>
|
||||
*/
|
||||
public Builder clearThreads() {
|
||||
|
||||
threads_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean enableSsl_ ;
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
public boolean getEnableSsl() {
|
||||
return enableSsl_;
|
||||
}
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
public Builder setEnableSsl(boolean value) {
|
||||
|
||||
enableSsl_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ServerConfig();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ServerConfig getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ServerConfig getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
int getServerTypeValue();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ServerType getServerType();
|
||||
|
||||
/**
|
||||
* <code>optional int32 threads = 2;</code>
|
||||
*/
|
||||
int getThreads();
|
||||
|
||||
/**
|
||||
* <code>optional bool enable_ssl = 3;</code>
|
||||
*/
|
||||
boolean getEnableSsl();
|
||||
}
|
||||
|
|
@ -0,0 +1,510 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<ServerStats> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ServerStats>() {
|
||||
public ServerStats parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ServerStats(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ServerStats> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int TIME_ELAPSED_FIELD_NUMBER = 1;
|
||||
private double timeElapsed_;
|
||||
/**
|
||||
* <code>optional double time_elapsed = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* wall clock time
|
||||
* </pre>
|
||||
*/
|
||||
public double getTimeElapsed() {
|
||||
return timeElapsed_;
|
||||
}
|
||||
|
||||
public static final int TIME_USER_FIELD_NUMBER = 2;
|
||||
private double timeUser_;
|
||||
/**
|
||||
* <code>optional double time_user = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* user time used by the server process and threads
|
||||
* </pre>
|
||||
*/
|
||||
public double getTimeUser() {
|
||||
return timeUser_;
|
||||
}
|
||||
|
||||
public static final int TIME_SYSTEM_FIELD_NUMBER = 3;
|
||||
private double timeSystem_;
|
||||
/**
|
||||
* <code>optional double time_system = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* server time used by the server process and all threads
|
||||
* </pre>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (timeElapsed_ != 0D) {
|
||||
output.writeDouble(1, timeElapsed_);
|
||||
}
|
||||
if (timeUser_ != 0D) {
|
||||
output.writeDouble(2, timeUser_);
|
||||
}
|
||||
if (timeSystem_ != 0D) {
|
||||
output.writeDouble(3, timeSystem_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
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_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ServerStats prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_ ;
|
||||
/**
|
||||
* <code>optional double time_elapsed = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* wall clock time
|
||||
* </pre>
|
||||
*/
|
||||
public double getTimeElapsed() {
|
||||
return timeElapsed_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_elapsed = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* wall clock time
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setTimeElapsed(double value) {
|
||||
|
||||
timeElapsed_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_elapsed = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* wall clock time
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearTimeElapsed() {
|
||||
|
||||
timeElapsed_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double timeUser_ ;
|
||||
/**
|
||||
* <code>optional double time_user = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* user time used by the server process and threads
|
||||
* </pre>
|
||||
*/
|
||||
public double getTimeUser() {
|
||||
return timeUser_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_user = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* user time used by the server process and threads
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setTimeUser(double value) {
|
||||
|
||||
timeUser_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_user = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* user time used by the server process and threads
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearTimeUser() {
|
||||
|
||||
timeUser_ = 0D;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private double timeSystem_ ;
|
||||
/**
|
||||
* <code>optional double time_system = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* server time used by the server process and all threads
|
||||
* </pre>
|
||||
*/
|
||||
public double getTimeSystem() {
|
||||
return timeSystem_;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_system = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* server time used by the server process and all threads
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setTimeSystem(double value) {
|
||||
|
||||
timeSystem_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional double time_system = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* server time used by the server process and all threads
|
||||
* </pre>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ServerStats();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ServerStats getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ServerStats getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional double time_elapsed = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* wall clock time
|
||||
* </pre>
|
||||
*/
|
||||
double getTimeElapsed();
|
||||
|
||||
/**
|
||||
* <code>optional double time_user = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* user time used by the server process and threads
|
||||
* </pre>
|
||||
*/
|
||||
double getTimeUser();
|
||||
|
||||
/**
|
||||
* <code>optional double time_system = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* server time used by the server process and all threads
|
||||
* </pre>
|
||||
*/
|
||||
double getTimeSystem();
|
||||
}
|
||||
|
|
@ -0,0 +1,526 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<ServerStatus> PARSER =
|
||||
new com.google.protobuf.AbstractParser<ServerStatus>() {
|
||||
public ServerStatus parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ServerStatus(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ServerStatus> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int STATS_FIELD_NUMBER = 1;
|
||||
private io.grpc.testing.ServerStats stats_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public boolean hasStats() {
|
||||
return stats_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerStats getStats() {
|
||||
return stats_ == null ? io.grpc.testing.ServerStats.getDefaultInstance() : stats_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerStatsOrBuilder getStatsOrBuilder() {
|
||||
return getStats();
|
||||
}
|
||||
|
||||
public static final int PORT_FIELD_NUMBER = 2;
|
||||
private int port_;
|
||||
/**
|
||||
* <code>optional int32 port = 2;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (stats_ != null) {
|
||||
output.writeMessage(1, getStats());
|
||||
}
|
||||
if (port_ != 0) {
|
||||
output.writeInt32(2, port_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
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_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.ServerStatus prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public boolean hasStats() {
|
||||
return statsBuilder_ != null || stats_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerStats getStats() {
|
||||
if (statsBuilder_ == null) {
|
||||
return stats_ == null ? io.grpc.testing.ServerStats.getDefaultInstance() : stats_;
|
||||
} else {
|
||||
return statsBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public Builder setStats(
|
||||
io.grpc.testing.ServerStats.Builder builderForValue) {
|
||||
if (statsBuilder_ == null) {
|
||||
stats_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
statsBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public Builder clearStats() {
|
||||
if (statsBuilder_ == null) {
|
||||
stats_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
stats_ = null;
|
||||
statsBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerStats.Builder getStatsBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getStatsFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.ServerStatsOrBuilder getStatsOrBuilder() {
|
||||
if (statsBuilder_ != null) {
|
||||
return statsBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return stats_ == null ?
|
||||
io.grpc.testing.ServerStats.getDefaultInstance() : stats_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
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_ ;
|
||||
/**
|
||||
* <code>optional int32 port = 2;</code>
|
||||
*/
|
||||
public int getPort() {
|
||||
return port_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 port = 2;</code>
|
||||
*/
|
||||
public Builder setPort(int value) {
|
||||
|
||||
port_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 port = 2;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.ServerStatus();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.ServerStatus getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.ServerStatus getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
boolean hasStats();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ServerStats getStats();
|
||||
/**
|
||||
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.ServerStatsOrBuilder getStatsOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>optional int32 port = 2;</code>
|
||||
*/
|
||||
int getPort();
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
// 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 {
|
||||
/**
|
||||
* <code>SYNCHRONOUS_SERVER = 0;</code>
|
||||
*/
|
||||
SYNCHRONOUS_SERVER(0, 0),
|
||||
/**
|
||||
* <code>ASYNC_SERVER = 1;</code>
|
||||
*/
|
||||
ASYNC_SERVER(1, 1),
|
||||
UNRECOGNIZED(-1, -1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>SYNCHRONOUS_SERVER = 0;</code>
|
||||
*/
|
||||
public static final int SYNCHRONOUS_SERVER_VALUE = 0;
|
||||
/**
|
||||
* <code>ASYNC_SERVER = 1;</code>
|
||||
*/
|
||||
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<ServerType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static com.google.protobuf.Internal.EnumLiteMap<ServerType>
|
||||
internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<ServerType>() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,709 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<SimpleRequest> PARSER =
|
||||
new com.google.protobuf.AbstractParser<SimpleRequest>() {
|
||||
public SimpleRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new SimpleRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<SimpleRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int RESPONSE_TYPE_FIELD_NUMBER = 1;
|
||||
private int responseType_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
public int getResponseTypeValue() {
|
||||
return responseType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional int32 response_size = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload size in the response from the server.
|
||||
* If response_type is COMPRESSABLE, this denotes the size before compression.
|
||||
* </pre>
|
||||
*/
|
||||
public int getResponseSize() {
|
||||
return responseSize_;
|
||||
}
|
||||
|
||||
public static final int PAYLOAD_FIELD_NUMBER = 3;
|
||||
private io.grpc.testing.Payload payload_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public boolean hasPayload() {
|
||||
return payload_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public io.grpc.testing.Payload getPayload() {
|
||||
return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
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());
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.SimpleRequest prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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;
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
public int getResponseTypeValue() {
|
||||
return responseType_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setResponseTypeValue(int value) {
|
||||
responseType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setResponseType(io.grpc.testing.PayloadType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
responseType_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearResponseType() {
|
||||
|
||||
responseType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int responseSize_ ;
|
||||
/**
|
||||
* <code>optional int32 response_size = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload size in the response from the server.
|
||||
* If response_type is COMPRESSABLE, this denotes the size before compression.
|
||||
* </pre>
|
||||
*/
|
||||
public int getResponseSize() {
|
||||
return responseSize_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 response_size = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload size in the response from the server.
|
||||
* If response_type is COMPRESSABLE, this denotes the size before compression.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setResponseSize(int value) {
|
||||
|
||||
responseSize_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 response_size = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload size in the response from the server.
|
||||
* If response_type is COMPRESSABLE, this denotes the size before compression.
|
||||
* </pre>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public boolean hasPayload() {
|
||||
return payloadBuilder_ != null || payload_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public io.grpc.testing.Payload getPayload() {
|
||||
if (payloadBuilder_ == null) {
|
||||
return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_;
|
||||
} else {
|
||||
return payloadBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setPayload(
|
||||
io.grpc.testing.Payload.Builder builderForValue) {
|
||||
if (payloadBuilder_ == null) {
|
||||
payload_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
payloadBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public Builder clearPayload() {
|
||||
if (payloadBuilder_ == null) {
|
||||
payload_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
payload_ = null;
|
||||
payloadBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public io.grpc.testing.Payload.Builder getPayloadBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getPayloadFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
public io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder() {
|
||||
if (payloadBuilder_ != null) {
|
||||
return payloadBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return payload_ == null ?
|
||||
io.grpc.testing.Payload.getDefaultInstance() : payload_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.SimpleRequest();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.SimpleRequest getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.SimpleRequest getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
int getResponseTypeValue();
|
||||
/**
|
||||
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload type in the response from the server.
|
||||
* If response_type is RANDOM, server randomly chooses one from other formats.
|
||||
* </pre>
|
||||
*/
|
||||
io.grpc.testing.PayloadType getResponseType();
|
||||
|
||||
/**
|
||||
* <code>optional int32 response_size = 2;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Desired payload size in the response from the server.
|
||||
* If response_type is COMPRESSABLE, this denotes the size before compression.
|
||||
* </pre>
|
||||
*/
|
||||
int getResponseSize();
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
boolean hasPayload();
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
io.grpc.testing.Payload getPayload();
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 3;</code>
|
||||
*
|
||||
* <pre>
|
||||
* Optional input payload sent along with the request.
|
||||
* </pre>
|
||||
*/
|
||||
io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder();
|
||||
}
|
||||
|
|
@ -0,0 +1,472 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<SimpleResponse> PARSER =
|
||||
new com.google.protobuf.AbstractParser<SimpleResponse>() {
|
||||
public SimpleResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new SimpleResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<SimpleResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int PAYLOAD_FIELD_NUMBER = 1;
|
||||
private io.grpc.testing.Payload payload_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public boolean hasPayload() {
|
||||
return payload_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.Payload getPayload() {
|
||||
return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (payload_ != null) {
|
||||
output.writeMessage(1, getPayload());
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (payload_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getPayload());
|
||||
}
|
||||
memoizedSerializedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 0L;
|
||||
public static io.grpc.testing.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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.SimpleResponse prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_;
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public boolean hasPayload() {
|
||||
return payloadBuilder_ != null || payload_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.Payload getPayload() {
|
||||
if (payloadBuilder_ == null) {
|
||||
return payload_ == null ? io.grpc.testing.Payload.getDefaultInstance() : payload_;
|
||||
} else {
|
||||
return payloadBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public Builder setPayload(
|
||||
io.grpc.testing.Payload.Builder builderForValue) {
|
||||
if (payloadBuilder_ == null) {
|
||||
payload_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
payloadBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public Builder clearPayload() {
|
||||
if (payloadBuilder_ == null) {
|
||||
payload_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
payload_ = null;
|
||||
payloadBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.Payload.Builder getPayloadBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getPayloadFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
public io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder() {
|
||||
if (payloadBuilder_ != null) {
|
||||
return payloadBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return payload_ == null ?
|
||||
io.grpc.testing.Payload.getDefaultInstance() : payload_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.SimpleResponse();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.SimpleResponse getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.SimpleResponse getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
boolean hasPayload();
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.Payload getPayload();
|
||||
/**
|
||||
* <code>optional .grpc.testing.Payload payload = 1;</code>
|
||||
*/
|
||||
io.grpc.testing.PayloadOrBuilder getPayloadOrBuilder();
|
||||
}
|
||||
|
|
@ -0,0 +1,370 @@
|
|||
// 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)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
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 e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw 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 com.google.protobuf.Parser<StatsRequest> PARSER =
|
||||
new com.google.protobuf.AbstractParser<StatsRequest>() {
|
||||
public StatsRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new StatsRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<StatsRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
public static final int TEST_NUM_FIELD_NUMBER = 1;
|
||||
private int testNum_;
|
||||
/**
|
||||
* <code>optional int32 test_num = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* run number
|
||||
* </pre>
|
||||
*/
|
||||
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 {
|
||||
getSerializedSize();
|
||||
if (testNum_ != 0) {
|
||||
output.writeInt32(1, testNum_);
|
||||
}
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (testNum_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, testNum_);
|
||||
}
|
||||
memoizedSerializedSize = 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 static Builder newBuilder() { return new Builder(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(io.grpc.testing.StatsRequest prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(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<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_ ;
|
||||
/**
|
||||
* <code>optional int32 test_num = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* run number
|
||||
* </pre>
|
||||
*/
|
||||
public int getTestNum() {
|
||||
return testNum_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 test_num = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* run number
|
||||
* </pre>
|
||||
*/
|
||||
public Builder setTestNum(int value) {
|
||||
|
||||
testNum_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 test_num = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* run number
|
||||
* </pre>
|
||||
*/
|
||||
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 defaultInstance;static {
|
||||
defaultInstance = new io.grpc.testing.StatsRequest();
|
||||
}
|
||||
|
||||
public static io.grpc.testing.StatsRequest getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public io.grpc.testing.StatsRequest getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
// 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 {
|
||||
|
||||
/**
|
||||
* <code>optional int32 test_num = 1;</code>
|
||||
*
|
||||
* <pre>
|
||||
* run number
|
||||
* </pre>
|
||||
*/
|
||||
int getTestNum();
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package grpc.testing;
|
||||
package io.grpc.testing;
|
||||
|
||||
import static io.grpc.stub.Calls.createMethodDescriptor;
|
||||
import static io.grpc.stub.Calls.asyncUnaryCall;
|
||||
|
|
@ -15,18 +15,18 @@ import static io.grpc.stub.ServerCalls.asyncStreamingRequestCall;
|
|||
@javax.annotation.Generated("by gRPC proto compiler")
|
||||
public class TestServiceGrpc {
|
||||
|
||||
private static final io.grpc.stub.Method<grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse> METHOD_UNARY_CALL =
|
||||
private static final io.grpc.stub.Method<io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse> METHOD_UNARY_CALL =
|
||||
io.grpc.stub.Method.create(
|
||||
io.grpc.MethodType.UNARY, "UnaryCall",
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.SimpleRequest.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.SimpleResponse.PARSER));
|
||||
private static final io.grpc.stub.Method<grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse> METHOD_STREAMING_CALL =
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleRequest.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleResponse.PARSER));
|
||||
private static final io.grpc.stub.Method<io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse> METHOD_STREAMING_CALL =
|
||||
io.grpc.stub.Method.create(
|
||||
io.grpc.MethodType.DUPLEX_STREAMING, "StreamingCall",
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.SimpleRequest.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.SimpleResponse.PARSER));
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleRequest.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.SimpleResponse.PARSER));
|
||||
|
||||
public static TestServiceStub newStub(io.grpc.Channel channel) {
|
||||
return new TestServiceStub(channel, CONFIG);
|
||||
|
|
@ -48,10 +48,10 @@ public class TestServiceGrpc {
|
|||
@javax.annotation.concurrent.Immutable
|
||||
public static class TestServiceServiceDescriptor extends
|
||||
io.grpc.stub.AbstractServiceDescriptor<TestServiceServiceDescriptor> {
|
||||
public final io.grpc.MethodDescriptor<grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse> unaryCall;
|
||||
public final io.grpc.MethodDescriptor<grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse> streamingCall;
|
||||
public final io.grpc.MethodDescriptor<io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse> unaryCall;
|
||||
public final io.grpc.MethodDescriptor<io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse> streamingCall;
|
||||
|
||||
private TestServiceServiceDescriptor() {
|
||||
unaryCall = createMethodDescriptor(
|
||||
|
|
@ -63,11 +63,11 @@ public class TestServiceGrpc {
|
|||
@SuppressWarnings("unchecked")
|
||||
private TestServiceServiceDescriptor(
|
||||
java.util.Map<java.lang.String, io.grpc.MethodDescriptor<?, ?>> methodMap) {
|
||||
unaryCall = (io.grpc.MethodDescriptor<grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse>) methodMap.get(
|
||||
unaryCall = (io.grpc.MethodDescriptor<io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse>) methodMap.get(
|
||||
CONFIG.unaryCall.getName());
|
||||
streamingCall = (io.grpc.MethodDescriptor<grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse>) methodMap.get(
|
||||
streamingCall = (io.grpc.MethodDescriptor<io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse>) methodMap.get(
|
||||
CONFIG.streamingCall.getName());
|
||||
}
|
||||
|
||||
|
|
@ -87,22 +87,22 @@ public class TestServiceGrpc {
|
|||
|
||||
public static interface TestService {
|
||||
|
||||
public void unaryCall(grpc.testing.Qpstest.SimpleRequest request,
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleResponse> responseObserver);
|
||||
public void unaryCall(io.grpc.testing.SimpleRequest request,
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.SimpleResponse> responseObserver);
|
||||
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleRequest> streamingCall(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleResponse> responseObserver);
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.SimpleRequest> streamingCall(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.SimpleResponse> responseObserver);
|
||||
}
|
||||
|
||||
public static interface TestServiceBlockingClient {
|
||||
|
||||
public grpc.testing.Qpstest.SimpleResponse unaryCall(grpc.testing.Qpstest.SimpleRequest request);
|
||||
public io.grpc.testing.SimpleResponse unaryCall(io.grpc.testing.SimpleRequest request);
|
||||
}
|
||||
|
||||
public static interface TestServiceFutureClient {
|
||||
|
||||
public com.google.common.util.concurrent.ListenableFuture<grpc.testing.Qpstest.SimpleResponse> unaryCall(
|
||||
grpc.testing.Qpstest.SimpleRequest request);
|
||||
public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.SimpleResponse> unaryCall(
|
||||
io.grpc.testing.SimpleRequest request);
|
||||
}
|
||||
|
||||
public static class TestServiceStub extends
|
||||
|
|
@ -120,15 +120,15 @@ public class TestServiceGrpc {
|
|||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void unaryCall(grpc.testing.Qpstest.SimpleRequest request,
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleResponse> responseObserver) {
|
||||
public void unaryCall(io.grpc.testing.SimpleRequest request,
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.SimpleResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
channel.newCall(config.unaryCall), request, responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleRequest> streamingCall(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleResponse> responseObserver) {
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.SimpleRequest> streamingCall(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.SimpleResponse> responseObserver) {
|
||||
return duplexStreamingCall(
|
||||
channel.newCall(config.streamingCall), responseObserver);
|
||||
}
|
||||
|
|
@ -149,7 +149,7 @@ public class TestServiceGrpc {
|
|||
}
|
||||
|
||||
@java.lang.Override
|
||||
public grpc.testing.Qpstest.SimpleResponse unaryCall(grpc.testing.Qpstest.SimpleRequest request) {
|
||||
public io.grpc.testing.SimpleResponse unaryCall(io.grpc.testing.SimpleRequest request) {
|
||||
return blockingUnaryCall(
|
||||
channel.newCall(config.unaryCall), request);
|
||||
}
|
||||
|
|
@ -170,8 +170,8 @@ public class TestServiceGrpc {
|
|||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.common.util.concurrent.ListenableFuture<grpc.testing.Qpstest.SimpleResponse> unaryCall(
|
||||
grpc.testing.Qpstest.SimpleRequest request) {
|
||||
public com.google.common.util.concurrent.ListenableFuture<io.grpc.testing.SimpleResponse> unaryCall(
|
||||
io.grpc.testing.SimpleRequest request) {
|
||||
return unaryFutureCall(
|
||||
channel.newCall(config.unaryCall), request);
|
||||
}
|
||||
|
|
@ -184,12 +184,12 @@ public class TestServiceGrpc {
|
|||
METHOD_UNARY_CALL,
|
||||
asyncUnaryRequestCall(
|
||||
new io.grpc.stub.ServerCalls.UnaryRequestMethod<
|
||||
grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse>() {
|
||||
io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse>() {
|
||||
@java.lang.Override
|
||||
public void invoke(
|
||||
grpc.testing.Qpstest.SimpleRequest request,
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleResponse> responseObserver) {
|
||||
io.grpc.testing.SimpleRequest request,
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.SimpleResponse> responseObserver) {
|
||||
serviceImpl.unaryCall(request, responseObserver);
|
||||
}
|
||||
})))
|
||||
|
|
@ -197,11 +197,11 @@ public class TestServiceGrpc {
|
|||
METHOD_STREAMING_CALL,
|
||||
asyncStreamingRequestCall(
|
||||
new io.grpc.stub.ServerCalls.StreamingRequestMethod<
|
||||
grpc.testing.Qpstest.SimpleRequest,
|
||||
grpc.testing.Qpstest.SimpleResponse>() {
|
||||
io.grpc.testing.SimpleRequest,
|
||||
io.grpc.testing.SimpleResponse>() {
|
||||
@java.lang.Override
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleRequest> invoke(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.SimpleResponse> responseObserver) {
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.SimpleRequest> invoke(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.SimpleResponse> responseObserver) {
|
||||
return serviceImpl.streamingCall(responseObserver);
|
||||
}
|
||||
}))).build();
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package grpc.testing;
|
||||
package io.grpc.testing;
|
||||
|
||||
import static io.grpc.stub.Calls.createMethodDescriptor;
|
||||
import static io.grpc.stub.Calls.asyncUnaryCall;
|
||||
|
|
@ -15,18 +15,18 @@ import static io.grpc.stub.ServerCalls.asyncStreamingRequestCall;
|
|||
@javax.annotation.Generated("by gRPC proto compiler")
|
||||
public class WorkerGrpc {
|
||||
|
||||
private static final io.grpc.stub.Method<grpc.testing.Qpstest.ClientArgs,
|
||||
grpc.testing.Qpstest.ClientStatus> METHOD_RUN_TEST =
|
||||
private static final io.grpc.stub.Method<io.grpc.testing.ClientArgs,
|
||||
io.grpc.testing.ClientStatus> METHOD_RUN_TEST =
|
||||
io.grpc.stub.Method.create(
|
||||
io.grpc.MethodType.DUPLEX_STREAMING, "RunTest",
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.ClientArgs.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.ClientStatus.PARSER));
|
||||
private static final io.grpc.stub.Method<grpc.testing.Qpstest.ServerArgs,
|
||||
grpc.testing.Qpstest.ServerStatus> METHOD_RUN_SERVER =
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ClientArgs.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ClientStatus.PARSER));
|
||||
private static final io.grpc.stub.Method<io.grpc.testing.ServerArgs,
|
||||
io.grpc.testing.ServerStatus> METHOD_RUN_SERVER =
|
||||
io.grpc.stub.Method.create(
|
||||
io.grpc.MethodType.DUPLEX_STREAMING, "RunServer",
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.ServerArgs.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(grpc.testing.Qpstest.ServerStatus.PARSER));
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ServerArgs.PARSER),
|
||||
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.ServerStatus.PARSER));
|
||||
|
||||
public static WorkerStub newStub(io.grpc.Channel channel) {
|
||||
return new WorkerStub(channel, CONFIG);
|
||||
|
|
@ -48,10 +48,10 @@ public class WorkerGrpc {
|
|||
@javax.annotation.concurrent.Immutable
|
||||
public static class WorkerServiceDescriptor extends
|
||||
io.grpc.stub.AbstractServiceDescriptor<WorkerServiceDescriptor> {
|
||||
public final io.grpc.MethodDescriptor<grpc.testing.Qpstest.ClientArgs,
|
||||
grpc.testing.Qpstest.ClientStatus> runTest;
|
||||
public final io.grpc.MethodDescriptor<grpc.testing.Qpstest.ServerArgs,
|
||||
grpc.testing.Qpstest.ServerStatus> runServer;
|
||||
public final io.grpc.MethodDescriptor<io.grpc.testing.ClientArgs,
|
||||
io.grpc.testing.ClientStatus> runTest;
|
||||
public final io.grpc.MethodDescriptor<io.grpc.testing.ServerArgs,
|
||||
io.grpc.testing.ServerStatus> runServer;
|
||||
|
||||
private WorkerServiceDescriptor() {
|
||||
runTest = createMethodDescriptor(
|
||||
|
|
@ -63,11 +63,11 @@ public class WorkerGrpc {
|
|||
@SuppressWarnings("unchecked")
|
||||
private WorkerServiceDescriptor(
|
||||
java.util.Map<java.lang.String, io.grpc.MethodDescriptor<?, ?>> methodMap) {
|
||||
runTest = (io.grpc.MethodDescriptor<grpc.testing.Qpstest.ClientArgs,
|
||||
grpc.testing.Qpstest.ClientStatus>) methodMap.get(
|
||||
runTest = (io.grpc.MethodDescriptor<io.grpc.testing.ClientArgs,
|
||||
io.grpc.testing.ClientStatus>) methodMap.get(
|
||||
CONFIG.runTest.getName());
|
||||
runServer = (io.grpc.MethodDescriptor<grpc.testing.Qpstest.ServerArgs,
|
||||
grpc.testing.Qpstest.ServerStatus>) methodMap.get(
|
||||
runServer = (io.grpc.MethodDescriptor<io.grpc.testing.ServerArgs,
|
||||
io.grpc.testing.ServerStatus>) methodMap.get(
|
||||
CONFIG.runServer.getName());
|
||||
}
|
||||
|
||||
|
|
@ -87,11 +87,11 @@ public class WorkerGrpc {
|
|||
|
||||
public static interface Worker {
|
||||
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ClientArgs> runTest(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ClientStatus> responseObserver);
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.ClientArgs> runTest(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.ClientStatus> responseObserver);
|
||||
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ServerArgs> runServer(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ServerStatus> responseObserver);
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.ServerArgs> runServer(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.ServerStatus> responseObserver);
|
||||
}
|
||||
|
||||
public static interface WorkerBlockingClient {
|
||||
|
|
@ -115,15 +115,15 @@ public class WorkerGrpc {
|
|||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ClientArgs> runTest(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ClientStatus> responseObserver) {
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.ClientArgs> runTest(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.ClientStatus> responseObserver) {
|
||||
return duplexStreamingCall(
|
||||
channel.newCall(config.runTest), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ServerArgs> runServer(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ServerStatus> responseObserver) {
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.ServerArgs> runServer(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.ServerStatus> responseObserver) {
|
||||
return duplexStreamingCall(
|
||||
channel.newCall(config.runServer), responseObserver);
|
||||
}
|
||||
|
|
@ -166,11 +166,11 @@ public class WorkerGrpc {
|
|||
METHOD_RUN_TEST,
|
||||
asyncStreamingRequestCall(
|
||||
new io.grpc.stub.ServerCalls.StreamingRequestMethod<
|
||||
grpc.testing.Qpstest.ClientArgs,
|
||||
grpc.testing.Qpstest.ClientStatus>() {
|
||||
io.grpc.testing.ClientArgs,
|
||||
io.grpc.testing.ClientStatus>() {
|
||||
@java.lang.Override
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ClientArgs> invoke(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ClientStatus> responseObserver) {
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.ClientArgs> invoke(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.ClientStatus> responseObserver) {
|
||||
return serviceImpl.runTest(responseObserver);
|
||||
}
|
||||
})))
|
||||
|
|
@ -178,11 +178,11 @@ public class WorkerGrpc {
|
|||
METHOD_RUN_SERVER,
|
||||
asyncStreamingRequestCall(
|
||||
new io.grpc.stub.ServerCalls.StreamingRequestMethod<
|
||||
grpc.testing.Qpstest.ServerArgs,
|
||||
grpc.testing.Qpstest.ServerStatus>() {
|
||||
io.grpc.testing.ServerArgs,
|
||||
io.grpc.testing.ServerStatus>() {
|
||||
@java.lang.Override
|
||||
public io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ServerArgs> invoke(
|
||||
io.grpc.stub.StreamObserver<grpc.testing.Qpstest.ServerStatus> responseObserver) {
|
||||
public io.grpc.stub.StreamObserver<io.grpc.testing.ServerArgs> invoke(
|
||||
io.grpc.stub.StreamObserver<io.grpc.testing.ServerStatus> responseObserver) {
|
||||
return serviceImpl.runServer(responseObserver);
|
||||
}
|
||||
}))).build();
|
||||
Loading…
Reference in New Issue