// Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/main/java/com/orbekk/same/benchmark/Example.proto package com.orbekk.same.benchmark; public final class Example { private Example() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface DataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string message = 1; boolean hasMessage(); String getMessage(); // optional int32 arg1 = 2; boolean hasArg1(); int getArg1(); // optional int32 arg2 = 3; boolean hasArg2(); int getArg2(); } public static final class Data extends com.google.protobuf.GeneratedMessage implements DataOrBuilder { // Use Data.newBuilder() to construct. private Data(Builder builder) { super(builder); } private Data(boolean noInit) {} private static final Data defaultInstance; public static Data getDefaultInstance() { return defaultInstance; } public Data getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.benchmark.Example.internal_static_com_orbekk_same_benchmark_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.benchmark.Example.internal_static_com_orbekk_same_benchmark_Data_fieldAccessorTable; } private int bitField0_; // optional string message = 1; public static final int MESSAGE_FIELD_NUMBER = 1; private java.lang.Object message_; public boolean hasMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getMessage() { java.lang.Object ref = message_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { message_ = s; } return s; } } private com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 arg1 = 2; public static final int ARG1_FIELD_NUMBER = 2; private int arg1_; public boolean hasArg1() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getArg1() { return arg1_; } // optional int32 arg2 = 3; public static final int ARG2_FIELD_NUMBER = 3; private int arg2_; public boolean hasArg2() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getArg2() { return arg2_; } private void initFields() { message_ = ""; arg1_ = 0; arg2_ = 0; } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getMessageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, arg1_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, arg2_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getMessageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, arg1_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, arg2_); } 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 com.orbekk.same.benchmark.Example.Data parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.benchmark.Example.Data parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.orbekk.same.benchmark.Example.Data parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.same.benchmark.Example.Data parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.orbekk.same.benchmark.Example.Data 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; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.orbekk.same.benchmark.Example.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.same.benchmark.Example.internal_static_com_orbekk_same_benchmark_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.same.benchmark.Example.internal_static_com_orbekk_same_benchmark_Data_fieldAccessorTable; } // Construct using com.orbekk.same.benchmark.Example.Data.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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(); message_ = ""; bitField0_ = (bitField0_ & ~0x00000001); arg1_ = 0; bitField0_ = (bitField0_ & ~0x00000002); arg2_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.same.benchmark.Example.Data.getDescriptor(); } public com.orbekk.same.benchmark.Example.Data getDefaultInstanceForType() { return com.orbekk.same.benchmark.Example.Data.getDefaultInstance(); } public com.orbekk.same.benchmark.Example.Data build() { com.orbekk.same.benchmark.Example.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.orbekk.same.benchmark.Example.Data buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.orbekk.same.benchmark.Example.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.orbekk.same.benchmark.Example.Data buildPartial() { com.orbekk.same.benchmark.Example.Data result = new com.orbekk.same.benchmark.Example.Data(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.message_ = message_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.arg1_ = arg1_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.arg2_ = arg2_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.same.benchmark.Example.Data) { return mergeFrom((com.orbekk.same.benchmark.Example.Data)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.same.benchmark.Example.Data other) { if (other == com.orbekk.same.benchmark.Example.Data.getDefaultInstance()) return this; if (other.hasMessage()) { setMessage(other.getMessage()); } if (other.hasArg1()) { setArg1(other.getArg1()); } if (other.hasArg2()) { setArg2(other.getArg2()); } 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 { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; message_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; arg1_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; arg2_ = input.readInt32(); break; } } } } private int bitField0_; // optional string message = 1; private java.lang.Object message_ = ""; public boolean hasMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); message_ = s; return s; } else { return (String) ref; } } public Builder setMessage(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; message_ = value; onChanged(); return this; } public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000001); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } void setMessage(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; message_ = value; onChanged(); } // optional int32 arg1 = 2; private int arg1_ ; public boolean hasArg1() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getArg1() { return arg1_; } public Builder setArg1(int value) { bitField0_ |= 0x00000002; arg1_ = value; onChanged(); return this; } public Builder clearArg1() { bitField0_ = (bitField0_ & ~0x00000002); arg1_ = 0; onChanged(); return this; } // optional int32 arg2 = 3; private int arg2_ ; public boolean hasArg2() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getArg2() { return arg2_; } public Builder setArg2(int value) { bitField0_ |= 0x00000004; arg2_ = value; onChanged(); return this; } public Builder clearArg2() { bitField0_ = (bitField0_ & ~0x00000004); arg2_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.same.benchmark.Data) } static { defaultInstance = new Data(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.same.benchmark.Data) } public static abstract class Service implements com.google.protobuf.Service { protected Service() {} public interface Interface { public abstract void methodA( com.google.protobuf.RpcController controller, com.orbekk.same.benchmark.Example.Data request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new Service() { @java.lang.Override public void methodA( com.google.protobuf.RpcController controller, com.orbekk.same.benchmark.Example.Data request, com.google.protobuf.RpcCallback done) { impl.methodA(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.methodA(controller, (com.orbekk.same.benchmark.Example.Data)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.benchmark.Example.Data.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.benchmark.Example.Data.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void methodA( com.google.protobuf.RpcController controller, com.orbekk.same.benchmark.Example.Data request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.same.benchmark.Example.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.methodA(controller, (com.orbekk.same.benchmark.Example.Data)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.benchmark.Example.Data.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return com.orbekk.same.benchmark.Example.Data.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends com.orbekk.same.benchmark.Example.Service implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void methodA( com.google.protobuf.RpcController controller, com.orbekk.same.benchmark.Example.Data request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.benchmark.Example.Data.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.same.benchmark.Example.Data.class, com.orbekk.same.benchmark.Example.Data.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.same.benchmark.Example.Data methodA( com.google.protobuf.RpcController controller, com.orbekk.same.benchmark.Example.Data request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public com.orbekk.same.benchmark.Example.Data methodA( com.google.protobuf.RpcController controller, com.orbekk.same.benchmark.Example.Data request) throws com.google.protobuf.ServiceException { return (com.orbekk.same.benchmark.Example.Data) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.same.benchmark.Example.Data.getDefaultInstance()); } } } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_same_benchmark_Data_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_same_benchmark_Data_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n5src/main/java/com/orbekk/same/benchmar" + "k/Example.proto\022\031com.orbekk.same.benchma" + "rk\"3\n\004Data\022\017\n\007message\030\001 \001(\t\022\014\n\004arg1\030\002 \001(" + "\005\022\014\n\004arg2\030\003 \001(\0052V\n\007Service\022K\n\007MethodA\022\037." + "com.orbekk.same.benchmark.Data\032\037.com.orb" + "ekk.same.benchmark.DataB\003\210\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_com_orbekk_same_benchmark_Data_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_orbekk_same_benchmark_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_same_benchmark_Data_descriptor, new java.lang.String[] { "Message", "Arg1", "Arg2", }, com.orbekk.same.benchmark.Example.Data.class, com.orbekk.same.benchmark.Example.Data.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }