// Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/main/java/com/orbekk/example/example.proto package com.orbekk.example; public final class Example { private Example() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public static final class Empty extends com.google.protobuf.GeneratedMessage { // Use Empty.newBuilder() to construct. private Empty() { initFields(); } private Empty(boolean noInit) {} private static final Empty defaultInstance; public static Empty getDefaultInstance() { return defaultInstance; } public Empty getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.example.Example.internal_static_com_orbekk_example_Empty_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.example.Example.internal_static_com_orbekk_example_Empty_fieldAccessorTable; } private void initFields() { } public final boolean isInitialized() { return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static com.orbekk.example.Example.Empty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.example.Example.Empty 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.example.Example.Empty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.example.Example.Empty parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.example.Example.Empty parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.example.Example.Empty parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.example.Example.Empty 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.example.Example.Empty 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.example.Example.Empty parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.example.Example.Empty 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.example.Example.Empty prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder { private com.orbekk.example.Example.Empty result; // Construct using com.orbekk.example.Example.Empty.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new com.orbekk.example.Example.Empty(); return builder; } protected com.orbekk.example.Example.Empty internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new com.orbekk.example.Example.Empty(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.example.Example.Empty.getDescriptor(); } public com.orbekk.example.Example.Empty getDefaultInstanceForType() { return com.orbekk.example.Example.Empty.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public com.orbekk.example.Example.Empty build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private com.orbekk.example.Example.Empty buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public com.orbekk.example.Example.Empty buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } com.orbekk.example.Example.Empty returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.example.Example.Empty) { return mergeFrom((com.orbekk.example.Example.Empty)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.example.Example.Empty other) { if (other == com.orbekk.example.Example.Empty.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } 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()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } } } } // @@protoc_insertion_point(builder_scope:com.orbekk.example.Empty) } static { defaultInstance = new Empty(true); com.orbekk.example.Example.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.example.Empty) } public static final class FortuneReply extends com.google.protobuf.GeneratedMessage { // Use FortuneReply.newBuilder() to construct. private FortuneReply() { initFields(); } private FortuneReply(boolean noInit) {} private static final FortuneReply defaultInstance; public static FortuneReply getDefaultInstance() { return defaultInstance; } public FortuneReply getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.orbekk.example.Example.internal_static_com_orbekk_example_FortuneReply_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.orbekk.example.Example.internal_static_com_orbekk_example_FortuneReply_fieldAccessorTable; } // required string fortune = 1; public static final int FORTUNE_FIELD_NUMBER = 1; private boolean hasFortune; private java.lang.String fortune_ = ""; public boolean hasFortune() { return hasFortune; } public java.lang.String getFortune() { return fortune_; } private void initFields() { } public final boolean isInitialized() { if (!hasFortune) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasFortune()) { output.writeString(1, getFortune()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasFortune()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getFortune()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static com.orbekk.example.Example.FortuneReply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.example.Example.FortuneReply 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.example.Example.FortuneReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.orbekk.example.Example.FortuneReply parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.orbekk.example.Example.FortuneReply parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.example.Example.FortuneReply parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.orbekk.example.Example.FortuneReply 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.example.Example.FortuneReply 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.example.Example.FortuneReply parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.orbekk.example.Example.FortuneReply 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.example.Example.FortuneReply prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder { private com.orbekk.example.Example.FortuneReply result; // Construct using com.orbekk.example.Example.FortuneReply.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new com.orbekk.example.Example.FortuneReply(); return builder; } protected com.orbekk.example.Example.FortuneReply internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new com.orbekk.example.Example.FortuneReply(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.orbekk.example.Example.FortuneReply.getDescriptor(); } public com.orbekk.example.Example.FortuneReply getDefaultInstanceForType() { return com.orbekk.example.Example.FortuneReply.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public com.orbekk.example.Example.FortuneReply build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private com.orbekk.example.Example.FortuneReply buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public com.orbekk.example.Example.FortuneReply buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } com.orbekk.example.Example.FortuneReply returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.orbekk.example.Example.FortuneReply) { return mergeFrom((com.orbekk.example.Example.FortuneReply)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.orbekk.example.Example.FortuneReply other) { if (other == com.orbekk.example.Example.FortuneReply.getDefaultInstance()) return this; if (other.hasFortune()) { setFortune(other.getFortune()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } 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()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 10: { setFortune(input.readString()); break; } } } } // required string fortune = 1; public boolean hasFortune() { return result.hasFortune(); } public java.lang.String getFortune() { return result.getFortune(); } public Builder setFortune(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasFortune = true; result.fortune_ = value; return this; } public Builder clearFortune() { result.hasFortune = false; result.fortune_ = getDefaultInstance().getFortune(); return this; } // @@protoc_insertion_point(builder_scope:com.orbekk.example.FortuneReply) } static { defaultInstance = new FortuneReply(true); com.orbekk.example.Example.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.orbekk.example.FortuneReply) } public static abstract class FortuneService implements com.google.protobuf.Service { protected FortuneService() {} public interface Interface { public abstract void getFortune( com.google.protobuf.RpcController controller, com.orbekk.example.Example.Empty request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new FortuneService() { @Override public void getFortune( com.google.protobuf.RpcController controller, com.orbekk.example.Example.Empty request, com.google.protobuf.RpcCallback done) { impl.getFortune(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.getFortune(controller, (com.orbekk.example.Example.Empty)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.example.Example.Empty.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.example.Example.FortuneReply.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void getFortune( com.google.protobuf.RpcController controller, com.orbekk.example.Example.Empty request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return com.orbekk.example.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.getFortune(controller, (com.orbekk.example.Example.Empty)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.example.Example.Empty.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.example.Example.FortuneReply.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.example.Example.FortuneService 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 getFortune( com.google.protobuf.RpcController controller, com.orbekk.example.Example.Empty request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.example.Example.FortuneReply.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, com.orbekk.example.Example.FortuneReply.class, com.orbekk.example.Example.FortuneReply.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public com.orbekk.example.Example.FortuneReply getFortune( com.google.protobuf.RpcController controller, com.orbekk.example.Example.Empty 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.example.Example.FortuneReply getFortune( com.google.protobuf.RpcController controller, com.orbekk.example.Example.Empty request) throws com.google.protobuf.ServiceException { return (com.orbekk.example.Example.FortuneReply) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, com.orbekk.example.Example.FortuneReply.getDefaultInstance()); } } } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_example_Empty_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_example_Empty_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_orbekk_example_FortuneReply_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_orbekk_example_FortuneReply_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.src/main/java/com/orbekk/example/examp" + "le.proto\022\022com.orbekk.example\"\007\n\005Empty\"\037\n" + "\014FortuneReply\022\017\n\007fortune\030\001 \002(\t2[\n\016Fortun" + "eService\022I\n\nGetFortune\022\031.com.orbekk.exam" + "ple.Empty\032 .com.orbekk.example.FortuneRe" + "plyB\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_example_Empty_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_orbekk_example_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_example_Empty_descriptor, new java.lang.String[] { }, com.orbekk.example.Example.Empty.class, com.orbekk.example.Example.Empty.Builder.class); internal_static_com_orbekk_example_FortuneReply_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_orbekk_example_FortuneReply_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_orbekk_example_FortuneReply_descriptor, new java.lang.String[] { "Fortune", }, com.orbekk.example.Example.FortuneReply.class, com.orbekk.example.Example.FortuneReply.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } public static void internalForceInit() {} // @@protoc_insertion_point(outer_class_scope) }