Last active
January 21, 2016 22:59
-
-
Save JoostvDoorn/c69f14a485144276545b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Test; | |
import static io.grpc.stub.ClientCalls.asyncUnaryCall; | |
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; | |
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; | |
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; | |
import static io.grpc.stub.ClientCalls.blockingUnaryCall; | |
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; | |
import static io.grpc.stub.ClientCalls.futureUnaryCall; | |
import static io.grpc.MethodDescriptor.generateFullMethodName; | |
import static io.grpc.stub.ServerCalls.asyncUnaryCall; | |
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; | |
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; | |
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; | |
@javax.annotation.Generated("by gRPC proto compiler") | |
public class AAGrpc { | |
public static final String SERVICE_NAME = "Test.AA"; | |
// Static method descriptors that strictly reflect the proto. | |
@io.grpc.ExperimentalApi | |
public static final io.grpc.MethodDescriptor<Test.Protofile.BB, | |
Test.Protofile.CC> METHOD_AA = | |
io.grpc.MethodDescriptor.create( | |
io.grpc.MethodDescriptor.MethodType.UNARY, | |
generateFullMethodName( | |
"Test.AA", "AA"), | |
io.grpc.protobuf.ProtoUtils.marshaller(Test.Protofile.BB.parser()), | |
io.grpc.protobuf.ProtoUtils.marshaller(Test.Protofile.CC.parser())); | |
public static AAStub newStub(io.grpc.Channel channel) { | |
return new AAStub(channel); | |
} | |
public static AABlockingStub newBlockingStub( | |
io.grpc.Channel channel) { | |
return new AABlockingStub(channel); | |
} | |
public static AAFutureStub newFutureStub( | |
io.grpc.Channel channel) { | |
return new AAFutureStub(channel); | |
} | |
public static interface AA { | |
public void aA(Test.Protofile.BB request, | |
io.grpc.stub.StreamObserver<Test.Protofile.CC> responseObserver); | |
} | |
public static interface AABlockingClient { | |
public Test.Protofile.CC aA(Test.Protofile.BB request); | |
} | |
public static interface AAFutureClient { | |
public com.google.common.util.concurrent.ListenableFuture<Test.Protofile.CC> aA( | |
Test.Protofile.BB request); | |
} | |
public static class AAStub extends io.grpc.stub.AbstractStub<AAStub> | |
implements AA { | |
private AAStub(io.grpc.Channel channel) { | |
super(channel); | |
} | |
private AAStub(io.grpc.Channel channel, | |
io.grpc.CallOptions callOptions) { | |
super(channel, callOptions); | |
} | |
@java.lang.Override | |
protected AAStub build(io.grpc.Channel channel, | |
io.grpc.CallOptions callOptions) { | |
return new AAStub(channel, callOptions); | |
} | |
@java.lang.Override | |
public void aA(Test.Protofile.BB request, | |
io.grpc.stub.StreamObserver<Test.Protofile.CC> responseObserver) { | |
asyncUnaryCall( | |
channel.newCall(METHOD_AA, callOptions), request, responseObserver); | |
} | |
} | |
public static class AABlockingStub extends io.grpc.stub.AbstractStub<AABlockingStub> | |
implements AABlockingClient { | |
private AABlockingStub(io.grpc.Channel channel) { | |
super(channel); | |
} | |
private AABlockingStub(io.grpc.Channel channel, | |
io.grpc.CallOptions callOptions) { | |
super(channel, callOptions); | |
} | |
@java.lang.Override | |
protected AABlockingStub build(io.grpc.Channel channel, | |
io.grpc.CallOptions callOptions) { | |
return new AABlockingStub(channel, callOptions); | |
} | |
@java.lang.Override | |
public Test.Protofile.CC aA(Test.Protofile.BB request) { | |
return blockingUnaryCall( | |
channel.newCall(METHOD_AA, callOptions), request); | |
} | |
} | |
public static class AAFutureStub extends io.grpc.stub.AbstractStub<AAFutureStub> | |
implements AAFutureClient { | |
private AAFutureStub(io.grpc.Channel channel) { | |
super(channel); | |
} | |
private AAFutureStub(io.grpc.Channel channel, | |
io.grpc.CallOptions callOptions) { | |
super(channel, callOptions); | |
} | |
@java.lang.Override | |
protected AAFutureStub build(io.grpc.Channel channel, | |
io.grpc.CallOptions callOptions) { | |
return new AAFutureStub(channel, callOptions); | |
} | |
@java.lang.Override | |
public com.google.common.util.concurrent.ListenableFuture<Test.Protofile.CC> aA( | |
Test.Protofile.BB request) { | |
return futureUnaryCall( | |
channel.newCall(METHOD_AA, callOptions), request); | |
} | |
} | |
public static io.grpc.ServerServiceDefinition bindService( | |
final AA serviceImpl) { | |
return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) | |
.addMethod(io.grpc.ServerMethodDefinition.create( | |
METHOD_AA, | |
asyncUnaryCall( | |
new io.grpc.stub.ServerCalls.UnaryMethod< | |
Test.Protofile.BB, | |
Test.Protofile.CC>() { | |
@java.lang.Override | |
public void invoke( | |
Test.Protofile.BB request, | |
io.grpc.stub.StreamObserver<Test.Protofile.CC> responseObserver) { | |
serviceImpl.aA(request, responseObserver); | |
} | |
}))).build(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by the protocol buffer compiler. DO NOT EDIT! | |
// source: Protofile.proto | |
package Test; | |
public final class Protofile { | |
private Protofile() {} | |
public static void registerAllExtensions( | |
com.google.protobuf.ExtensionRegistry registry) { | |
} | |
public interface BBOrBuilder | |
extends com.google.protobuf.MessageOrBuilder { | |
// repeated double field_a = 1; | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
java.util.List<java.lang.Double> getFieldAList(); | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
int getFieldACount(); | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
double getFieldA(int index); | |
// repeated double field_b = 2; | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
java.util.List<java.lang.Double> getFieldBList(); | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
int getFieldBCount(); | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
double getFieldB(int index); | |
} | |
/** | |
* Protobuf type {@code Test.BB} | |
*/ | |
public static final class BB extends | |
com.google.protobuf.GeneratedMessage | |
implements BBOrBuilder { | |
// Use BB.newBuilder() to construct. | |
private BB(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private BB(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final BB defaultInstance; | |
public static BB getDefaultInstance() { | |
return defaultInstance; | |
} | |
public BB getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private BB( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
initFields(); | |
int mutable_bitField0_ = 0; | |
com.google.protobuf.UnknownFieldSet.Builder unknownFields = | |
com.google.protobuf.UnknownFieldSet.newBuilder(); | |
try { | |
boolean done = false; | |
while (!done) { | |
int tag = input.readTag(); | |
switch (tag) { | |
case 0: | |
done = true; | |
break; | |
default: { | |
if (!parseUnknownField(input, unknownFields, | |
extensionRegistry, tag)) { | |
done = true; | |
} | |
break; | |
} | |
case 9: { | |
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { | |
fieldA_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000001; | |
} | |
fieldA_.add(input.readDouble()); | |
break; | |
} | |
case 10: { | |
int length = input.readRawVarint32(); | |
int limit = input.pushLimit(length); | |
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { | |
fieldA_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000001; | |
} | |
while (input.getBytesUntilLimit() > 0) { | |
fieldA_.add(input.readDouble()); | |
} | |
input.popLimit(limit); | |
break; | |
} | |
case 17: { | |
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000002; | |
} | |
fieldB_.add(input.readDouble()); | |
break; | |
} | |
case 18: { | |
int length = input.readRawVarint32(); | |
int limit = input.pushLimit(length); | |
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { | |
fieldB_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000002; | |
} | |
while (input.getBytesUntilLimit() > 0) { | |
fieldB_.add(input.readDouble()); | |
} | |
input.popLimit(limit); | |
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)) { | |
fieldA_ = java.util.Collections.unmodifiableList(fieldA_); | |
} | |
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = java.util.Collections.unmodifiableList(fieldB_); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return Test.Protofile.internal_static_Test_BB_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return Test.Protofile.internal_static_Test_BB_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
Test.Protofile.BB.class, Test.Protofile.BB.Builder.class); | |
} | |
public static com.google.protobuf.Parser<BB> PARSER = | |
new com.google.protobuf.AbstractParser<BB>() { | |
public BB parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new BB(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<BB> getParserForType() { | |
return PARSER; | |
} | |
// repeated double field_a = 1; | |
public static final int FIELD_A_FIELD_NUMBER = 1; | |
private java.util.List<java.lang.Double> fieldA_; | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldAList() { | |
return fieldA_; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public int getFieldACount() { | |
return fieldA_.size(); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public double getFieldA(int index) { | |
return fieldA_.get(index); | |
} | |
// repeated double field_b = 2; | |
public static final int FIELD_B_FIELD_NUMBER = 2; | |
private java.util.List<java.lang.Double> fieldB_; | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldBList() { | |
return fieldB_; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public int getFieldBCount() { | |
return fieldB_.size(); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public double getFieldB(int index) { | |
return fieldB_.get(index); | |
} | |
private void initFields() { | |
fieldA_ = java.util.Collections.emptyList(); | |
fieldB_ = java.util.Collections.emptyList(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized != -1) return isInitialized == 1; | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
for (int i = 0; i < fieldA_.size(); i++) { | |
output.writeDouble(1, fieldA_.get(i)); | |
} | |
for (int i = 0; i < fieldB_.size(); i++) { | |
output.writeDouble(2, fieldB_.get(i)); | |
} | |
getUnknownFields().writeTo(output); | |
} | |
private int memoizedSerializedSize = -1; | |
public int getSerializedSize() { | |
int size = memoizedSerializedSize; | |
if (size != -1) return size; | |
size = 0; | |
{ | |
int dataSize = 0; | |
dataSize = 8 * getFieldAList().size(); | |
size += dataSize; | |
size += 1 * getFieldAList().size(); | |
} | |
{ | |
int dataSize = 0; | |
dataSize = 8 * getFieldBList().size(); | |
size += dataSize; | |
size += 1 * getFieldBList().size(); | |
} | |
size += getUnknownFields().getSerializedSize(); | |
memoizedSerializedSize = size; | |
return size; | |
} | |
private static final long serialVersionUID = 0L; | |
@java.lang.Override | |
protected java.lang.Object writeReplace() | |
throws java.io.ObjectStreamException { | |
return super.writeReplace(); | |
} | |
public static Test.Protofile.BB parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static Test.Protofile.BB parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static Test.Protofile.BB parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static Test.Protofile.BB parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static Test.Protofile.BB parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static Test.Protofile.BB parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static Test.Protofile.BB parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static Test.Protofile.BB parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static Test.Protofile.BB parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static Test.Protofile.BB 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 Builder.create(); } | |
public Builder newBuilderForType() { return newBuilder(); } | |
public static Builder newBuilder(Test.Protofile.BB 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 Test.BB} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> | |
implements Test.Protofile.BBOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return Test.Protofile.internal_static_Test_BB_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return Test.Protofile.internal_static_Test_BB_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
Test.Protofile.BB.class, Test.Protofile.BB.Builder.class); | |
} | |
// Construct using Test.Protofile.BB.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
fieldA_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
fieldB_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return Test.Protofile.internal_static_Test_BB_descriptor; | |
} | |
public Test.Protofile.BB getDefaultInstanceForType() { | |
return Test.Protofile.BB.getDefaultInstance(); | |
} | |
public Test.Protofile.BB build() { | |
Test.Protofile.BB result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public Test.Protofile.BB buildPartial() { | |
Test.Protofile.BB result = new Test.Protofile.BB(this); | |
int from_bitField0_ = bitField0_; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
fieldA_ = java.util.Collections.unmodifiableList(fieldA_); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} | |
result.fieldA_ = fieldA_; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = java.util.Collections.unmodifiableList(fieldB_); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} | |
result.fieldB_ = fieldB_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof Test.Protofile.BB) { | |
return mergeFrom((Test.Protofile.BB)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(Test.Protofile.BB other) { | |
if (other == Test.Protofile.BB.getDefaultInstance()) return this; | |
if (!other.fieldA_.isEmpty()) { | |
if (fieldA_.isEmpty()) { | |
fieldA_ = other.fieldA_; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} else { | |
ensureFieldAIsMutable(); | |
fieldA_.addAll(other.fieldA_); | |
} | |
onChanged(); | |
} | |
if (!other.fieldB_.isEmpty()) { | |
if (fieldB_.isEmpty()) { | |
fieldB_ = other.fieldB_; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} else { | |
ensureFieldBIsMutable(); | |
fieldB_.addAll(other.fieldB_); | |
} | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
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 { | |
Test.Protofile.BB parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (Test.Protofile.BB) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
// repeated double field_a = 1; | |
private java.util.List<java.lang.Double> fieldA_ = java.util.Collections.emptyList(); | |
private void ensureFieldAIsMutable() { | |
if (!((bitField0_ & 0x00000001) == 0x00000001)) { | |
fieldA_ = new java.util.ArrayList<java.lang.Double>(fieldA_); | |
bitField0_ |= 0x00000001; | |
} | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldAList() { | |
return java.util.Collections.unmodifiableList(fieldA_); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public int getFieldACount() { | |
return fieldA_.size(); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public double getFieldA(int index) { | |
return fieldA_.get(index); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder setFieldA( | |
int index, double value) { | |
ensureFieldAIsMutable(); | |
fieldA_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder addFieldA(double value) { | |
ensureFieldAIsMutable(); | |
fieldA_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder addAllFieldA( | |
java.lang.Iterable<? extends java.lang.Double> values) { | |
ensureFieldAIsMutable(); | |
super.addAll(values, fieldA_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder clearFieldA() { | |
fieldA_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
onChanged(); | |
return this; | |
} | |
// repeated double field_b = 2; | |
private java.util.List<java.lang.Double> fieldB_ = java.util.Collections.emptyList(); | |
private void ensureFieldBIsMutable() { | |
if (!((bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = new java.util.ArrayList<java.lang.Double>(fieldB_); | |
bitField0_ |= 0x00000002; | |
} | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldBList() { | |
return java.util.Collections.unmodifiableList(fieldB_); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public int getFieldBCount() { | |
return fieldB_.size(); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public double getFieldB(int index) { | |
return fieldB_.get(index); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder setFieldB( | |
int index, double value) { | |
ensureFieldBIsMutable(); | |
fieldB_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder addFieldB(double value) { | |
ensureFieldBIsMutable(); | |
fieldB_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder addAllFieldB( | |
java.lang.Iterable<? extends java.lang.Double> values) { | |
ensureFieldBIsMutable(); | |
super.addAll(values, fieldB_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder clearFieldB() { | |
fieldB_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:Test.BB) | |
} | |
static { | |
defaultInstance = new BB(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:Test.BB) | |
} | |
public interface CCOrBuilder | |
extends com.google.protobuf.MessageOrBuilder { | |
// repeated double field_a = 1; | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
java.util.List<java.lang.Double> getFieldAList(); | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
int getFieldACount(); | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
double getFieldA(int index); | |
// repeated double field_b = 2; | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
java.util.List<java.lang.Double> getFieldBList(); | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
int getFieldBCount(); | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
double getFieldB(int index); | |
} | |
/** | |
* Protobuf type {@code Test.CC} | |
*/ | |
public static final class CC extends | |
com.google.protobuf.GeneratedMessage | |
implements CCOrBuilder { | |
// Use CC.newBuilder() to construct. | |
private CC(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private CC(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final CC defaultInstance; | |
public static CC getDefaultInstance() { | |
return defaultInstance; | |
} | |
public CC getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private CC( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
initFields(); | |
int mutable_bitField0_ = 0; | |
com.google.protobuf.UnknownFieldSet.Builder unknownFields = | |
com.google.protobuf.UnknownFieldSet.newBuilder(); | |
try { | |
boolean done = false; | |
while (!done) { | |
int tag = input.readTag(); | |
switch (tag) { | |
case 0: | |
done = true; | |
break; | |
default: { | |
if (!parseUnknownField(input, unknownFields, | |
extensionRegistry, tag)) { | |
done = true; | |
} | |
break; | |
} | |
case 9: { | |
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { | |
fieldA_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000001; | |
} | |
fieldA_.add(input.readDouble()); | |
break; | |
} | |
case 10: { | |
int length = input.readRawVarint32(); | |
int limit = input.pushLimit(length); | |
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { | |
fieldA_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000001; | |
} | |
while (input.getBytesUntilLimit() > 0) { | |
fieldA_.add(input.readDouble()); | |
} | |
input.popLimit(limit); | |
break; | |
} | |
case 17: { | |
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000002; | |
} | |
fieldB_.add(input.readDouble()); | |
break; | |
} | |
case 18: { | |
int length = input.readRawVarint32(); | |
int limit = input.pushLimit(length); | |
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { | |
fieldB_ = new java.util.ArrayList<java.lang.Double>(); | |
mutable_bitField0_ |= 0x00000002; | |
} | |
while (input.getBytesUntilLimit() > 0) { | |
fieldB_.add(input.readDouble()); | |
} | |
input.popLimit(limit); | |
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)) { | |
fieldA_ = java.util.Collections.unmodifiableList(fieldA_); | |
} | |
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = java.util.Collections.unmodifiableList(fieldB_); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return Test.Protofile.internal_static_Test_CC_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return Test.Protofile.internal_static_Test_CC_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
Test.Protofile.CC.class, Test.Protofile.CC.Builder.class); | |
} | |
public static com.google.protobuf.Parser<CC> PARSER = | |
new com.google.protobuf.AbstractParser<CC>() { | |
public CC parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new CC(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<CC> getParserForType() { | |
return PARSER; | |
} | |
// repeated double field_a = 1; | |
public static final int FIELD_A_FIELD_NUMBER = 1; | |
private java.util.List<java.lang.Double> fieldA_; | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldAList() { | |
return fieldA_; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public int getFieldACount() { | |
return fieldA_.size(); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public double getFieldA(int index) { | |
return fieldA_.get(index); | |
} | |
// repeated double field_b = 2; | |
public static final int FIELD_B_FIELD_NUMBER = 2; | |
private java.util.List<java.lang.Double> fieldB_; | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldBList() { | |
return fieldB_; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public int getFieldBCount() { | |
return fieldB_.size(); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public double getFieldB(int index) { | |
return fieldB_.get(index); | |
} | |
private void initFields() { | |
fieldA_ = java.util.Collections.emptyList(); | |
fieldB_ = java.util.Collections.emptyList(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized != -1) return isInitialized == 1; | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
for (int i = 0; i < fieldA_.size(); i++) { | |
output.writeDouble(1, fieldA_.get(i)); | |
} | |
for (int i = 0; i < fieldB_.size(); i++) { | |
output.writeDouble(2, fieldB_.get(i)); | |
} | |
getUnknownFields().writeTo(output); | |
} | |
private int memoizedSerializedSize = -1; | |
public int getSerializedSize() { | |
int size = memoizedSerializedSize; | |
if (size != -1) return size; | |
size = 0; | |
{ | |
int dataSize = 0; | |
dataSize = 8 * getFieldAList().size(); | |
size += dataSize; | |
size += 1 * getFieldAList().size(); | |
} | |
{ | |
int dataSize = 0; | |
dataSize = 8 * getFieldBList().size(); | |
size += dataSize; | |
size += 1 * getFieldBList().size(); | |
} | |
size += getUnknownFields().getSerializedSize(); | |
memoizedSerializedSize = size; | |
return size; | |
} | |
private static final long serialVersionUID = 0L; | |
@java.lang.Override | |
protected java.lang.Object writeReplace() | |
throws java.io.ObjectStreamException { | |
return super.writeReplace(); | |
} | |
public static Test.Protofile.CC parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static Test.Protofile.CC parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static Test.Protofile.CC parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static Test.Protofile.CC parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static Test.Protofile.CC parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static Test.Protofile.CC parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static Test.Protofile.CC parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static Test.Protofile.CC parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static Test.Protofile.CC parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static Test.Protofile.CC 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 Builder.create(); } | |
public Builder newBuilderForType() { return newBuilder(); } | |
public static Builder newBuilder(Test.Protofile.CC 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 Test.CC} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> | |
implements Test.Protofile.CCOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return Test.Protofile.internal_static_Test_CC_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return Test.Protofile.internal_static_Test_CC_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
Test.Protofile.CC.class, Test.Protofile.CC.Builder.class); | |
} | |
// Construct using Test.Protofile.CC.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
fieldA_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
fieldB_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return Test.Protofile.internal_static_Test_CC_descriptor; | |
} | |
public Test.Protofile.CC getDefaultInstanceForType() { | |
return Test.Protofile.CC.getDefaultInstance(); | |
} | |
public Test.Protofile.CC build() { | |
Test.Protofile.CC result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public Test.Protofile.CC buildPartial() { | |
Test.Protofile.CC result = new Test.Protofile.CC(this); | |
int from_bitField0_ = bitField0_; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
fieldA_ = java.util.Collections.unmodifiableList(fieldA_); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} | |
result.fieldA_ = fieldA_; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = java.util.Collections.unmodifiableList(fieldB_); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} | |
result.fieldB_ = fieldB_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof Test.Protofile.CC) { | |
return mergeFrom((Test.Protofile.CC)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(Test.Protofile.CC other) { | |
if (other == Test.Protofile.CC.getDefaultInstance()) return this; | |
if (!other.fieldA_.isEmpty()) { | |
if (fieldA_.isEmpty()) { | |
fieldA_ = other.fieldA_; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} else { | |
ensureFieldAIsMutable(); | |
fieldA_.addAll(other.fieldA_); | |
} | |
onChanged(); | |
} | |
if (!other.fieldB_.isEmpty()) { | |
if (fieldB_.isEmpty()) { | |
fieldB_ = other.fieldB_; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} else { | |
ensureFieldBIsMutable(); | |
fieldB_.addAll(other.fieldB_); | |
} | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
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 { | |
Test.Protofile.CC parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (Test.Protofile.CC) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
// repeated double field_a = 1; | |
private java.util.List<java.lang.Double> fieldA_ = java.util.Collections.emptyList(); | |
private void ensureFieldAIsMutable() { | |
if (!((bitField0_ & 0x00000001) == 0x00000001)) { | |
fieldA_ = new java.util.ArrayList<java.lang.Double>(fieldA_); | |
bitField0_ |= 0x00000001; | |
} | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldAList() { | |
return java.util.Collections.unmodifiableList(fieldA_); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public int getFieldACount() { | |
return fieldA_.size(); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public double getFieldA(int index) { | |
return fieldA_.get(index); | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder setFieldA( | |
int index, double value) { | |
ensureFieldAIsMutable(); | |
fieldA_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder addFieldA(double value) { | |
ensureFieldAIsMutable(); | |
fieldA_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder addAllFieldA( | |
java.lang.Iterable<? extends java.lang.Double> values) { | |
ensureFieldAIsMutable(); | |
super.addAll(values, fieldA_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_a = 1;</code> | |
*/ | |
public Builder clearFieldA() { | |
fieldA_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
onChanged(); | |
return this; | |
} | |
// repeated double field_b = 2; | |
private java.util.List<java.lang.Double> fieldB_ = java.util.Collections.emptyList(); | |
private void ensureFieldBIsMutable() { | |
if (!((bitField0_ & 0x00000002) == 0x00000002)) { | |
fieldB_ = new java.util.ArrayList<java.lang.Double>(fieldB_); | |
bitField0_ |= 0x00000002; | |
} | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public java.util.List<java.lang.Double> | |
getFieldBList() { | |
return java.util.Collections.unmodifiableList(fieldB_); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public int getFieldBCount() { | |
return fieldB_.size(); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public double getFieldB(int index) { | |
return fieldB_.get(index); | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder setFieldB( | |
int index, double value) { | |
ensureFieldBIsMutable(); | |
fieldB_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder addFieldB(double value) { | |
ensureFieldBIsMutable(); | |
fieldB_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder addAllFieldB( | |
java.lang.Iterable<? extends java.lang.Double> values) { | |
ensureFieldBIsMutable(); | |
super.addAll(values, fieldB_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated double field_b = 2;</code> | |
*/ | |
public Builder clearFieldB() { | |
fieldB_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:Test.CC) | |
} | |
static { | |
defaultInstance = new CC(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:Test.CC) | |
} | |
private static com.google.protobuf.Descriptors.Descriptor | |
internal_static_Test_BB_descriptor; | |
private static | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internal_static_Test_BB_fieldAccessorTable; | |
private static com.google.protobuf.Descriptors.Descriptor | |
internal_static_Test_CC_descriptor; | |
private static | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internal_static_Test_CC_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\017Protofile.proto\022\004Test\"&\n\002BB\022\017\n\007field_a" + | |
"\030\001 \003(\001\022\017\n\007field_b\030\002 \003(\001\"&\n\002CC\022\017\n\007field_a" + | |
"\030\001 \003(\001\022\017\n\007field_b\030\002 \003(\0012 \n\002AA\022\032\n\002AA\022\010.Te" + | |
"st.BB\032\010.Test.CC\"\000" | |
}; | |
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; | |
internal_static_Test_BB_descriptor = | |
getDescriptor().getMessageTypes().get(0); | |
internal_static_Test_BB_fieldAccessorTable = new | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable( | |
internal_static_Test_BB_descriptor, | |
new java.lang.String[] { "FieldA", "FieldB", }); | |
internal_static_Test_CC_descriptor = | |
getDescriptor().getMessageTypes().get(1); | |
internal_static_Test_CC_fieldAccessorTable = new | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable( | |
internal_static_Test_CC_descriptor, | |
new java.lang.String[] { "FieldA", "FieldB", }); | |
return null; | |
} | |
}; | |
com.google.protobuf.Descriptors.FileDescriptor | |
.internalBuildGeneratedFileFrom(descriptorData, | |
new com.google.protobuf.Descriptors.FileDescriptor[] { | |
}, assigner); | |
} | |
// @@protoc_insertion_point(outer_class_scope) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto2"; | |
package Test; | |
service AA { | |
rpc AA (BB) returns (CC) {} | |
} | |
message BB { | |
repeated double field_a = 1; | |
repeated double field_b = 2; | |
} | |
message CC { | |
repeated double field_a = 1; | |
repeated double field_b = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment