diff --git a/akka-multi-node-testkit/src/main/java/akka/remote/testconductor/TestConductorProtocol.java b/akka-multi-node-testkit/src/main/java/akka/remote/testconductor/TestConductorProtocol.java index 978e4c9fa4..66ad015941 100644 --- a/akka-multi-node-testkit/src/main/java/akka/remote/testconductor/TestConductorProtocol.java +++ b/akka-multi-node-testkit/src/main/java/akka/remote/testconductor/TestConductorProtocol.java @@ -8,22 +8,49 @@ public final class TestConductorProtocol { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } + /** + * Protobuf enum {@code BarrierOp} + */ public enum BarrierOp implements com.google.protobuf.ProtocolMessageEnum { + /** + * Enter = 1; + */ Enter(0, 1), + /** + * Fail = 2; + */ Fail(1, 2), + /** + * Succeeded = 3; + */ Succeeded(2, 3), + /** + * Failed = 4; + */ Failed(3, 4), ; - + + /** + * Enter = 1; + */ public static final int Enter_VALUE = 1; + /** + * Fail = 2; + */ public static final int Fail_VALUE = 2; + /** + * Succeeded = 3; + */ public static final int Succeeded_VALUE = 3; + /** + * Failed = 4; + */ public static final int Failed_VALUE = 4; - - + + public final int getNumber() { return value; } - + public static BarrierOp valueOf(int value) { switch (value) { case 1: return Enter; @@ -33,7 +60,7 @@ public final class TestConductorProtocol { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -45,7 +72,7 @@ public final class TestConductorProtocol { return BarrierOp.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -58,11 +85,9 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.getDescriptor().getEnumTypes().get(0); } - - private static final BarrierOp[] VALUES = { - Enter, Fail, Succeeded, Failed, - }; - + + private static final BarrierOp[] VALUES = values(); + public static BarrierOp valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -71,36 +96,69 @@ public final class TestConductorProtocol { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private BarrierOp(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:BarrierOp) } - + + /** + * Protobuf enum {@code FailType} + */ public enum FailType implements com.google.protobuf.ProtocolMessageEnum { + /** + * Throttle = 1; + */ Throttle(0, 1), + /** + * Disconnect = 2; + */ Disconnect(1, 2), + /** + * Abort = 3; + */ Abort(2, 3), + /** + * Exit = 4; + */ Exit(3, 4), + /** + * Shutdown = 5; + */ Shutdown(4, 5), ; - + + /** + * Throttle = 1; + */ public static final int Throttle_VALUE = 1; + /** + * Disconnect = 2; + */ public static final int Disconnect_VALUE = 2; + /** + * Abort = 3; + */ public static final int Abort_VALUE = 3; + /** + * Exit = 4; + */ public static final int Exit_VALUE = 4; + /** + * Shutdown = 5; + */ public static final int Shutdown_VALUE = 5; - - + + public final int getNumber() { return value; } - + public static FailType valueOf(int value) { switch (value) { case 1: return Throttle; @@ -111,7 +169,7 @@ public final class TestConductorProtocol { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -123,7 +181,7 @@ public final class TestConductorProtocol { return FailType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -136,11 +194,9 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.getDescriptor().getEnumTypes().get(1); } - - private static final FailType[] VALUES = { - Throttle, Disconnect, Abort, Exit, Shutdown, - }; - + + private static final FailType[] VALUES = values(); + public static FailType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -149,32 +205,53 @@ public final class TestConductorProtocol { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private FailType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:FailType) } - + + /** + * Protobuf enum {@code Direction} + */ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + /** + * Send = 1; + */ Send(0, 1), + /** + * Receive = 2; + */ Receive(1, 2), + /** + * Both = 3; + */ Both(2, 3), ; - + + /** + * Send = 1; + */ public static final int Send_VALUE = 1; + /** + * Receive = 2; + */ public static final int Receive_VALUE = 2; + /** + * Both = 3; + */ public static final int Both_VALUE = 3; - - + + public final int getNumber() { return value; } - + public static Direction valueOf(int value) { switch (value) { case 1: return Send; @@ -183,7 +260,7 @@ public final class TestConductorProtocol { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -195,7 +272,7 @@ public final class TestConductorProtocol { return Direction.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -208,11 +285,9 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.getDescriptor().getEnumTypes().get(2); } - - private static final Direction[] VALUES = { - Send, Receive, Both, - }; - + + private static final Direction[] VALUES = values(); + public static Direction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -221,158 +296,371 @@ public final class TestConductorProtocol { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private Direction(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:Direction) } - + public interface WrapperOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional .Hello hello = 1; + /** + * optional .Hello hello = 1; + */ boolean hasHello(); + /** + * optional .Hello hello = 1; + */ akka.remote.testconductor.TestConductorProtocol.Hello getHello(); + /** + * optional .Hello hello = 1; + */ akka.remote.testconductor.TestConductorProtocol.HelloOrBuilder getHelloOrBuilder(); - + // optional .EnterBarrier barrier = 2; + /** + * optional .EnterBarrier barrier = 2; + */ boolean hasBarrier(); + /** + * optional .EnterBarrier barrier = 2; + */ akka.remote.testconductor.TestConductorProtocol.EnterBarrier getBarrier(); + /** + * optional .EnterBarrier barrier = 2; + */ akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder getBarrierOrBuilder(); - + // optional .InjectFailure failure = 3; + /** + * optional .InjectFailure failure = 3; + */ boolean hasFailure(); + /** + * optional .InjectFailure failure = 3; + */ akka.remote.testconductor.TestConductorProtocol.InjectFailure getFailure(); + /** + * optional .InjectFailure failure = 3; + */ akka.remote.testconductor.TestConductorProtocol.InjectFailureOrBuilder getFailureOrBuilder(); - + // optional string done = 4; + /** + * optional string done = 4; + */ boolean hasDone(); - String getDone(); - + /** + * optional string done = 4; + */ + java.lang.String getDone(); + /** + * optional string done = 4; + */ + com.google.protobuf.ByteString + getDoneBytes(); + // optional .AddressRequest addr = 5; + /** + * optional .AddressRequest addr = 5; + */ boolean hasAddr(); + /** + * optional .AddressRequest addr = 5; + */ akka.remote.testconductor.TestConductorProtocol.AddressRequest getAddr(); + /** + * optional .AddressRequest addr = 5; + */ akka.remote.testconductor.TestConductorProtocol.AddressRequestOrBuilder getAddrOrBuilder(); } + /** + * Protobuf type {@code Wrapper} + */ public static final class Wrapper extends com.google.protobuf.GeneratedMessage implements WrapperOrBuilder { // Use Wrapper.newBuilder() to construct. - private Wrapper(Builder builder) { + private Wrapper(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Wrapper(boolean noInit) {} - + private Wrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final Wrapper defaultInstance; public static Wrapper getDefaultInstance() { return defaultInstance; } - + public Wrapper getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Wrapper( + 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 10: { + akka.remote.testconductor.TestConductorProtocol.Hello.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = hello_.toBuilder(); + } + hello_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.Hello.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hello_); + hello_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = barrier_.toBuilder(); + } + barrier_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.EnterBarrier.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(barrier_); + barrier_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = failure_.toBuilder(); + } + failure_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.InjectFailure.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(failure_); + failure_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + bitField0_ |= 0x00000008; + done_ = input.readBytes(); + break; + } + case 42: { + akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = addr_.toBuilder(); + } + addr_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.AddressRequest.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addr_); + addr_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.Wrapper.class, akka.remote.testconductor.TestConductorProtocol.Wrapper.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Wrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Wrapper(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // optional .Hello hello = 1; public static final int HELLO_FIELD_NUMBER = 1; private akka.remote.testconductor.TestConductorProtocol.Hello hello_; + /** + * optional .Hello hello = 1; + */ public boolean hasHello() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional .Hello hello = 1; + */ public akka.remote.testconductor.TestConductorProtocol.Hello getHello() { return hello_; } + /** + * optional .Hello hello = 1; + */ public akka.remote.testconductor.TestConductorProtocol.HelloOrBuilder getHelloOrBuilder() { return hello_; } - + // optional .EnterBarrier barrier = 2; public static final int BARRIER_FIELD_NUMBER = 2; private akka.remote.testconductor.TestConductorProtocol.EnterBarrier barrier_; + /** + * optional .EnterBarrier barrier = 2; + */ public boolean hasBarrier() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .EnterBarrier barrier = 2; + */ public akka.remote.testconductor.TestConductorProtocol.EnterBarrier getBarrier() { return barrier_; } + /** + * optional .EnterBarrier barrier = 2; + */ public akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder getBarrierOrBuilder() { return barrier_; } - + // optional .InjectFailure failure = 3; public static final int FAILURE_FIELD_NUMBER = 3; private akka.remote.testconductor.TestConductorProtocol.InjectFailure failure_; + /** + * optional .InjectFailure failure = 3; + */ public boolean hasFailure() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional .InjectFailure failure = 3; + */ public akka.remote.testconductor.TestConductorProtocol.InjectFailure getFailure() { return failure_; } + /** + * optional .InjectFailure failure = 3; + */ public akka.remote.testconductor.TestConductorProtocol.InjectFailureOrBuilder getFailureOrBuilder() { return failure_; } - + // optional string done = 4; public static final int DONE_FIELD_NUMBER = 4; private java.lang.Object done_; + /** + * optional string done = 4; + */ public boolean hasDone() { return ((bitField0_ & 0x00000008) == 0x00000008); } - public String getDone() { + /** + * optional string done = 4; + */ + public java.lang.String getDone() { java.lang.Object ref = done_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { done_ = s; } return s; } } - private com.google.protobuf.ByteString getDoneBytes() { + /** + * optional string done = 4; + */ + public com.google.protobuf.ByteString + getDoneBytes() { java.lang.Object ref = done_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); done_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional .AddressRequest addr = 5; public static final int ADDR_FIELD_NUMBER = 5; private akka.remote.testconductor.TestConductorProtocol.AddressRequest addr_; + /** + * optional .AddressRequest addr = 5; + */ public boolean hasAddr() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional .AddressRequest addr = 5; + */ public akka.remote.testconductor.TestConductorProtocol.AddressRequest getAddr() { return addr_; } + /** + * optional .AddressRequest addr = 5; + */ public akka.remote.testconductor.TestConductorProtocol.AddressRequestOrBuilder getAddrOrBuilder() { return addr_; } - + private void initFields() { hello_ = akka.remote.testconductor.TestConductorProtocol.Hello.getDefaultInstance(); barrier_ = akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance(); @@ -384,7 +672,7 @@ public final class TestConductorProtocol { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (hasHello()) { if (!getHello().isInitialized()) { memoizedIsInitialized = 0; @@ -412,7 +700,7 @@ public final class TestConductorProtocol { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -433,12 +721,12 @@ public final class TestConductorProtocol { } 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 @@ -464,94 +752,83 @@ public final class TestConductorProtocol { 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 akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.Wrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.testconductor.TestConductorProtocol.Wrapper 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 Wrapper} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.testconductor.TestConductorProtocol.WrapperOrBuilder { @@ -559,18 +836,21 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.Wrapper.class, akka.remote.testconductor.TestConductorProtocol.Wrapper.Builder.class); } - + // Construct using akka.remote.testconductor.TestConductorProtocol.Wrapper.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -585,7 +865,7 @@ public final class TestConductorProtocol { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (helloBuilder_ == null) { @@ -616,20 +896,20 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000010); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.testconductor.TestConductorProtocol.Wrapper.getDescriptor(); + return akka.remote.testconductor.TestConductorProtocol.internal_static_Wrapper_descriptor; } - + public akka.remote.testconductor.TestConductorProtocol.Wrapper getDefaultInstanceForType() { return akka.remote.testconductor.TestConductorProtocol.Wrapper.getDefaultInstance(); } - + public akka.remote.testconductor.TestConductorProtocol.Wrapper build() { akka.remote.testconductor.TestConductorProtocol.Wrapper result = buildPartial(); if (!result.isInitialized()) { @@ -637,17 +917,7 @@ public final class TestConductorProtocol { } return result; } - - private akka.remote.testconductor.TestConductorProtocol.Wrapper buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.testconductor.TestConductorProtocol.Wrapper result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.testconductor.TestConductorProtocol.Wrapper buildPartial() { akka.remote.testconductor.TestConductorProtocol.Wrapper result = new akka.remote.testconductor.TestConductorProtocol.Wrapper(this); int from_bitField0_ = bitField0_; @@ -692,7 +962,7 @@ public final class TestConductorProtocol { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.testconductor.TestConductorProtocol.Wrapper) { return mergeFrom((akka.remote.testconductor.TestConductorProtocol.Wrapper)other); @@ -701,7 +971,7 @@ public final class TestConductorProtocol { return this; } } - + public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.Wrapper other) { if (other == akka.remote.testconductor.TestConductorProtocol.Wrapper.getDefaultInstance()) return this; if (other.hasHello()) { @@ -714,7 +984,9 @@ public final class TestConductorProtocol { mergeFailure(other.getFailure()); } if (other.hasDone()) { - setDone(other.getDone()); + bitField0_ |= 0x00000008; + done_ = other.done_; + onChanged(); } if (other.hasAddr()) { mergeAddr(other.getAddr()); @@ -722,7 +994,7 @@ public final class TestConductorProtocol { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (hasHello()) { if (!getHello().isInitialized()) { @@ -750,84 +1022,39 @@ public final class TestConductorProtocol { } 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: { - akka.remote.testconductor.TestConductorProtocol.Hello.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.Hello.newBuilder(); - if (hasHello()) { - subBuilder.mergeFrom(getHello()); - } - input.readMessage(subBuilder, extensionRegistry); - setHello(subBuilder.buildPartial()); - break; - } - case 18: { - akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.EnterBarrier.newBuilder(); - if (hasBarrier()) { - subBuilder.mergeFrom(getBarrier()); - } - input.readMessage(subBuilder, extensionRegistry); - setBarrier(subBuilder.buildPartial()); - break; - } - case 26: { - akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.InjectFailure.newBuilder(); - if (hasFailure()) { - subBuilder.mergeFrom(getFailure()); - } - input.readMessage(subBuilder, extensionRegistry); - setFailure(subBuilder.buildPartial()); - break; - } - case 34: { - bitField0_ |= 0x00000008; - done_ = input.readBytes(); - break; - } - case 42: { - akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.AddressRequest.newBuilder(); - if (hasAddr()) { - subBuilder.mergeFrom(getAddr()); - } - input.readMessage(subBuilder, extensionRegistry); - setAddr(subBuilder.buildPartial()); - break; - } + akka.remote.testconductor.TestConductorProtocol.Wrapper parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.testconductor.TestConductorProtocol.Wrapper) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // optional .Hello hello = 1; private akka.remote.testconductor.TestConductorProtocol.Hello hello_ = akka.remote.testconductor.TestConductorProtocol.Hello.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Hello, akka.remote.testconductor.TestConductorProtocol.Hello.Builder, akka.remote.testconductor.TestConductorProtocol.HelloOrBuilder> helloBuilder_; + /** + * optional .Hello hello = 1; + */ public boolean hasHello() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional .Hello hello = 1; + */ public akka.remote.testconductor.TestConductorProtocol.Hello getHello() { if (helloBuilder_ == null) { return hello_; @@ -835,6 +1062,9 @@ public final class TestConductorProtocol { return helloBuilder_.getMessage(); } } + /** + * optional .Hello hello = 1; + */ public Builder setHello(akka.remote.testconductor.TestConductorProtocol.Hello value) { if (helloBuilder_ == null) { if (value == null) { @@ -848,6 +1078,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000001; return this; } + /** + * optional .Hello hello = 1; + */ public Builder setHello( akka.remote.testconductor.TestConductorProtocol.Hello.Builder builderForValue) { if (helloBuilder_ == null) { @@ -859,6 +1092,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000001; return this; } + /** + * optional .Hello hello = 1; + */ public Builder mergeHello(akka.remote.testconductor.TestConductorProtocol.Hello value) { if (helloBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -875,6 +1111,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000001; return this; } + /** + * optional .Hello hello = 1; + */ public Builder clearHello() { if (helloBuilder_ == null) { hello_ = akka.remote.testconductor.TestConductorProtocol.Hello.getDefaultInstance(); @@ -885,11 +1124,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * optional .Hello hello = 1; + */ public akka.remote.testconductor.TestConductorProtocol.Hello.Builder getHelloBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHelloFieldBuilder().getBuilder(); } + /** + * optional .Hello hello = 1; + */ public akka.remote.testconductor.TestConductorProtocol.HelloOrBuilder getHelloOrBuilder() { if (helloBuilder_ != null) { return helloBuilder_.getMessageOrBuilder(); @@ -897,6 +1142,9 @@ public final class TestConductorProtocol { return hello_; } } + /** + * optional .Hello hello = 1; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Hello, akka.remote.testconductor.TestConductorProtocol.Hello.Builder, akka.remote.testconductor.TestConductorProtocol.HelloOrBuilder> getHelloFieldBuilder() { @@ -910,14 +1158,20 @@ public final class TestConductorProtocol { } return helloBuilder_; } - + // optional .EnterBarrier barrier = 2; private akka.remote.testconductor.TestConductorProtocol.EnterBarrier barrier_ = akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.EnterBarrier, akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder, akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder> barrierBuilder_; + /** + * optional .EnterBarrier barrier = 2; + */ public boolean hasBarrier() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .EnterBarrier barrier = 2; + */ public akka.remote.testconductor.TestConductorProtocol.EnterBarrier getBarrier() { if (barrierBuilder_ == null) { return barrier_; @@ -925,6 +1179,9 @@ public final class TestConductorProtocol { return barrierBuilder_.getMessage(); } } + /** + * optional .EnterBarrier barrier = 2; + */ public Builder setBarrier(akka.remote.testconductor.TestConductorProtocol.EnterBarrier value) { if (barrierBuilder_ == null) { if (value == null) { @@ -938,6 +1195,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * optional .EnterBarrier barrier = 2; + */ public Builder setBarrier( akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder builderForValue) { if (barrierBuilder_ == null) { @@ -949,6 +1209,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * optional .EnterBarrier barrier = 2; + */ public Builder mergeBarrier(akka.remote.testconductor.TestConductorProtocol.EnterBarrier value) { if (barrierBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -965,6 +1228,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * optional .EnterBarrier barrier = 2; + */ public Builder clearBarrier() { if (barrierBuilder_ == null) { barrier_ = akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance(); @@ -975,11 +1241,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * optional .EnterBarrier barrier = 2; + */ public akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder getBarrierBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBarrierFieldBuilder().getBuilder(); } + /** + * optional .EnterBarrier barrier = 2; + */ public akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder getBarrierOrBuilder() { if (barrierBuilder_ != null) { return barrierBuilder_.getMessageOrBuilder(); @@ -987,6 +1259,9 @@ public final class TestConductorProtocol { return barrier_; } } + /** + * optional .EnterBarrier barrier = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.EnterBarrier, akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder, akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder> getBarrierFieldBuilder() { @@ -1000,14 +1275,20 @@ public final class TestConductorProtocol { } return barrierBuilder_; } - + // optional .InjectFailure failure = 3; private akka.remote.testconductor.TestConductorProtocol.InjectFailure failure_ = akka.remote.testconductor.TestConductorProtocol.InjectFailure.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.InjectFailure, akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder, akka.remote.testconductor.TestConductorProtocol.InjectFailureOrBuilder> failureBuilder_; + /** + * optional .InjectFailure failure = 3; + */ public boolean hasFailure() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional .InjectFailure failure = 3; + */ public akka.remote.testconductor.TestConductorProtocol.InjectFailure getFailure() { if (failureBuilder_ == null) { return failure_; @@ -1015,6 +1296,9 @@ public final class TestConductorProtocol { return failureBuilder_.getMessage(); } } + /** + * optional .InjectFailure failure = 3; + */ public Builder setFailure(akka.remote.testconductor.TestConductorProtocol.InjectFailure value) { if (failureBuilder_ == null) { if (value == null) { @@ -1028,6 +1312,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000004; return this; } + /** + * optional .InjectFailure failure = 3; + */ public Builder setFailure( akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder builderForValue) { if (failureBuilder_ == null) { @@ -1039,6 +1326,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000004; return this; } + /** + * optional .InjectFailure failure = 3; + */ public Builder mergeFailure(akka.remote.testconductor.TestConductorProtocol.InjectFailure value) { if (failureBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && @@ -1055,6 +1345,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000004; return this; } + /** + * optional .InjectFailure failure = 3; + */ public Builder clearFailure() { if (failureBuilder_ == null) { failure_ = akka.remote.testconductor.TestConductorProtocol.InjectFailure.getDefaultInstance(); @@ -1065,11 +1358,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000004); return this; } + /** + * optional .InjectFailure failure = 3; + */ public akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder getFailureBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFailureFieldBuilder().getBuilder(); } + /** + * optional .InjectFailure failure = 3; + */ public akka.remote.testconductor.TestConductorProtocol.InjectFailureOrBuilder getFailureOrBuilder() { if (failureBuilder_ != null) { return failureBuilder_.getMessageOrBuilder(); @@ -1077,6 +1376,9 @@ public final class TestConductorProtocol { return failure_; } } + /** + * optional .InjectFailure failure = 3; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.InjectFailure, akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder, akka.remote.testconductor.TestConductorProtocol.InjectFailureOrBuilder> getFailureFieldBuilder() { @@ -1090,23 +1392,50 @@ public final class TestConductorProtocol { } return failureBuilder_; } - + // optional string done = 4; private java.lang.Object done_ = ""; + /** + * optional string done = 4; + */ public boolean hasDone() { return ((bitField0_ & 0x00000008) == 0x00000008); } - public String getDone() { + /** + * optional string done = 4; + */ + public java.lang.String getDone() { java.lang.Object ref = done_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); done_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setDone(String value) { + /** + * optional string done = 4; + */ + public com.google.protobuf.ByteString + getDoneBytes() { + java.lang.Object ref = done_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + done_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string done = 4; + */ + public Builder setDone( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1115,25 +1444,42 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * optional string done = 4; + */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000008); done_ = getDefaultInstance().getDone(); onChanged(); return this; } - void setDone(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; + /** + * optional string done = 4; + */ + public Builder setDoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; done_ = value; onChanged(); + return this; } - + // optional .AddressRequest addr = 5; private akka.remote.testconductor.TestConductorProtocol.AddressRequest addr_ = akka.remote.testconductor.TestConductorProtocol.AddressRequest.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.AddressRequest, akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder, akka.remote.testconductor.TestConductorProtocol.AddressRequestOrBuilder> addrBuilder_; + /** + * optional .AddressRequest addr = 5; + */ public boolean hasAddr() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional .AddressRequest addr = 5; + */ public akka.remote.testconductor.TestConductorProtocol.AddressRequest getAddr() { if (addrBuilder_ == null) { return addr_; @@ -1141,6 +1487,9 @@ public final class TestConductorProtocol { return addrBuilder_.getMessage(); } } + /** + * optional .AddressRequest addr = 5; + */ public Builder setAddr(akka.remote.testconductor.TestConductorProtocol.AddressRequest value) { if (addrBuilder_ == null) { if (value == null) { @@ -1154,6 +1503,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000010; return this; } + /** + * optional .AddressRequest addr = 5; + */ public Builder setAddr( akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder builderForValue) { if (addrBuilder_ == null) { @@ -1165,6 +1517,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000010; return this; } + /** + * optional .AddressRequest addr = 5; + */ public Builder mergeAddr(akka.remote.testconductor.TestConductorProtocol.AddressRequest value) { if (addrBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && @@ -1181,6 +1536,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000010; return this; } + /** + * optional .AddressRequest addr = 5; + */ public Builder clearAddr() { if (addrBuilder_ == null) { addr_ = akka.remote.testconductor.TestConductorProtocol.AddressRequest.getDefaultInstance(); @@ -1191,11 +1549,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000010); return this; } + /** + * optional .AddressRequest addr = 5; + */ public akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder getAddrBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAddrFieldBuilder().getBuilder(); } + /** + * optional .AddressRequest addr = 5; + */ public akka.remote.testconductor.TestConductorProtocol.AddressRequestOrBuilder getAddrOrBuilder() { if (addrBuilder_ != null) { return addrBuilder_.getMessageOrBuilder(); @@ -1203,6 +1567,9 @@ public final class TestConductorProtocol { return addr_; } } + /** + * optional .AddressRequest addr = 5; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.AddressRequest, akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder, akka.remote.testconductor.TestConductorProtocol.AddressRequestOrBuilder> getAddrFieldBuilder() { @@ -1216,104 +1583,224 @@ public final class TestConductorProtocol { } return addrBuilder_; } - + // @@protoc_insertion_point(builder_scope:Wrapper) } - + static { defaultInstance = new Wrapper(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Wrapper) } - + public interface HelloOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; + /** + * required string name = 1; + */ boolean hasName(); - String getName(); - + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + // required .Address address = 2; + /** + * required .Address address = 2; + */ boolean hasAddress(); + /** + * required .Address address = 2; + */ akka.remote.testconductor.TestConductorProtocol.Address getAddress(); + /** + * required .Address address = 2; + */ akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddressOrBuilder(); } + /** + * Protobuf type {@code Hello} + */ public static final class Hello extends com.google.protobuf.GeneratedMessage implements HelloOrBuilder { // Use Hello.newBuilder() to construct. - private Hello(Builder builder) { + private Hello(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Hello(boolean noInit) {} - + private Hello(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final Hello defaultInstance; public static Hello getDefaultInstance() { return defaultInstance; } - + public Hello getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Hello( + 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 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + akka.remote.testconductor.TestConductorProtocol.Address.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = address_.toBuilder(); + } + address_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.Address.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.Hello.class, akka.remote.testconductor.TestConductorProtocol.Hello.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Hello parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Hello(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { name_ = s; } return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required .Address address = 2; public static final int ADDRESS_FIELD_NUMBER = 2; private akka.remote.testconductor.TestConductorProtocol.Address address_; + /** + * required .Address address = 2; + */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .Address address = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Address getAddress() { return address_; } + /** + * required .Address address = 2; + */ public akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddressOrBuilder() { return address_; } - + private void initFields() { name_ = ""; address_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); @@ -1322,7 +1809,7 @@ public final class TestConductorProtocol { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -1338,7 +1825,7 @@ public final class TestConductorProtocol { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -1350,12 +1837,12 @@ public final class TestConductorProtocol { } 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 @@ -1369,94 +1856,83 @@ public final class TestConductorProtocol { 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 akka.remote.testconductor.TestConductorProtocol.Hello parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.Hello 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.Hello parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.testconductor.TestConductorProtocol.Hello 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 Hello} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.testconductor.TestConductorProtocol.HelloOrBuilder { @@ -1464,18 +1940,21 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.Hello.class, akka.remote.testconductor.TestConductorProtocol.Hello.Builder.class); } - + // Construct using akka.remote.testconductor.TestConductorProtocol.Hello.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1487,7 +1966,7 @@ public final class TestConductorProtocol { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -1500,20 +1979,20 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.testconductor.TestConductorProtocol.Hello.getDescriptor(); + return akka.remote.testconductor.TestConductorProtocol.internal_static_Hello_descriptor; } - + public akka.remote.testconductor.TestConductorProtocol.Hello getDefaultInstanceForType() { return akka.remote.testconductor.TestConductorProtocol.Hello.getDefaultInstance(); } - + public akka.remote.testconductor.TestConductorProtocol.Hello build() { akka.remote.testconductor.TestConductorProtocol.Hello result = buildPartial(); if (!result.isInitialized()) { @@ -1521,17 +2000,7 @@ public final class TestConductorProtocol { } return result; } - - private akka.remote.testconductor.TestConductorProtocol.Hello buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.testconductor.TestConductorProtocol.Hello result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.testconductor.TestConductorProtocol.Hello buildPartial() { akka.remote.testconductor.TestConductorProtocol.Hello result = new akka.remote.testconductor.TestConductorProtocol.Hello(this); int from_bitField0_ = bitField0_; @@ -1552,7 +2021,7 @@ public final class TestConductorProtocol { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.testconductor.TestConductorProtocol.Hello) { return mergeFrom((akka.remote.testconductor.TestConductorProtocol.Hello)other); @@ -1561,11 +2030,13 @@ public final class TestConductorProtocol { return this; } } - + public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.Hello other) { if (other == akka.remote.testconductor.TestConductorProtocol.Hello.getDefaultInstance()) return this; if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } if (other.hasAddress()) { mergeAddress(other.getAddress()); @@ -1573,7 +2044,7 @@ public final class TestConductorProtocol { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -1589,66 +2060,69 @@ public final class TestConductorProtocol { } 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; - name_ = input.readBytes(); - break; - } - case 18: { - akka.remote.testconductor.TestConductorProtocol.Address.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.Address.newBuilder(); - if (hasAddress()) { - subBuilder.mergeFrom(getAddress()); - } - input.readMessage(subBuilder, extensionRegistry); - setAddress(subBuilder.buildPartial()); - break; - } + akka.remote.testconductor.TestConductorProtocol.Hello parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.testconductor.TestConductorProtocol.Hello) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setName(String value) { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1657,25 +2131,42 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // required .Address address = 2; private akka.remote.testconductor.TestConductorProtocol.Address address_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Address, akka.remote.testconductor.TestConductorProtocol.Address.Builder, akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder> addressBuilder_; + /** + * required .Address address = 2; + */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .Address address = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Address getAddress() { if (addressBuilder_ == null) { return address_; @@ -1683,6 +2174,9 @@ public final class TestConductorProtocol { return addressBuilder_.getMessage(); } } + /** + * required .Address address = 2; + */ public Builder setAddress(akka.remote.testconductor.TestConductorProtocol.Address value) { if (addressBuilder_ == null) { if (value == null) { @@ -1696,6 +2190,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * required .Address address = 2; + */ public Builder setAddress( akka.remote.testconductor.TestConductorProtocol.Address.Builder builderForValue) { if (addressBuilder_ == null) { @@ -1707,6 +2204,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * required .Address address = 2; + */ public Builder mergeAddress(akka.remote.testconductor.TestConductorProtocol.Address value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -1723,6 +2223,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * required .Address address = 2; + */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); @@ -1733,11 +2236,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * required .Address address = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Address.Builder getAddressBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAddressFieldBuilder().getBuilder(); } + /** + * required .Address address = 2; + */ public akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); @@ -1745,6 +2254,9 @@ public final class TestConductorProtocol { return address_; } } + /** + * required .Address address = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Address, akka.remote.testconductor.TestConductorProtocol.Address.Builder, akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder> getAddressFieldBuilder() { @@ -1758,410 +2270,104 @@ public final class TestConductorProtocol { } return addressBuilder_; } - + // @@protoc_insertion_point(builder_scope:Hello) } - + static { defaultInstance = new Hello(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Hello) } - + public interface EnterBarrierOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; + /** + * required string name = 1; + */ boolean hasName(); - String getName(); - + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + // required .BarrierOp op = 2; + /** + * required .BarrierOp op = 2; + */ boolean hasOp(); + /** + * required .BarrierOp op = 2; + */ akka.remote.testconductor.TestConductorProtocol.BarrierOp getOp(); - + // optional int64 timeout = 3; + /** + * optional int64 timeout = 3; + */ boolean hasTimeout(); + /** + * optional int64 timeout = 3; + */ long getTimeout(); } + /** + * Protobuf type {@code EnterBarrier} + */ public static final class EnterBarrier extends com.google.protobuf.GeneratedMessage implements EnterBarrierOrBuilder { // Use EnterBarrier.newBuilder() to construct. - private EnterBarrier(Builder builder) { + private EnterBarrier(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private EnterBarrier(boolean noInit) {} - + private EnterBarrier(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final EnterBarrier defaultInstance; public static EnterBarrier getDefaultInstance() { return defaultInstance; } - + public EnterBarrier getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_fieldAccessorTable; - } - - private int bitField0_; - // required string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - java.lang.Object ref = name_; - 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)) { - name_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required .BarrierOp op = 2; - public static final int OP_FIELD_NUMBER = 2; - private akka.remote.testconductor.TestConductorProtocol.BarrierOp op_; - public boolean hasOp() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public akka.remote.testconductor.TestConductorProtocol.BarrierOp getOp() { - return op_; - } - - // optional int64 timeout = 3; - public static final int TIMEOUT_FIELD_NUMBER = 3; - private long timeout_; - public boolean hasTimeout() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public long getTimeout() { - return timeout_; - } - - private void initFields() { - name_ = ""; - op_ = akka.remote.testconductor.TestConductorProtocol.BarrierOp.Enter; - timeout_ = 0L; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasOp()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, op_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, timeout_); - } - 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, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, op_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timeout_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; + + private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier 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 akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( + private EnterBarrier( 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(akka.remote.testconductor.TestConductorProtocol.EnterBarrier 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 akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_fieldAccessorTable; - } - - // Construct using akka.remote.testconductor.TestConductorProtocol.EnterBarrier.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - op_ = akka.remote.testconductor.TestConductorProtocol.BarrierOp.Enter; - bitField0_ = (bitField0_ & ~0x00000002); - timeout_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDescriptor(); - } - - public akka.remote.testconductor.TestConductorProtocol.EnterBarrier getDefaultInstanceForType() { - return akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance(); - } - - public akka.remote.testconductor.TestConductorProtocol.EnterBarrier build() { - akka.remote.testconductor.TestConductorProtocol.EnterBarrier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private akka.remote.testconductor.TestConductorProtocol.EnterBarrier buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.testconductor.TestConductorProtocol.EnterBarrier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public akka.remote.testconductor.TestConductorProtocol.EnterBarrier buildPartial() { - akka.remote.testconductor.TestConductorProtocol.EnterBarrier result = new akka.remote.testconductor.TestConductorProtocol.EnterBarrier(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.op_ = op_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.timeout_ = timeout_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof akka.remote.testconductor.TestConductorProtocol.EnterBarrier) { - return mergeFrom((akka.remote.testconductor.TestConductorProtocol.EnterBarrier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.EnterBarrier other) { - if (other == akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance()) return this; - if (other.hasName()) { - setName(other.getName()); - } - if (other.hasOp()) { - setOp(other.getOp()); - } - if (other.hasTimeout()) { - setTimeout(other.getTimeout()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasName()) { - - return false; - } - if (!hasOp()) { - - return false; - } - 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) { + 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: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; + break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; } break; } @@ -2188,26 +2394,441 @@ public final class TestConductorProtocol { } } } + } 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.EnterBarrier.class, akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public EnterBarrier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnterBarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * required string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required .BarrierOp op = 2; + public static final int OP_FIELD_NUMBER = 2; + private akka.remote.testconductor.TestConductorProtocol.BarrierOp op_; + /** + * required .BarrierOp op = 2; + */ + public boolean hasOp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required .BarrierOp op = 2; + */ + public akka.remote.testconductor.TestConductorProtocol.BarrierOp getOp() { + return op_; + } + + // optional int64 timeout = 3; + public static final int TIMEOUT_FIELD_NUMBER = 3; + private long timeout_; + /** + * optional int64 timeout = 3; + */ + public boolean hasTimeout() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int64 timeout = 3; + */ + public long getTimeout() { + return timeout_; + } + + private void initFields() { + name_ = ""; + op_ = akka.remote.testconductor.TestConductorProtocol.BarrierOp.Enter; + timeout_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOp()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, op_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt64(3, timeout_); + } + 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, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, op_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, timeout_); + } + 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 akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.testconductor.TestConductorProtocol.EnterBarrier 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(akka.remote.testconductor.TestConductorProtocol.EnterBarrier 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 EnterBarrier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements akka.remote.testconductor.TestConductorProtocol.EnterBarrierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.EnterBarrier.class, akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder.class); + } + + // Construct using akka.remote.testconductor.TestConductorProtocol.EnterBarrier.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(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + op_ = akka.remote.testconductor.TestConductorProtocol.BarrierOp.Enter; + bitField0_ = (bitField0_ & ~0x00000002); + timeout_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_EnterBarrier_descriptor; + } + + public akka.remote.testconductor.TestConductorProtocol.EnterBarrier getDefaultInstanceForType() { + return akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance(); + } + + public akka.remote.testconductor.TestConductorProtocol.EnterBarrier build() { + akka.remote.testconductor.TestConductorProtocol.EnterBarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public akka.remote.testconductor.TestConductorProtocol.EnterBarrier buildPartial() { + akka.remote.testconductor.TestConductorProtocol.EnterBarrier result = new akka.remote.testconductor.TestConductorProtocol.EnterBarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.op_ = op_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.timeout_ = timeout_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof akka.remote.testconductor.TestConductorProtocol.EnterBarrier) { + return mergeFrom((akka.remote.testconductor.TestConductorProtocol.EnterBarrier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.EnterBarrier other) { + if (other == akka.remote.testconductor.TestConductorProtocol.EnterBarrier.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasOp()) { + setOp(other.getOp()); + } + if (other.hasTimeout()) { + setTimeout(other.getTimeout()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasOp()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.remote.testconductor.TestConductorProtocol.EnterBarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.testconductor.TestConductorProtocol.EnterBarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setName(String value) { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -2216,26 +2837,46 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // required .BarrierOp op = 2; private akka.remote.testconductor.TestConductorProtocol.BarrierOp op_ = akka.remote.testconductor.TestConductorProtocol.BarrierOp.Enter; + /** + * required .BarrierOp op = 2; + */ public boolean hasOp() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .BarrierOp op = 2; + */ public akka.remote.testconductor.TestConductorProtocol.BarrierOp getOp() { return op_; } + /** + * required .BarrierOp op = 2; + */ public Builder setOp(akka.remote.testconductor.TestConductorProtocol.BarrierOp value) { if (value == null) { throw new NullPointerException(); @@ -2245,131 +2886,266 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required .BarrierOp op = 2; + */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000002); op_ = akka.remote.testconductor.TestConductorProtocol.BarrierOp.Enter; onChanged(); return this; } - + // optional int64 timeout = 3; private long timeout_ ; + /** + * optional int64 timeout = 3; + */ public boolean hasTimeout() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional int64 timeout = 3; + */ public long getTimeout() { return timeout_; } + /** + * optional int64 timeout = 3; + */ public Builder setTimeout(long value) { bitField0_ |= 0x00000004; timeout_ = value; onChanged(); return this; } + /** + * optional int64 timeout = 3; + */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000004); timeout_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:EnterBarrier) } - + static { defaultInstance = new EnterBarrier(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:EnterBarrier) } - + public interface AddressRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string node = 1; + /** + * required string node = 1; + */ boolean hasNode(); - String getNode(); - + /** + * required string node = 1; + */ + java.lang.String getNode(); + /** + * required string node = 1; + */ + com.google.protobuf.ByteString + getNodeBytes(); + // optional .Address addr = 2; + /** + * optional .Address addr = 2; + */ boolean hasAddr(); + /** + * optional .Address addr = 2; + */ akka.remote.testconductor.TestConductorProtocol.Address getAddr(); + /** + * optional .Address addr = 2; + */ akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddrOrBuilder(); } + /** + * Protobuf type {@code AddressRequest} + */ public static final class AddressRequest extends com.google.protobuf.GeneratedMessage implements AddressRequestOrBuilder { // Use AddressRequest.newBuilder() to construct. - private AddressRequest(Builder builder) { + private AddressRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AddressRequest(boolean noInit) {} - + private AddressRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AddressRequest defaultInstance; public static AddressRequest getDefaultInstance() { return defaultInstance; } - + public AddressRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddressRequest( + 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 10: { + bitField0_ |= 0x00000001; + node_ = input.readBytes(); + break; + } + case 18: { + akka.remote.testconductor.TestConductorProtocol.Address.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = addr_.toBuilder(); + } + addr_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.Address.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addr_); + addr_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.AddressRequest.class, akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AddressRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddressRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required string node = 1; public static final int NODE_FIELD_NUMBER = 1; private java.lang.Object node_; + /** + * required string node = 1; + */ public boolean hasNode() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getNode() { + /** + * required string node = 1; + */ + public java.lang.String getNode() { java.lang.Object ref = node_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { node_ = s; } return s; } } - private com.google.protobuf.ByteString getNodeBytes() { + /** + * required string node = 1; + */ + public com.google.protobuf.ByteString + getNodeBytes() { java.lang.Object ref = node_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); node_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional .Address addr = 2; public static final int ADDR_FIELD_NUMBER = 2; private akka.remote.testconductor.TestConductorProtocol.Address addr_; + /** + * optional .Address addr = 2; + */ public boolean hasAddr() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .Address addr = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Address getAddr() { return addr_; } + /** + * optional .Address addr = 2; + */ public akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddrOrBuilder() { return addr_; } - + private void initFields() { node_ = ""; addr_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); @@ -2378,7 +3154,7 @@ public final class TestConductorProtocol { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasNode()) { memoizedIsInitialized = 0; return false; @@ -2392,7 +3168,7 @@ public final class TestConductorProtocol { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2404,12 +3180,12 @@ public final class TestConductorProtocol { } 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 @@ -2423,94 +3199,83 @@ public final class TestConductorProtocol { 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 akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.AddressRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.testconductor.TestConductorProtocol.AddressRequest 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 AddressRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.testconductor.TestConductorProtocol.AddressRequestOrBuilder { @@ -2518,18 +3283,21 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.AddressRequest.class, akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder.class); } - + // Construct using akka.remote.testconductor.TestConductorProtocol.AddressRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2541,7 +3309,7 @@ public final class TestConductorProtocol { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); node_ = ""; @@ -2554,20 +3322,20 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.testconductor.TestConductorProtocol.AddressRequest.getDescriptor(); + return akka.remote.testconductor.TestConductorProtocol.internal_static_AddressRequest_descriptor; } - + public akka.remote.testconductor.TestConductorProtocol.AddressRequest getDefaultInstanceForType() { return akka.remote.testconductor.TestConductorProtocol.AddressRequest.getDefaultInstance(); } - + public akka.remote.testconductor.TestConductorProtocol.AddressRequest build() { akka.remote.testconductor.TestConductorProtocol.AddressRequest result = buildPartial(); if (!result.isInitialized()) { @@ -2575,17 +3343,7 @@ public final class TestConductorProtocol { } return result; } - - private akka.remote.testconductor.TestConductorProtocol.AddressRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.testconductor.TestConductorProtocol.AddressRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.testconductor.TestConductorProtocol.AddressRequest buildPartial() { akka.remote.testconductor.TestConductorProtocol.AddressRequest result = new akka.remote.testconductor.TestConductorProtocol.AddressRequest(this); int from_bitField0_ = bitField0_; @@ -2606,7 +3364,7 @@ public final class TestConductorProtocol { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.testconductor.TestConductorProtocol.AddressRequest) { return mergeFrom((akka.remote.testconductor.TestConductorProtocol.AddressRequest)other); @@ -2615,11 +3373,13 @@ public final class TestConductorProtocol { return this; } } - + public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.AddressRequest other) { if (other == akka.remote.testconductor.TestConductorProtocol.AddressRequest.getDefaultInstance()) return this; if (other.hasNode()) { - setNode(other.getNode()); + bitField0_ |= 0x00000001; + node_ = other.node_; + onChanged(); } if (other.hasAddr()) { mergeAddr(other.getAddr()); @@ -2627,7 +3387,7 @@ public final class TestConductorProtocol { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasNode()) { @@ -2641,66 +3401,69 @@ public final class TestConductorProtocol { } 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; - node_ = input.readBytes(); - break; - } - case 18: { - akka.remote.testconductor.TestConductorProtocol.Address.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.Address.newBuilder(); - if (hasAddr()) { - subBuilder.mergeFrom(getAddr()); - } - input.readMessage(subBuilder, extensionRegistry); - setAddr(subBuilder.buildPartial()); - break; - } + akka.remote.testconductor.TestConductorProtocol.AddressRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.testconductor.TestConductorProtocol.AddressRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string node = 1; private java.lang.Object node_ = ""; + /** + * required string node = 1; + */ public boolean hasNode() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getNode() { + /** + * required string node = 1; + */ + public java.lang.String getNode() { java.lang.Object ref = node_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); node_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setNode(String value) { + /** + * required string node = 1; + */ + public com.google.protobuf.ByteString + getNodeBytes() { + java.lang.Object ref = node_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + node_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string node = 1; + */ + public Builder setNode( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -2709,25 +3472,42 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required string node = 1; + */ public Builder clearNode() { bitField0_ = (bitField0_ & ~0x00000001); node_ = getDefaultInstance().getNode(); onChanged(); return this; } - void setNode(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string node = 1; + */ + public Builder setNodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; node_ = value; onChanged(); + return this; } - + // optional .Address addr = 2; private akka.remote.testconductor.TestConductorProtocol.Address addr_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Address, akka.remote.testconductor.TestConductorProtocol.Address.Builder, akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder> addrBuilder_; + /** + * optional .Address addr = 2; + */ public boolean hasAddr() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .Address addr = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Address getAddr() { if (addrBuilder_ == null) { return addr_; @@ -2735,6 +3515,9 @@ public final class TestConductorProtocol { return addrBuilder_.getMessage(); } } + /** + * optional .Address addr = 2; + */ public Builder setAddr(akka.remote.testconductor.TestConductorProtocol.Address value) { if (addrBuilder_ == null) { if (value == null) { @@ -2748,6 +3531,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * optional .Address addr = 2; + */ public Builder setAddr( akka.remote.testconductor.TestConductorProtocol.Address.Builder builderForValue) { if (addrBuilder_ == null) { @@ -2759,6 +3545,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * optional .Address addr = 2; + */ public Builder mergeAddr(akka.remote.testconductor.TestConductorProtocol.Address value) { if (addrBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -2775,6 +3564,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000002; return this; } + /** + * optional .Address addr = 2; + */ public Builder clearAddr() { if (addrBuilder_ == null) { addr_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); @@ -2785,11 +3577,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * optional .Address addr = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Address.Builder getAddrBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAddrFieldBuilder().getBuilder(); } + /** + * optional .Address addr = 2; + */ public akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddrOrBuilder() { if (addrBuilder_ != null) { return addrBuilder_.getMessageOrBuilder(); @@ -2797,6 +3595,9 @@ public final class TestConductorProtocol { return addr_; } } + /** + * optional .Address addr = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Address, akka.remote.testconductor.TestConductorProtocol.Address.Builder, akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder> getAddrFieldBuilder() { @@ -2810,501 +3611,124 @@ public final class TestConductorProtocol { } return addrBuilder_; } - + // @@protoc_insertion_point(builder_scope:AddressRequest) } - + static { defaultInstance = new AddressRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AddressRequest) } - + public interface AddressOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string protocol = 1; + /** + * required string protocol = 1; + */ boolean hasProtocol(); - String getProtocol(); - + /** + * required string protocol = 1; + */ + java.lang.String getProtocol(); + /** + * required string protocol = 1; + */ + com.google.protobuf.ByteString + getProtocolBytes(); + // required string system = 2; + /** + * required string system = 2; + */ boolean hasSystem(); - String getSystem(); - + /** + * required string system = 2; + */ + java.lang.String getSystem(); + /** + * required string system = 2; + */ + com.google.protobuf.ByteString + getSystemBytes(); + // required string host = 3; + /** + * required string host = 3; + */ boolean hasHost(); - String getHost(); - + /** + * required string host = 3; + */ + java.lang.String getHost(); + /** + * required string host = 3; + */ + com.google.protobuf.ByteString + getHostBytes(); + // required int32 port = 4; + /** + * required int32 port = 4; + */ boolean hasPort(); + /** + * required int32 port = 4; + */ int getPort(); } + /** + * Protobuf type {@code Address} + */ public static final class Address extends com.google.protobuf.GeneratedMessage implements AddressOrBuilder { // Use Address.newBuilder() to construct. - private Address(Builder builder) { + private Address(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Address(boolean noInit) {} - + private Address(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final Address defaultInstance; public static Address getDefaultInstance() { return defaultInstance; } - + public Address getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_fieldAccessorTable; - } - - private int bitField0_; - // required string protocol = 1; - public static final int PROTOCOL_FIELD_NUMBER = 1; - private java.lang.Object protocol_; - public boolean hasProtocol() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getProtocol() { - java.lang.Object ref = protocol_; - 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)) { - protocol_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string system = 2; - public static final int SYSTEM_FIELD_NUMBER = 2; - private java.lang.Object system_; - public boolean hasSystem() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getSystem() { - java.lang.Object ref = system_; - 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)) { - system_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSystemBytes() { - java.lang.Object ref = system_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - system_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string host = 3; - public static final int HOST_FIELD_NUMBER = 3; - private java.lang.Object host_; - public boolean hasHost() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getHost() { - java.lang.Object ref = host_; - 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)) { - host_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required int32 port = 4; - public static final int PORT_FIELD_NUMBER = 4; - private int port_; - public boolean hasPort() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public int getPort() { - return port_; - } - - private void initFields() { - protocol_ = ""; - system_ = ""; - host_ = ""; - port_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasProtocol()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasSystem()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHost()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPort()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getProtocolBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSystemBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getHostBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, port_); - } - 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, getProtocolBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSystemBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getHostBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, port_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; + + private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static akka.remote.testconductor.TestConductorProtocol.Address 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 akka.remote.testconductor.TestConductorProtocol.Address parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( + private Address( 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(akka.remote.testconductor.TestConductorProtocol.Address 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 akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_fieldAccessorTable; - } - - // Construct using akka.remote.testconductor.TestConductorProtocol.Address.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(); - protocol_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - system_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - host_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - port_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return akka.remote.testconductor.TestConductorProtocol.Address.getDescriptor(); - } - - public akka.remote.testconductor.TestConductorProtocol.Address getDefaultInstanceForType() { - return akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); - } - - public akka.remote.testconductor.TestConductorProtocol.Address build() { - akka.remote.testconductor.TestConductorProtocol.Address result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private akka.remote.testconductor.TestConductorProtocol.Address buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.testconductor.TestConductorProtocol.Address result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public akka.remote.testconductor.TestConductorProtocol.Address buildPartial() { - akka.remote.testconductor.TestConductorProtocol.Address result = new akka.remote.testconductor.TestConductorProtocol.Address(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.protocol_ = protocol_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.system_ = system_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.host_ = host_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.port_ = port_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof akka.remote.testconductor.TestConductorProtocol.Address) { - return mergeFrom((akka.remote.testconductor.TestConductorProtocol.Address)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.Address other) { - if (other == akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance()) return this; - if (other.hasProtocol()) { - setProtocol(other.getProtocol()); - } - if (other.hasSystem()) { - setSystem(other.getSystem()); - } - if (other.hasHost()) { - setHost(other.getHost()); - } - if (other.hasPort()) { - setPort(other.getPort()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasProtocol()) { - - return false; - } - if (!hasSystem()) { - - return false; - } - if (!hasHost()) { - - return false; - } - if (!hasPort()) { - - return false; - } - 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) { + 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: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; + break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; } break; } @@ -3330,26 +3754,548 @@ public final class TestConductorProtocol { } } } + } 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.Address.class, akka.remote.testconductor.TestConductorProtocol.Address.Builder.class); + } + + public static com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Address(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string protocol = 1; + public static final int PROTOCOL_FIELD_NUMBER = 1; + private java.lang.Object protocol_; + /** + * required string protocol = 1; + */ + public boolean hasProtocol() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string protocol = 1; + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + protocol_ = s; + } + return s; + } + } + /** + * required string protocol = 1; + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required string system = 2; + public static final int SYSTEM_FIELD_NUMBER = 2; + private java.lang.Object system_; + /** + * required string system = 2; + */ + public boolean hasSystem() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string system = 2; + */ + public java.lang.String getSystem() { + java.lang.Object ref = system_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + system_ = s; + } + return s; + } + } + /** + * required string system = 2; + */ + public com.google.protobuf.ByteString + getSystemBytes() { + java.lang.Object ref = system_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + system_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required string host = 3; + public static final int HOST_FIELD_NUMBER = 3; + private java.lang.Object host_; + /** + * required string host = 3; + */ + public boolean hasHost() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required string host = 3; + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + host_ = s; + } + return s; + } + } + /** + * required string host = 3; + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required int32 port = 4; + public static final int PORT_FIELD_NUMBER = 4; + private int port_; + /** + * required int32 port = 4; + */ + public boolean hasPort() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * required int32 port = 4; + */ + public int getPort() { + return port_; + } + + private void initFields() { + protocol_ = ""; + system_ = ""; + host_ = ""; + port_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasProtocol()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSystem()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHost()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPort()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getProtocolBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getSystemBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getHostBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, port_); + } + 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, getProtocolBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getSystemBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getHostBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, port_); + } + 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 akka.remote.testconductor.TestConductorProtocol.Address parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static akka.remote.testconductor.TestConductorProtocol.Address parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.testconductor.TestConductorProtocol.Address 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(akka.remote.testconductor.TestConductorProtocol.Address 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 Address} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.Address.class, akka.remote.testconductor.TestConductorProtocol.Address.Builder.class); + } + + // Construct using akka.remote.testconductor.TestConductorProtocol.Address.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(); + protocol_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + system_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + host_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + port_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return akka.remote.testconductor.TestConductorProtocol.internal_static_Address_descriptor; + } + + public akka.remote.testconductor.TestConductorProtocol.Address getDefaultInstanceForType() { + return akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); + } + + public akka.remote.testconductor.TestConductorProtocol.Address build() { + akka.remote.testconductor.TestConductorProtocol.Address result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public akka.remote.testconductor.TestConductorProtocol.Address buildPartial() { + akka.remote.testconductor.TestConductorProtocol.Address result = new akka.remote.testconductor.TestConductorProtocol.Address(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.protocol_ = protocol_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.system_ = system_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.host_ = host_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.port_ = port_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof akka.remote.testconductor.TestConductorProtocol.Address) { + return mergeFrom((akka.remote.testconductor.TestConductorProtocol.Address)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.Address other) { + if (other == akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance()) return this; + if (other.hasProtocol()) { + bitField0_ |= 0x00000001; + protocol_ = other.protocol_; + onChanged(); + } + if (other.hasSystem()) { + bitField0_ |= 0x00000002; + system_ = other.system_; + onChanged(); + } + if (other.hasHost()) { + bitField0_ |= 0x00000004; + host_ = other.host_; + onChanged(); + } + if (other.hasPort()) { + setPort(other.getPort()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasProtocol()) { + + return false; + } + if (!hasSystem()) { + + return false; + } + if (!hasHost()) { + + return false; + } + if (!hasPort()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.remote.testconductor.TestConductorProtocol.Address parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.testconductor.TestConductorProtocol.Address) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private int bitField0_; - + // required string protocol = 1; private java.lang.Object protocol_ = ""; + /** + * required string protocol = 1; + */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getProtocol() { + /** + * required string protocol = 1; + */ + public java.lang.String getProtocol() { java.lang.Object ref = protocol_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); protocol_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setProtocol(String value) { + /** + * required string protocol = 1; + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string protocol = 1; + */ + public Builder setProtocol( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -3358,34 +4304,72 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required string protocol = 1; + */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000001); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } - void setProtocol(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string protocol = 1; + */ + public Builder setProtocolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; protocol_ = value; onChanged(); + return this; } - + // required string system = 2; private java.lang.Object system_ = ""; + /** + * required string system = 2; + */ public boolean hasSystem() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getSystem() { + /** + * required string system = 2; + */ + public java.lang.String getSystem() { java.lang.Object ref = system_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); system_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setSystem(String value) { + /** + * required string system = 2; + */ + public com.google.protobuf.ByteString + getSystemBytes() { + java.lang.Object ref = system_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + system_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string system = 2; + */ + public Builder setSystem( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -3394,34 +4378,72 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required string system = 2; + */ public Builder clearSystem() { bitField0_ = (bitField0_ & ~0x00000002); system_ = getDefaultInstance().getSystem(); onChanged(); return this; } - void setSystem(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * required string system = 2; + */ + public Builder setSystemBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; system_ = value; onChanged(); + return this; } - + // required string host = 3; private java.lang.Object host_ = ""; + /** + * required string host = 3; + */ public boolean hasHost() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public String getHost() { + /** + * required string host = 3; + */ + public java.lang.String getHost() { java.lang.Object ref = host_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); host_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setHost(String value) { + /** + * required string host = 3; + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string host = 3; + */ + public Builder setHost( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -3430,156 +4452,352 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required string host = 3; + */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000004); host_ = getDefaultInstance().getHost(); onChanged(); return this; } - void setHost(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; + /** + * required string host = 3; + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; host_ = value; onChanged(); + return this; } - + // required int32 port = 4; private int port_ ; + /** + * required int32 port = 4; + */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * required int32 port = 4; + */ public int getPort() { return port_; } + /** + * required int32 port = 4; + */ public Builder setPort(int value) { bitField0_ |= 0x00000008; port_ = value; onChanged(); return this; } + /** + * required int32 port = 4; + */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000008); port_ = 0; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:Address) } - + static { defaultInstance = new Address(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Address) } - + public interface InjectFailureOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .FailType failure = 1; + /** + * required .FailType failure = 1; + */ boolean hasFailure(); + /** + * required .FailType failure = 1; + */ akka.remote.testconductor.TestConductorProtocol.FailType getFailure(); - + // optional .Direction direction = 2; + /** + * optional .Direction direction = 2; + */ boolean hasDirection(); + /** + * optional .Direction direction = 2; + */ akka.remote.testconductor.TestConductorProtocol.Direction getDirection(); - + // optional .Address address = 3; + /** + * optional .Address address = 3; + */ boolean hasAddress(); + /** + * optional .Address address = 3; + */ akka.remote.testconductor.TestConductorProtocol.Address getAddress(); + /** + * optional .Address address = 3; + */ akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddressOrBuilder(); - + // optional float rateMBit = 6; + /** + * optional float rateMBit = 6; + */ boolean hasRateMBit(); + /** + * optional float rateMBit = 6; + */ float getRateMBit(); - + // optional int32 exitValue = 7; + /** + * optional int32 exitValue = 7; + */ boolean hasExitValue(); + /** + * optional int32 exitValue = 7; + */ int getExitValue(); } + /** + * Protobuf type {@code InjectFailure} + */ public static final class InjectFailure extends com.google.protobuf.GeneratedMessage implements InjectFailureOrBuilder { // Use InjectFailure.newBuilder() to construct. - private InjectFailure(Builder builder) { + private InjectFailure(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private InjectFailure(boolean noInit) {} - + private InjectFailure(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final InjectFailure defaultInstance; public static InjectFailure getDefaultInstance() { return defaultInstance; } - + public InjectFailure getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InjectFailure( + 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 8: { + int rawValue = input.readEnum(); + akka.remote.testconductor.TestConductorProtocol.FailType value = akka.remote.testconductor.TestConductorProtocol.FailType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + failure_ = value; + } + break; + } + case 16: { + int rawValue = input.readEnum(); + akka.remote.testconductor.TestConductorProtocol.Direction value = akka.remote.testconductor.TestConductorProtocol.Direction.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + direction_ = value; + } + break; + } + case 26: { + akka.remote.testconductor.TestConductorProtocol.Address.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = address_.toBuilder(); + } + address_ = input.readMessage(akka.remote.testconductor.TestConductorProtocol.Address.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 53: { + bitField0_ |= 0x00000008; + rateMBit_ = input.readFloat(); + break; + } + case 56: { + bitField0_ |= 0x00000010; + exitValue_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.InjectFailure.class, akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public InjectFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InjectFailure(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required .FailType failure = 1; public static final int FAILURE_FIELD_NUMBER = 1; private akka.remote.testconductor.TestConductorProtocol.FailType failure_; + /** + * required .FailType failure = 1; + */ public boolean hasFailure() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .FailType failure = 1; + */ public akka.remote.testconductor.TestConductorProtocol.FailType getFailure() { return failure_; } - + // optional .Direction direction = 2; public static final int DIRECTION_FIELD_NUMBER = 2; private akka.remote.testconductor.TestConductorProtocol.Direction direction_; + /** + * optional .Direction direction = 2; + */ public boolean hasDirection() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .Direction direction = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Direction getDirection() { return direction_; } - + // optional .Address address = 3; public static final int ADDRESS_FIELD_NUMBER = 3; private akka.remote.testconductor.TestConductorProtocol.Address address_; + /** + * optional .Address address = 3; + */ public boolean hasAddress() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional .Address address = 3; + */ public akka.remote.testconductor.TestConductorProtocol.Address getAddress() { return address_; } + /** + * optional .Address address = 3; + */ public akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddressOrBuilder() { return address_; } - + // optional float rateMBit = 6; public static final int RATEMBIT_FIELD_NUMBER = 6; private float rateMBit_; + /** + * optional float rateMBit = 6; + */ public boolean hasRateMBit() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional float rateMBit = 6; + */ public float getRateMBit() { return rateMBit_; } - + // optional int32 exitValue = 7; public static final int EXITVALUE_FIELD_NUMBER = 7; private int exitValue_; + /** + * optional int32 exitValue = 7; + */ public boolean hasExitValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional int32 exitValue = 7; + */ public int getExitValue() { return exitValue_; } - + private void initFields() { failure_ = akka.remote.testconductor.TestConductorProtocol.FailType.Throttle; direction_ = akka.remote.testconductor.TestConductorProtocol.Direction.Send; @@ -3591,7 +4809,7 @@ public final class TestConductorProtocol { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasFailure()) { memoizedIsInitialized = 0; return false; @@ -3605,7 +4823,7 @@ public final class TestConductorProtocol { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -3626,12 +4844,12 @@ public final class TestConductorProtocol { } 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 @@ -3657,94 +4875,83 @@ public final class TestConductorProtocol { 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 akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.testconductor.TestConductorProtocol.InjectFailure parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.testconductor.TestConductorProtocol.InjectFailure 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 InjectFailure} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.testconductor.TestConductorProtocol.InjectFailureOrBuilder { @@ -3752,18 +4959,21 @@ public final class TestConductorProtocol { getDescriptor() { return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_fieldAccessorTable; + return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.testconductor.TestConductorProtocol.InjectFailure.class, akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder.class); } - + // Construct using akka.remote.testconductor.TestConductorProtocol.InjectFailure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3775,7 +4985,7 @@ public final class TestConductorProtocol { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); failure_ = akka.remote.testconductor.TestConductorProtocol.FailType.Throttle; @@ -3794,20 +5004,20 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000010); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.testconductor.TestConductorProtocol.InjectFailure.getDescriptor(); + return akka.remote.testconductor.TestConductorProtocol.internal_static_InjectFailure_descriptor; } - + public akka.remote.testconductor.TestConductorProtocol.InjectFailure getDefaultInstanceForType() { return akka.remote.testconductor.TestConductorProtocol.InjectFailure.getDefaultInstance(); } - + public akka.remote.testconductor.TestConductorProtocol.InjectFailure build() { akka.remote.testconductor.TestConductorProtocol.InjectFailure result = buildPartial(); if (!result.isInitialized()) { @@ -3815,17 +5025,7 @@ public final class TestConductorProtocol { } return result; } - - private akka.remote.testconductor.TestConductorProtocol.InjectFailure buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.testconductor.TestConductorProtocol.InjectFailure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.testconductor.TestConductorProtocol.InjectFailure buildPartial() { akka.remote.testconductor.TestConductorProtocol.InjectFailure result = new akka.remote.testconductor.TestConductorProtocol.InjectFailure(this); int from_bitField0_ = bitField0_; @@ -3858,7 +5058,7 @@ public final class TestConductorProtocol { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.testconductor.TestConductorProtocol.InjectFailure) { return mergeFrom((akka.remote.testconductor.TestConductorProtocol.InjectFailure)other); @@ -3867,7 +5067,7 @@ public final class TestConductorProtocol { return this; } } - + public Builder mergeFrom(akka.remote.testconductor.TestConductorProtocol.InjectFailure other) { if (other == akka.remote.testconductor.TestConductorProtocol.InjectFailure.getDefaultInstance()) return this; if (other.hasFailure()) { @@ -3888,7 +5088,7 @@ public final class TestConductorProtocol { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasFailure()) { @@ -3902,85 +5102,43 @@ public final class TestConductorProtocol { } 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 8: { - int rawValue = input.readEnum(); - akka.remote.testconductor.TestConductorProtocol.FailType value = akka.remote.testconductor.TestConductorProtocol.FailType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - failure_ = value; - } - break; - } - case 16: { - int rawValue = input.readEnum(); - akka.remote.testconductor.TestConductorProtocol.Direction value = akka.remote.testconductor.TestConductorProtocol.Direction.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - direction_ = value; - } - break; - } - case 26: { - akka.remote.testconductor.TestConductorProtocol.Address.Builder subBuilder = akka.remote.testconductor.TestConductorProtocol.Address.newBuilder(); - if (hasAddress()) { - subBuilder.mergeFrom(getAddress()); - } - input.readMessage(subBuilder, extensionRegistry); - setAddress(subBuilder.buildPartial()); - break; - } - case 53: { - bitField0_ |= 0x00000008; - rateMBit_ = input.readFloat(); - break; - } - case 56: { - bitField0_ |= 0x00000010; - exitValue_ = input.readInt32(); - break; - } + akka.remote.testconductor.TestConductorProtocol.InjectFailure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.testconductor.TestConductorProtocol.InjectFailure) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .FailType failure = 1; private akka.remote.testconductor.TestConductorProtocol.FailType failure_ = akka.remote.testconductor.TestConductorProtocol.FailType.Throttle; + /** + * required .FailType failure = 1; + */ public boolean hasFailure() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .FailType failure = 1; + */ public akka.remote.testconductor.TestConductorProtocol.FailType getFailure() { return failure_; } + /** + * required .FailType failure = 1; + */ public Builder setFailure(akka.remote.testconductor.TestConductorProtocol.FailType value) { if (value == null) { throw new NullPointerException(); @@ -3990,21 +5148,33 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * required .FailType failure = 1; + */ public Builder clearFailure() { bitField0_ = (bitField0_ & ~0x00000001); failure_ = akka.remote.testconductor.TestConductorProtocol.FailType.Throttle; onChanged(); return this; } - + // optional .Direction direction = 2; private akka.remote.testconductor.TestConductorProtocol.Direction direction_ = akka.remote.testconductor.TestConductorProtocol.Direction.Send; + /** + * optional .Direction direction = 2; + */ public boolean hasDirection() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .Direction direction = 2; + */ public akka.remote.testconductor.TestConductorProtocol.Direction getDirection() { return direction_; } + /** + * optional .Direction direction = 2; + */ public Builder setDirection(akka.remote.testconductor.TestConductorProtocol.Direction value) { if (value == null) { throw new NullPointerException(); @@ -4014,20 +5184,29 @@ public final class TestConductorProtocol { onChanged(); return this; } + /** + * optional .Direction direction = 2; + */ public Builder clearDirection() { bitField0_ = (bitField0_ & ~0x00000002); direction_ = akka.remote.testconductor.TestConductorProtocol.Direction.Send; onChanged(); return this; } - + // optional .Address address = 3; private akka.remote.testconductor.TestConductorProtocol.Address address_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Address, akka.remote.testconductor.TestConductorProtocol.Address.Builder, akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder> addressBuilder_; + /** + * optional .Address address = 3; + */ public boolean hasAddress() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional .Address address = 3; + */ public akka.remote.testconductor.TestConductorProtocol.Address getAddress() { if (addressBuilder_ == null) { return address_; @@ -4035,6 +5214,9 @@ public final class TestConductorProtocol { return addressBuilder_.getMessage(); } } + /** + * optional .Address address = 3; + */ public Builder setAddress(akka.remote.testconductor.TestConductorProtocol.Address value) { if (addressBuilder_ == null) { if (value == null) { @@ -4048,6 +5230,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000004; return this; } + /** + * optional .Address address = 3; + */ public Builder setAddress( akka.remote.testconductor.TestConductorProtocol.Address.Builder builderForValue) { if (addressBuilder_ == null) { @@ -4059,6 +5244,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000004; return this; } + /** + * optional .Address address = 3; + */ public Builder mergeAddress(akka.remote.testconductor.TestConductorProtocol.Address value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && @@ -4075,6 +5263,9 @@ public final class TestConductorProtocol { bitField0_ |= 0x00000004; return this; } + /** + * optional .Address address = 3; + */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = akka.remote.testconductor.TestConductorProtocol.Address.getDefaultInstance(); @@ -4085,11 +5276,17 @@ public final class TestConductorProtocol { bitField0_ = (bitField0_ & ~0x00000004); return this; } + /** + * optional .Address address = 3; + */ public akka.remote.testconductor.TestConductorProtocol.Address.Builder getAddressBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAddressFieldBuilder().getBuilder(); } + /** + * optional .Address address = 3; + */ public akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); @@ -4097,6 +5294,9 @@ public final class TestConductorProtocol { return address_; } } + /** + * optional .Address address = 3; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.testconductor.TestConductorProtocol.Address, akka.remote.testconductor.TestConductorProtocol.Address.Builder, akka.remote.testconductor.TestConductorProtocol.AddressOrBuilder> getAddressFieldBuilder() { @@ -4110,60 +5310,84 @@ public final class TestConductorProtocol { } return addressBuilder_; } - + // optional float rateMBit = 6; private float rateMBit_ ; + /** + * optional float rateMBit = 6; + */ public boolean hasRateMBit() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional float rateMBit = 6; + */ public float getRateMBit() { return rateMBit_; } + /** + * optional float rateMBit = 6; + */ public Builder setRateMBit(float value) { bitField0_ |= 0x00000008; rateMBit_ = value; onChanged(); return this; } + /** + * optional float rateMBit = 6; + */ public Builder clearRateMBit() { bitField0_ = (bitField0_ & ~0x00000008); rateMBit_ = 0F; onChanged(); return this; } - + // optional int32 exitValue = 7; private int exitValue_ ; + /** + * optional int32 exitValue = 7; + */ public boolean hasExitValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional int32 exitValue = 7; + */ public int getExitValue() { return exitValue_; } + /** + * optional int32 exitValue = 7; + */ public Builder setExitValue(int value) { bitField0_ |= 0x00000010; exitValue_ = value; onChanged(); return this; } + /** + * optional int32 exitValue = 7; + */ public Builder clearExitValue() { bitField0_ = (bitField0_ & ~0x00000010); exitValue_ = 0; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:InjectFailure) } - + static { defaultInstance = new InjectFailure(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:InjectFailure) } - + private static com.google.protobuf.Descriptors.Descriptor internal_static_Wrapper_descriptor; private static @@ -4194,7 +5418,7 @@ public final class TestConductorProtocol { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_InjectFailure_fieldAccessorTable; - + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -4234,49 +5458,37 @@ public final class TestConductorProtocol { internal_static_Wrapper_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Wrapper_descriptor, - new java.lang.String[] { "Hello", "Barrier", "Failure", "Done", "Addr", }, - akka.remote.testconductor.TestConductorProtocol.Wrapper.class, - akka.remote.testconductor.TestConductorProtocol.Wrapper.Builder.class); + new java.lang.String[] { "Hello", "Barrier", "Failure", "Done", "Addr", }); internal_static_Hello_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Hello_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Hello_descriptor, - new java.lang.String[] { "Name", "Address", }, - akka.remote.testconductor.TestConductorProtocol.Hello.class, - akka.remote.testconductor.TestConductorProtocol.Hello.Builder.class); + new java.lang.String[] { "Name", "Address", }); internal_static_EnterBarrier_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_EnterBarrier_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_EnterBarrier_descriptor, - new java.lang.String[] { "Name", "Op", "Timeout", }, - akka.remote.testconductor.TestConductorProtocol.EnterBarrier.class, - akka.remote.testconductor.TestConductorProtocol.EnterBarrier.Builder.class); + new java.lang.String[] { "Name", "Op", "Timeout", }); internal_static_AddressRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_AddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AddressRequest_descriptor, - new java.lang.String[] { "Node", "Addr", }, - akka.remote.testconductor.TestConductorProtocol.AddressRequest.class, - akka.remote.testconductor.TestConductorProtocol.AddressRequest.Builder.class); + new java.lang.String[] { "Node", "Addr", }); internal_static_Address_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Address_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Address_descriptor, - new java.lang.String[] { "Protocol", "System", "Host", "Port", }, - akka.remote.testconductor.TestConductorProtocol.Address.class, - akka.remote.testconductor.TestConductorProtocol.Address.Builder.class); + new java.lang.String[] { "Protocol", "System", "Host", "Port", }); internal_static_InjectFailure_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_InjectFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_InjectFailure_descriptor, - new java.lang.String[] { "Failure", "Direction", "Address", "RateMBit", "ExitValue", }, - akka.remote.testconductor.TestConductorProtocol.InjectFailure.class, - akka.remote.testconductor.TestConductorProtocol.InjectFailure.Builder.class); + new java.lang.String[] { "Failure", "Direction", "Address", "RateMBit", "ExitValue", }); return null; } }; @@ -4285,6 +5497,6 @@ public final class TestConductorProtocol { new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } - + // @@protoc_insertion_point(outer_class_scope) } diff --git a/akka-multi-node-testkit/src/main/protocol/TestConductorProtocol.proto b/akka-multi-node-testkit/src/main/protobuf/TestConductorProtocol.proto similarity index 82% rename from akka-multi-node-testkit/src/main/protocol/TestConductorProtocol.proto rename to akka-multi-node-testkit/src/main/protobuf/TestConductorProtocol.proto index dadb4ecdec..d57a3069a0 100644 --- a/akka-multi-node-testkit/src/main/protocol/TestConductorProtocol.proto +++ b/akka-multi-node-testkit/src/main/protobuf/TestConductorProtocol.proto @@ -5,14 +5,6 @@ option java_package = "akka.remote.testconductor"; option optimize_for = SPEED; -/****************************************** - Compile with: - cd ./akka-multi-node-testkit/src/main/protocol - protoc TestConductorProtocol.proto --java_out ../java - cd ../../../.. - ./scripts/fix-protobuf.sh -*******************************************/ - message Wrapper { optional Hello hello = 1; optional EnterBarrier barrier = 2; diff --git a/akka-remote/src/main/java/akka/remote/ContainerFormats.java b/akka-remote/src/main/java/akka/remote/ContainerFormats.java index 448a06ad0b..c8c2febbb8 100644 --- a/akka-remote/src/main/java/akka/remote/ContainerFormats.java +++ b/akka-remote/src/main/java/akka/remote/ContainerFormats.java @@ -8,20 +8,41 @@ public final class ContainerFormats { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } + /** + * Protobuf enum {@code PatternType} + */ public enum PatternType implements com.google.protobuf.ProtocolMessageEnum { + /** + * PARENT = 0; + */ PARENT(0, 0), + /** + * CHILD_NAME = 1; + */ CHILD_NAME(1, 1), + /** + * CHILD_PATTERN = 2; + */ CHILD_PATTERN(2, 2), ; - + + /** + * PARENT = 0; + */ public static final int PARENT_VALUE = 0; + /** + * CHILD_NAME = 1; + */ public static final int CHILD_NAME_VALUE = 1; + /** + * CHILD_PATTERN = 2; + */ public static final int CHILD_PATTERN_VALUE = 2; - - + + public final int getNumber() { return value; } - + public static PatternType valueOf(int value) { switch (value) { case 0: return PARENT; @@ -30,7 +51,7 @@ public final class ContainerFormats { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -42,7 +63,7 @@ public final class ContainerFormats { return PatternType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -55,11 +76,9 @@ public final class ContainerFormats { getDescriptor() { return akka.remote.ContainerFormats.getDescriptor().getEnumTypes().get(0); } - - private static final PatternType[] VALUES = { - PARENT, CHILD_NAME, CHILD_PATTERN, - }; - + + private static final PatternType[] VALUES = values(); + public static PatternType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -68,123 +87,277 @@ public final class ContainerFormats { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private PatternType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:PatternType) } - + public interface SelectionEnvelopeOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes enclosedMessage = 1; + /** + * required bytes enclosedMessage = 1; + */ boolean hasEnclosedMessage(); + /** + * required bytes enclosedMessage = 1; + */ com.google.protobuf.ByteString getEnclosedMessage(); - + // required int32 serializerId = 2; + /** + * required int32 serializerId = 2; + */ boolean hasSerializerId(); + /** + * required int32 serializerId = 2; + */ int getSerializerId(); - + // repeated .Selection pattern = 3; + /** + * repeated .Selection pattern = 3; + */ java.util.List getPatternList(); + /** + * repeated .Selection pattern = 3; + */ akka.remote.ContainerFormats.Selection getPattern(int index); + /** + * repeated .Selection pattern = 3; + */ int getPatternCount(); + /** + * repeated .Selection pattern = 3; + */ java.util.List getPatternOrBuilderList(); + /** + * repeated .Selection pattern = 3; + */ akka.remote.ContainerFormats.SelectionOrBuilder getPatternOrBuilder( int index); - + // optional bytes messageManifest = 4; + /** + * optional bytes messageManifest = 4; + */ boolean hasMessageManifest(); + /** + * optional bytes messageManifest = 4; + */ com.google.protobuf.ByteString getMessageManifest(); } + /** + * Protobuf type {@code SelectionEnvelope} + */ public static final class SelectionEnvelope extends com.google.protobuf.GeneratedMessage implements SelectionEnvelopeOrBuilder { // Use SelectionEnvelope.newBuilder() to construct. - private SelectionEnvelope(Builder builder) { + private SelectionEnvelope(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private SelectionEnvelope(boolean noInit) {} - + private SelectionEnvelope(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final SelectionEnvelope defaultInstance; public static SelectionEnvelope getDefaultInstance() { return defaultInstance; } - + public SelectionEnvelope getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SelectionEnvelope( + 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 10: { + bitField0_ |= 0x00000001; + enclosedMessage_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + serializerId_ = input.readInt32(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + pattern_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + pattern_.add(input.readMessage(akka.remote.ContainerFormats.Selection.PARSER, extensionRegistry)); + break; + } + case 34: { + bitField0_ |= 0x00000004; + messageManifest_ = 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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + pattern_ = java.util.Collections.unmodifiableList(pattern_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_fieldAccessorTable; + return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.ContainerFormats.SelectionEnvelope.class, akka.remote.ContainerFormats.SelectionEnvelope.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public SelectionEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SelectionEnvelope(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required bytes enclosedMessage = 1; public static final int ENCLOSEDMESSAGE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString enclosedMessage_; + /** + * required bytes enclosedMessage = 1; + */ public boolean hasEnclosedMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes enclosedMessage = 1; + */ public com.google.protobuf.ByteString getEnclosedMessage() { return enclosedMessage_; } - + // required int32 serializerId = 2; public static final int SERIALIZERID_FIELD_NUMBER = 2; private int serializerId_; + /** + * required int32 serializerId = 2; + */ public boolean hasSerializerId() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int32 serializerId = 2; + */ public int getSerializerId() { return serializerId_; } - + // repeated .Selection pattern = 3; public static final int PATTERN_FIELD_NUMBER = 3; private java.util.List pattern_; + /** + * repeated .Selection pattern = 3; + */ public java.util.List getPatternList() { return pattern_; } + /** + * repeated .Selection pattern = 3; + */ public java.util.List getPatternOrBuilderList() { return pattern_; } + /** + * repeated .Selection pattern = 3; + */ public int getPatternCount() { return pattern_.size(); } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.Selection getPattern(int index) { return pattern_.get(index); } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.SelectionOrBuilder getPatternOrBuilder( int index) { return pattern_.get(index); } - + // optional bytes messageManifest = 4; public static final int MESSAGEMANIFEST_FIELD_NUMBER = 4; private com.google.protobuf.ByteString messageManifest_; + /** + * optional bytes messageManifest = 4; + */ public boolean hasMessageManifest() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional bytes messageManifest = 4; + */ public com.google.protobuf.ByteString getMessageManifest() { return messageManifest_; } - + private void initFields() { enclosedMessage_ = com.google.protobuf.ByteString.EMPTY; serializerId_ = 0; @@ -195,7 +368,7 @@ public final class ContainerFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasEnclosedMessage()) { memoizedIsInitialized = 0; return false; @@ -213,7 +386,7 @@ public final class ContainerFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -231,12 +404,12 @@ public final class ContainerFormats { } 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 @@ -258,94 +431,83 @@ public final class ContainerFormats { 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 akka.remote.ContainerFormats.SelectionEnvelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.ContainerFormats.SelectionEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.ContainerFormats.SelectionEnvelope 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.ContainerFormats.SelectionEnvelope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.ContainerFormats.SelectionEnvelope 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 SelectionEnvelope} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.ContainerFormats.SelectionEnvelopeOrBuilder { @@ -353,18 +515,21 @@ public final class ContainerFormats { getDescriptor() { return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_fieldAccessorTable; + return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.ContainerFormats.SelectionEnvelope.class, akka.remote.ContainerFormats.SelectionEnvelope.Builder.class); } - + // Construct using akka.remote.ContainerFormats.SelectionEnvelope.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -376,7 +541,7 @@ public final class ContainerFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); enclosedMessage_ = com.google.protobuf.ByteString.EMPTY; @@ -393,20 +558,20 @@ public final class ContainerFormats { bitField0_ = (bitField0_ & ~0x00000008); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.ContainerFormats.SelectionEnvelope.getDescriptor(); + return akka.remote.ContainerFormats.internal_static_SelectionEnvelope_descriptor; } - + public akka.remote.ContainerFormats.SelectionEnvelope getDefaultInstanceForType() { return akka.remote.ContainerFormats.SelectionEnvelope.getDefaultInstance(); } - + public akka.remote.ContainerFormats.SelectionEnvelope build() { akka.remote.ContainerFormats.SelectionEnvelope result = buildPartial(); if (!result.isInitialized()) { @@ -414,17 +579,7 @@ public final class ContainerFormats { } return result; } - - private akka.remote.ContainerFormats.SelectionEnvelope buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.ContainerFormats.SelectionEnvelope result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.ContainerFormats.SelectionEnvelope buildPartial() { akka.remote.ContainerFormats.SelectionEnvelope result = new akka.remote.ContainerFormats.SelectionEnvelope(this); int from_bitField0_ = bitField0_; @@ -454,7 +609,7 @@ public final class ContainerFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.ContainerFormats.SelectionEnvelope) { return mergeFrom((akka.remote.ContainerFormats.SelectionEnvelope)other); @@ -463,7 +618,7 @@ public final class ContainerFormats { return this; } } - + public Builder mergeFrom(akka.remote.ContainerFormats.SelectionEnvelope other) { if (other == akka.remote.ContainerFormats.SelectionEnvelope.getDefaultInstance()) return this; if (other.hasEnclosedMessage()) { @@ -504,7 +659,7 @@ public final class ContainerFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasEnclosedMessage()) { @@ -522,65 +677,43 @@ public final class ContainerFormats { } 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; - enclosedMessage_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - serializerId_ = input.readInt32(); - break; - } - case 26: { - akka.remote.ContainerFormats.Selection.Builder subBuilder = akka.remote.ContainerFormats.Selection.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addPattern(subBuilder.buildPartial()); - break; - } - case 34: { - bitField0_ |= 0x00000008; - messageManifest_ = input.readBytes(); - break; - } + akka.remote.ContainerFormats.SelectionEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.ContainerFormats.SelectionEnvelope) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required bytes enclosedMessage = 1; private com.google.protobuf.ByteString enclosedMessage_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes enclosedMessage = 1; + */ public boolean hasEnclosedMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes enclosedMessage = 1; + */ public com.google.protobuf.ByteString getEnclosedMessage() { return enclosedMessage_; } + /** + * required bytes enclosedMessage = 1; + */ public Builder setEnclosedMessage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -590,34 +723,49 @@ public final class ContainerFormats { onChanged(); return this; } + /** + * required bytes enclosedMessage = 1; + */ public Builder clearEnclosedMessage() { bitField0_ = (bitField0_ & ~0x00000001); enclosedMessage_ = getDefaultInstance().getEnclosedMessage(); onChanged(); return this; } - + // required int32 serializerId = 2; private int serializerId_ ; + /** + * required int32 serializerId = 2; + */ public boolean hasSerializerId() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int32 serializerId = 2; + */ public int getSerializerId() { return serializerId_; } + /** + * required int32 serializerId = 2; + */ public Builder setSerializerId(int value) { bitField0_ |= 0x00000002; serializerId_ = value; onChanged(); return this; } + /** + * required int32 serializerId = 2; + */ public Builder clearSerializerId() { bitField0_ = (bitField0_ & ~0x00000002); serializerId_ = 0; onChanged(); return this; } - + // repeated .Selection pattern = 3; private java.util.List pattern_ = java.util.Collections.emptyList(); @@ -627,10 +775,13 @@ public final class ContainerFormats { bitField0_ |= 0x00000004; } } - + private com.google.protobuf.RepeatedFieldBuilder< akka.remote.ContainerFormats.Selection, akka.remote.ContainerFormats.Selection.Builder, akka.remote.ContainerFormats.SelectionOrBuilder> patternBuilder_; - + + /** + * repeated .Selection pattern = 3; + */ public java.util.List getPatternList() { if (patternBuilder_ == null) { return java.util.Collections.unmodifiableList(pattern_); @@ -638,6 +789,9 @@ public final class ContainerFormats { return patternBuilder_.getMessageList(); } } + /** + * repeated .Selection pattern = 3; + */ public int getPatternCount() { if (patternBuilder_ == null) { return pattern_.size(); @@ -645,6 +799,9 @@ public final class ContainerFormats { return patternBuilder_.getCount(); } } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.Selection getPattern(int index) { if (patternBuilder_ == null) { return pattern_.get(index); @@ -652,6 +809,9 @@ public final class ContainerFormats { return patternBuilder_.getMessage(index); } } + /** + * repeated .Selection pattern = 3; + */ public Builder setPattern( int index, akka.remote.ContainerFormats.Selection value) { if (patternBuilder_ == null) { @@ -666,6 +826,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder setPattern( int index, akka.remote.ContainerFormats.Selection.Builder builderForValue) { if (patternBuilder_ == null) { @@ -677,6 +840,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder addPattern(akka.remote.ContainerFormats.Selection value) { if (patternBuilder_ == null) { if (value == null) { @@ -690,6 +856,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder addPattern( int index, akka.remote.ContainerFormats.Selection value) { if (patternBuilder_ == null) { @@ -704,6 +873,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder addPattern( akka.remote.ContainerFormats.Selection.Builder builderForValue) { if (patternBuilder_ == null) { @@ -715,6 +887,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder addPattern( int index, akka.remote.ContainerFormats.Selection.Builder builderForValue) { if (patternBuilder_ == null) { @@ -726,6 +901,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder addAllPattern( java.lang.Iterable values) { if (patternBuilder_ == null) { @@ -737,6 +915,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder clearPattern() { if (patternBuilder_ == null) { pattern_ = java.util.Collections.emptyList(); @@ -747,6 +928,9 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public Builder removePattern(int index) { if (patternBuilder_ == null) { ensurePatternIsMutable(); @@ -757,10 +941,16 @@ public final class ContainerFormats { } return this; } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.Selection.Builder getPatternBuilder( int index) { return getPatternFieldBuilder().getBuilder(index); } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.SelectionOrBuilder getPatternOrBuilder( int index) { if (patternBuilder_ == null) { @@ -768,6 +958,9 @@ public final class ContainerFormats { return patternBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .Selection pattern = 3; + */ public java.util.List getPatternOrBuilderList() { if (patternBuilder_ != null) { @@ -776,15 +969,24 @@ public final class ContainerFormats { return java.util.Collections.unmodifiableList(pattern_); } } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.Selection.Builder addPatternBuilder() { return getPatternFieldBuilder().addBuilder( akka.remote.ContainerFormats.Selection.getDefaultInstance()); } + /** + * repeated .Selection pattern = 3; + */ public akka.remote.ContainerFormats.Selection.Builder addPatternBuilder( int index) { return getPatternFieldBuilder().addBuilder( index, akka.remote.ContainerFormats.Selection.getDefaultInstance()); } + /** + * repeated .Selection pattern = 3; + */ public java.util.List getPatternBuilderList() { return getPatternFieldBuilder().getBuilderList(); @@ -803,15 +1005,24 @@ public final class ContainerFormats { } return patternBuilder_; } - + // optional bytes messageManifest = 4; private com.google.protobuf.ByteString messageManifest_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes messageManifest = 4; + */ public boolean hasMessageManifest() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional bytes messageManifest = 4; + */ public com.google.protobuf.ByteString getMessageManifest() { return messageManifest_; } + /** + * optional bytes messageManifest = 4; + */ public Builder setMessageManifest(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -821,377 +1032,103 @@ public final class ContainerFormats { onChanged(); return this; } + /** + * optional bytes messageManifest = 4; + */ public Builder clearMessageManifest() { bitField0_ = (bitField0_ & ~0x00000008); messageManifest_ = getDefaultInstance().getMessageManifest(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:SelectionEnvelope) } - + static { defaultInstance = new SelectionEnvelope(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:SelectionEnvelope) } - + public interface SelectionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .PatternType type = 1; + /** + * required .PatternType type = 1; + */ boolean hasType(); + /** + * required .PatternType type = 1; + */ akka.remote.ContainerFormats.PatternType getType(); - + // optional string matcher = 2; + /** + * optional string matcher = 2; + */ boolean hasMatcher(); - String getMatcher(); + /** + * optional string matcher = 2; + */ + java.lang.String getMatcher(); + /** + * optional string matcher = 2; + */ + com.google.protobuf.ByteString + getMatcherBytes(); } + /** + * Protobuf type {@code Selection} + */ public static final class Selection extends com.google.protobuf.GeneratedMessage implements SelectionOrBuilder { // Use Selection.newBuilder() to construct. - private Selection(Builder builder) { + private Selection(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Selection(boolean noInit) {} - + private Selection(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final Selection defaultInstance; public static Selection getDefaultInstance() { return defaultInstance; } - + public Selection getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.ContainerFormats.internal_static_Selection_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.ContainerFormats.internal_static_Selection_fieldAccessorTable; - } - - private int bitField0_; - // required .PatternType type = 1; - public static final int TYPE_FIELD_NUMBER = 1; - private akka.remote.ContainerFormats.PatternType type_; - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public akka.remote.ContainerFormats.PatternType getType() { - return type_; - } - - // optional string matcher = 2; - public static final int MATCHER_FIELD_NUMBER = 2; - private java.lang.Object matcher_; - public boolean hasMatcher() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getMatcher() { - java.lang.Object ref = matcher_; - 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)) { - matcher_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getMatcherBytes() { - java.lang.Object ref = matcher_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - matcher_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - type_ = akka.remote.ContainerFormats.PatternType.PARENT; - matcher_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getMatcherBytes()); - } - 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 - .computeEnumSize(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getMatcherBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; + + private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public static akka.remote.ContainerFormats.Selection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static akka.remote.ContainerFormats.Selection 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 akka.remote.ContainerFormats.Selection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.ContainerFormats.Selection parseFrom( + private Selection( 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(akka.remote.ContainerFormats.Selection 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 akka.remote.ContainerFormats.SelectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.ContainerFormats.internal_static_Selection_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.ContainerFormats.internal_static_Selection_fieldAccessorTable; - } - - // Construct using akka.remote.ContainerFormats.Selection.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(); - type_ = akka.remote.ContainerFormats.PatternType.PARENT; - bitField0_ = (bitField0_ & ~0x00000001); - matcher_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return akka.remote.ContainerFormats.Selection.getDescriptor(); - } - - public akka.remote.ContainerFormats.Selection getDefaultInstanceForType() { - return akka.remote.ContainerFormats.Selection.getDefaultInstance(); - } - - public akka.remote.ContainerFormats.Selection build() { - akka.remote.ContainerFormats.Selection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private akka.remote.ContainerFormats.Selection buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.ContainerFormats.Selection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public akka.remote.ContainerFormats.Selection buildPartial() { - akka.remote.ContainerFormats.Selection result = new akka.remote.ContainerFormats.Selection(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.matcher_ = matcher_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof akka.remote.ContainerFormats.Selection) { - return mergeFrom((akka.remote.ContainerFormats.Selection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(akka.remote.ContainerFormats.Selection other) { - if (other == akka.remote.ContainerFormats.Selection.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasMatcher()) { - setMatcher(other.getMatcher()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasType()) { - - return false; - } - 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) { + 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: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; + break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; } break; } @@ -1213,18 +1150,374 @@ public final class ContainerFormats { } } } + } 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.ContainerFormats.internal_static_Selection_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.ContainerFormats.internal_static_Selection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.ContainerFormats.Selection.class, akka.remote.ContainerFormats.Selection.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Selection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Selection(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required .PatternType type = 1; + public static final int TYPE_FIELD_NUMBER = 1; + private akka.remote.ContainerFormats.PatternType type_; + /** + * required .PatternType type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required .PatternType type = 1; + */ + public akka.remote.ContainerFormats.PatternType getType() { + return type_; + } + + // optional string matcher = 2; + public static final int MATCHER_FIELD_NUMBER = 2; + private java.lang.Object matcher_; + /** + * optional string matcher = 2; + */ + public boolean hasMatcher() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string matcher = 2; + */ + public java.lang.String getMatcher() { + java.lang.Object ref = matcher_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + matcher_ = s; + } + return s; + } + } + /** + * optional string matcher = 2; + */ + public com.google.protobuf.ByteString + getMatcherBytes() { + java.lang.Object ref = matcher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + type_ = akka.remote.ContainerFormats.PatternType.PARENT; + matcher_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getMatcherBytes()); + } + 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 + .computeEnumSize(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getMatcherBytes()); + } + 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 akka.remote.ContainerFormats.Selection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.ContainerFormats.Selection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.ContainerFormats.Selection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.ContainerFormats.Selection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.ContainerFormats.Selection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.ContainerFormats.Selection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static akka.remote.ContainerFormats.Selection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static akka.remote.ContainerFormats.Selection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static akka.remote.ContainerFormats.Selection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.ContainerFormats.Selection 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(akka.remote.ContainerFormats.Selection 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 Selection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements akka.remote.ContainerFormats.SelectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.ContainerFormats.internal_static_Selection_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.ContainerFormats.internal_static_Selection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.ContainerFormats.Selection.class, akka.remote.ContainerFormats.Selection.Builder.class); + } + + // Construct using akka.remote.ContainerFormats.Selection.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(); + type_ = akka.remote.ContainerFormats.PatternType.PARENT; + bitField0_ = (bitField0_ & ~0x00000001); + matcher_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return akka.remote.ContainerFormats.internal_static_Selection_descriptor; + } + + public akka.remote.ContainerFormats.Selection getDefaultInstanceForType() { + return akka.remote.ContainerFormats.Selection.getDefaultInstance(); + } + + public akka.remote.ContainerFormats.Selection build() { + akka.remote.ContainerFormats.Selection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public akka.remote.ContainerFormats.Selection buildPartial() { + akka.remote.ContainerFormats.Selection result = new akka.remote.ContainerFormats.Selection(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.matcher_ = matcher_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof akka.remote.ContainerFormats.Selection) { + return mergeFrom((akka.remote.ContainerFormats.Selection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(akka.remote.ContainerFormats.Selection other) { + if (other == akka.remote.ContainerFormats.Selection.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasMatcher()) { + bitField0_ |= 0x00000002; + matcher_ = other.matcher_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasType()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.remote.ContainerFormats.Selection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.ContainerFormats.Selection) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private int bitField0_; - + // required .PatternType type = 1; private akka.remote.ContainerFormats.PatternType type_ = akka.remote.ContainerFormats.PatternType.PARENT; + /** + * required .PatternType type = 1; + */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .PatternType type = 1; + */ public akka.remote.ContainerFormats.PatternType getType() { return type_; } + /** + * required .PatternType type = 1; + */ public Builder setType(akka.remote.ContainerFormats.PatternType value) { if (value == null) { throw new NullPointerException(); @@ -1234,29 +1527,59 @@ public final class ContainerFormats { onChanged(); return this; } + /** + * required .PatternType type = 1; + */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = akka.remote.ContainerFormats.PatternType.PARENT; onChanged(); return this; } - + // optional string matcher = 2; private java.lang.Object matcher_ = ""; + /** + * optional string matcher = 2; + */ public boolean hasMatcher() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getMatcher() { + /** + * optional string matcher = 2; + */ + public java.lang.String getMatcher() { java.lang.Object ref = matcher_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); matcher_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setMatcher(String value) { + /** + * optional string matcher = 2; + */ + public com.google.protobuf.ByteString + getMatcherBytes() { + java.lang.Object ref = matcher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string matcher = 2; + */ + public Builder setMatcher( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1265,29 +1588,40 @@ public final class ContainerFormats { onChanged(); return this; } + /** + * optional string matcher = 2; + */ public Builder clearMatcher() { bitField0_ = (bitField0_ & ~0x00000002); matcher_ = getDefaultInstance().getMatcher(); onChanged(); return this; } - void setMatcher(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * optional string matcher = 2; + */ + public Builder setMatcherBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; matcher_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:Selection) } - + static { defaultInstance = new Selection(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Selection) } - + private static com.google.protobuf.Descriptors.Descriptor internal_static_SelectionEnvelope_descriptor; private static @@ -1298,7 +1632,7 @@ public final class ContainerFormats { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Selection_fieldAccessorTable; - + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -1326,17 +1660,13 @@ public final class ContainerFormats { internal_static_SelectionEnvelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SelectionEnvelope_descriptor, - new java.lang.String[] { "EnclosedMessage", "SerializerId", "Pattern", "MessageManifest", }, - akka.remote.ContainerFormats.SelectionEnvelope.class, - akka.remote.ContainerFormats.SelectionEnvelope.Builder.class); + new java.lang.String[] { "EnclosedMessage", "SerializerId", "Pattern", "MessageManifest", }); internal_static_Selection_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Selection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Selection_descriptor, - new java.lang.String[] { "Type", "Matcher", }, - akka.remote.ContainerFormats.Selection.class, - akka.remote.ContainerFormats.Selection.Builder.class); + new java.lang.String[] { "Type", "Matcher", }); return null; } }; @@ -1345,6 +1675,6 @@ public final class ContainerFormats { new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } - + // @@protoc_insertion_point(outer_class_scope) } diff --git a/akka-remote/src/main/java/akka/remote/WireFormats.java b/akka-remote/src/main/java/akka/remote/WireFormats.java index 91c6afd3f6..bd6abc12e7 100644 --- a/akka-remote/src/main/java/akka/remote/WireFormats.java +++ b/akka-remote/src/main/java/akka/remote/WireFormats.java @@ -8,24 +8,78 @@ public final class WireFormats { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } + /** + * Protobuf enum {@code CommandType} + * + *
+   **
+   * Defines the type of the AkkaControlMessage command type
+   * 
+ */ public enum CommandType implements com.google.protobuf.ProtocolMessageEnum { + /** + * ASSOCIATE = 1; + */ ASSOCIATE(0, 1), + /** + * DISASSOCIATE = 2; + */ DISASSOCIATE(1, 2), + /** + * HEARTBEAT = 3; + */ HEARTBEAT(2, 3), + /** + * DISASSOCIATE_SHUTTING_DOWN = 4; + * + *
+     * Remote system is going down and will not accepts new connections
+     * 
+ */ DISASSOCIATE_SHUTTING_DOWN(3, 4), + /** + * DISASSOCIATE_QUARANTINED = 5; + * + *
+     * Remote system refused the association since the current system is quarantined
+     * 
+ */ DISASSOCIATE_QUARANTINED(4, 5), ; - + + /** + * ASSOCIATE = 1; + */ public static final int ASSOCIATE_VALUE = 1; + /** + * DISASSOCIATE = 2; + */ public static final int DISASSOCIATE_VALUE = 2; + /** + * HEARTBEAT = 3; + */ public static final int HEARTBEAT_VALUE = 3; + /** + * DISASSOCIATE_SHUTTING_DOWN = 4; + * + *
+     * Remote system is going down and will not accepts new connections
+     * 
+ */ public static final int DISASSOCIATE_SHUTTING_DOWN_VALUE = 4; + /** + * DISASSOCIATE_QUARANTINED = 5; + * + *
+     * Remote system refused the association since the current system is quarantined
+     * 
+ */ public static final int DISASSOCIATE_QUARANTINED_VALUE = 5; - - + + public final int getNumber() { return value; } - + public static CommandType valueOf(int value) { switch (value) { case 1: return ASSOCIATE; @@ -36,7 +90,7 @@ public final class WireFormats { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -48,7 +102,7 @@ public final class WireFormats { return CommandType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -61,11 +115,9 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.getDescriptor().getEnumTypes().get(0); } - - private static final CommandType[] VALUES = { - ASSOCIATE, DISASSOCIATE, HEARTBEAT, DISASSOCIATE_SHUTTING_DOWN, DISASSOCIATE_QUARANTINED, - }; - + + private static final CommandType[] VALUES = values(); + public static CommandType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -74,86 +126,210 @@ public final class WireFormats { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private CommandType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:CommandType) } - + public interface AckAndEnvelopeContainerOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional .AcknowledgementInfo ack = 1; + /** + * optional .AcknowledgementInfo ack = 1; + */ boolean hasAck(); + /** + * optional .AcknowledgementInfo ack = 1; + */ akka.remote.WireFormats.AcknowledgementInfo getAck(); + /** + * optional .AcknowledgementInfo ack = 1; + */ akka.remote.WireFormats.AcknowledgementInfoOrBuilder getAckOrBuilder(); - + // optional .RemoteEnvelope envelope = 2; + /** + * optional .RemoteEnvelope envelope = 2; + */ boolean hasEnvelope(); + /** + * optional .RemoteEnvelope envelope = 2; + */ akka.remote.WireFormats.RemoteEnvelope getEnvelope(); + /** + * optional .RemoteEnvelope envelope = 2; + */ akka.remote.WireFormats.RemoteEnvelopeOrBuilder getEnvelopeOrBuilder(); } + /** + * Protobuf type {@code AckAndEnvelopeContainer} + */ public static final class AckAndEnvelopeContainer extends com.google.protobuf.GeneratedMessage implements AckAndEnvelopeContainerOrBuilder { // Use AckAndEnvelopeContainer.newBuilder() to construct. - private AckAndEnvelopeContainer(Builder builder) { + private AckAndEnvelopeContainer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AckAndEnvelopeContainer(boolean noInit) {} - + private AckAndEnvelopeContainer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AckAndEnvelopeContainer defaultInstance; public static AckAndEnvelopeContainer getDefaultInstance() { return defaultInstance; } - + public AckAndEnvelopeContainer getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AckAndEnvelopeContainer( + 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 10: { + akka.remote.WireFormats.AcknowledgementInfo.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = ack_.toBuilder(); + } + ack_ = input.readMessage(akka.remote.WireFormats.AcknowledgementInfo.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ack_); + ack_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + akka.remote.WireFormats.RemoteEnvelope.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = envelope_.toBuilder(); + } + envelope_ = input.readMessage(akka.remote.WireFormats.RemoteEnvelope.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(envelope_); + envelope_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AckAndEnvelopeContainer.class, akka.remote.WireFormats.AckAndEnvelopeContainer.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AckAndEnvelopeContainer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AckAndEnvelopeContainer(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // optional .AcknowledgementInfo ack = 1; public static final int ACK_FIELD_NUMBER = 1; private akka.remote.WireFormats.AcknowledgementInfo ack_; + /** + * optional .AcknowledgementInfo ack = 1; + */ public boolean hasAck() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional .AcknowledgementInfo ack = 1; + */ public akka.remote.WireFormats.AcknowledgementInfo getAck() { return ack_; } + /** + * optional .AcknowledgementInfo ack = 1; + */ public akka.remote.WireFormats.AcknowledgementInfoOrBuilder getAckOrBuilder() { return ack_; } - + // optional .RemoteEnvelope envelope = 2; public static final int ENVELOPE_FIELD_NUMBER = 2; private akka.remote.WireFormats.RemoteEnvelope envelope_; + /** + * optional .RemoteEnvelope envelope = 2; + */ public boolean hasEnvelope() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .RemoteEnvelope envelope = 2; + */ public akka.remote.WireFormats.RemoteEnvelope getEnvelope() { return envelope_; } + /** + * optional .RemoteEnvelope envelope = 2; + */ public akka.remote.WireFormats.RemoteEnvelopeOrBuilder getEnvelopeOrBuilder() { return envelope_; } - + private void initFields() { ack_ = akka.remote.WireFormats.AcknowledgementInfo.getDefaultInstance(); envelope_ = akka.remote.WireFormats.RemoteEnvelope.getDefaultInstance(); @@ -162,7 +338,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (hasAck()) { if (!getAck().isInitialized()) { memoizedIsInitialized = 0; @@ -178,7 +354,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -190,12 +366,12 @@ public final class WireFormats { } 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 @@ -209,94 +385,83 @@ public final class WireFormats { 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 akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.AckAndEnvelopeContainer 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AckAndEnvelopeContainer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.AckAndEnvelopeContainer 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 AckAndEnvelopeContainer} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.AckAndEnvelopeContainerOrBuilder { @@ -304,18 +469,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AckAndEnvelopeContainer.class, akka.remote.WireFormats.AckAndEnvelopeContainer.Builder.class); } - + // Construct using akka.remote.WireFormats.AckAndEnvelopeContainer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -328,7 +496,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (ackBuilder_ == null) { @@ -345,20 +513,20 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.AckAndEnvelopeContainer.getDescriptor(); + return akka.remote.WireFormats.internal_static_AckAndEnvelopeContainer_descriptor; } - + public akka.remote.WireFormats.AckAndEnvelopeContainer getDefaultInstanceForType() { return akka.remote.WireFormats.AckAndEnvelopeContainer.getDefaultInstance(); } - + public akka.remote.WireFormats.AckAndEnvelopeContainer build() { akka.remote.WireFormats.AckAndEnvelopeContainer result = buildPartial(); if (!result.isInitialized()) { @@ -366,17 +534,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.AckAndEnvelopeContainer buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.AckAndEnvelopeContainer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.AckAndEnvelopeContainer buildPartial() { akka.remote.WireFormats.AckAndEnvelopeContainer result = new akka.remote.WireFormats.AckAndEnvelopeContainer(this); int from_bitField0_ = bitField0_; @@ -401,7 +559,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.AckAndEnvelopeContainer) { return mergeFrom((akka.remote.WireFormats.AckAndEnvelopeContainer)other); @@ -410,7 +568,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.AckAndEnvelopeContainer other) { if (other == akka.remote.WireFormats.AckAndEnvelopeContainer.getDefaultInstance()) return this; if (other.hasAck()) { @@ -422,7 +580,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (hasAck()) { if (!getAck().isInitialized()) { @@ -438,61 +596,39 @@ public final class WireFormats { } 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: { - akka.remote.WireFormats.AcknowledgementInfo.Builder subBuilder = akka.remote.WireFormats.AcknowledgementInfo.newBuilder(); - if (hasAck()) { - subBuilder.mergeFrom(getAck()); - } - input.readMessage(subBuilder, extensionRegistry); - setAck(subBuilder.buildPartial()); - break; - } - case 18: { - akka.remote.WireFormats.RemoteEnvelope.Builder subBuilder = akka.remote.WireFormats.RemoteEnvelope.newBuilder(); - if (hasEnvelope()) { - subBuilder.mergeFrom(getEnvelope()); - } - input.readMessage(subBuilder, extensionRegistry); - setEnvelope(subBuilder.buildPartial()); - break; - } + akka.remote.WireFormats.AckAndEnvelopeContainer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.AckAndEnvelopeContainer) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // optional .AcknowledgementInfo ack = 1; private akka.remote.WireFormats.AcknowledgementInfo ack_ = akka.remote.WireFormats.AcknowledgementInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AcknowledgementInfo, akka.remote.WireFormats.AcknowledgementInfo.Builder, akka.remote.WireFormats.AcknowledgementInfoOrBuilder> ackBuilder_; + /** + * optional .AcknowledgementInfo ack = 1; + */ public boolean hasAck() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional .AcknowledgementInfo ack = 1; + */ public akka.remote.WireFormats.AcknowledgementInfo getAck() { if (ackBuilder_ == null) { return ack_; @@ -500,6 +636,9 @@ public final class WireFormats { return ackBuilder_.getMessage(); } } + /** + * optional .AcknowledgementInfo ack = 1; + */ public Builder setAck(akka.remote.WireFormats.AcknowledgementInfo value) { if (ackBuilder_ == null) { if (value == null) { @@ -513,6 +652,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * optional .AcknowledgementInfo ack = 1; + */ public Builder setAck( akka.remote.WireFormats.AcknowledgementInfo.Builder builderForValue) { if (ackBuilder_ == null) { @@ -524,6 +666,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * optional .AcknowledgementInfo ack = 1; + */ public Builder mergeAck(akka.remote.WireFormats.AcknowledgementInfo value) { if (ackBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -540,6 +685,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * optional .AcknowledgementInfo ack = 1; + */ public Builder clearAck() { if (ackBuilder_ == null) { ack_ = akka.remote.WireFormats.AcknowledgementInfo.getDefaultInstance(); @@ -550,11 +698,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * optional .AcknowledgementInfo ack = 1; + */ public akka.remote.WireFormats.AcknowledgementInfo.Builder getAckBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAckFieldBuilder().getBuilder(); } + /** + * optional .AcknowledgementInfo ack = 1; + */ public akka.remote.WireFormats.AcknowledgementInfoOrBuilder getAckOrBuilder() { if (ackBuilder_ != null) { return ackBuilder_.getMessageOrBuilder(); @@ -562,6 +716,9 @@ public final class WireFormats { return ack_; } } + /** + * optional .AcknowledgementInfo ack = 1; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AcknowledgementInfo, akka.remote.WireFormats.AcknowledgementInfo.Builder, akka.remote.WireFormats.AcknowledgementInfoOrBuilder> getAckFieldBuilder() { @@ -575,14 +732,20 @@ public final class WireFormats { } return ackBuilder_; } - + // optional .RemoteEnvelope envelope = 2; private akka.remote.WireFormats.RemoteEnvelope envelope_ = akka.remote.WireFormats.RemoteEnvelope.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.RemoteEnvelope, akka.remote.WireFormats.RemoteEnvelope.Builder, akka.remote.WireFormats.RemoteEnvelopeOrBuilder> envelopeBuilder_; + /** + * optional .RemoteEnvelope envelope = 2; + */ public boolean hasEnvelope() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .RemoteEnvelope envelope = 2; + */ public akka.remote.WireFormats.RemoteEnvelope getEnvelope() { if (envelopeBuilder_ == null) { return envelope_; @@ -590,6 +753,9 @@ public final class WireFormats { return envelopeBuilder_.getMessage(); } } + /** + * optional .RemoteEnvelope envelope = 2; + */ public Builder setEnvelope(akka.remote.WireFormats.RemoteEnvelope value) { if (envelopeBuilder_ == null) { if (value == null) { @@ -603,6 +769,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .RemoteEnvelope envelope = 2; + */ public Builder setEnvelope( akka.remote.WireFormats.RemoteEnvelope.Builder builderForValue) { if (envelopeBuilder_ == null) { @@ -614,6 +783,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .RemoteEnvelope envelope = 2; + */ public Builder mergeEnvelope(akka.remote.WireFormats.RemoteEnvelope value) { if (envelopeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -630,6 +802,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .RemoteEnvelope envelope = 2; + */ public Builder clearEnvelope() { if (envelopeBuilder_ == null) { envelope_ = akka.remote.WireFormats.RemoteEnvelope.getDefaultInstance(); @@ -640,11 +815,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * optional .RemoteEnvelope envelope = 2; + */ public akka.remote.WireFormats.RemoteEnvelope.Builder getEnvelopeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEnvelopeFieldBuilder().getBuilder(); } + /** + * optional .RemoteEnvelope envelope = 2; + */ public akka.remote.WireFormats.RemoteEnvelopeOrBuilder getEnvelopeOrBuilder() { if (envelopeBuilder_ != null) { return envelopeBuilder_.getMessageOrBuilder(); @@ -652,6 +833,9 @@ public final class WireFormats { return envelope_; } } + /** + * optional .RemoteEnvelope envelope = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.RemoteEnvelope, akka.remote.WireFormats.RemoteEnvelope.Builder, akka.remote.WireFormats.RemoteEnvelopeOrBuilder> getEnvelopeFieldBuilder() { @@ -665,118 +849,295 @@ public final class WireFormats { } return envelopeBuilder_; } - + // @@protoc_insertion_point(builder_scope:AckAndEnvelopeContainer) } - + static { defaultInstance = new AckAndEnvelopeContainer(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AckAndEnvelopeContainer) } - + public interface RemoteEnvelopeOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .ActorRefData recipient = 1; + /** + * required .ActorRefData recipient = 1; + */ boolean hasRecipient(); + /** + * required .ActorRefData recipient = 1; + */ akka.remote.WireFormats.ActorRefData getRecipient(); + /** + * required .ActorRefData recipient = 1; + */ akka.remote.WireFormats.ActorRefDataOrBuilder getRecipientOrBuilder(); - + // required .SerializedMessage message = 2; + /** + * required .SerializedMessage message = 2; + */ boolean hasMessage(); + /** + * required .SerializedMessage message = 2; + */ akka.remote.WireFormats.SerializedMessage getMessage(); + /** + * required .SerializedMessage message = 2; + */ akka.remote.WireFormats.SerializedMessageOrBuilder getMessageOrBuilder(); - + // optional .ActorRefData sender = 4; + /** + * optional .ActorRefData sender = 4; + */ boolean hasSender(); + /** + * optional .ActorRefData sender = 4; + */ akka.remote.WireFormats.ActorRefData getSender(); + /** + * optional .ActorRefData sender = 4; + */ akka.remote.WireFormats.ActorRefDataOrBuilder getSenderOrBuilder(); - + // optional fixed64 seq = 5; + /** + * optional fixed64 seq = 5; + */ boolean hasSeq(); + /** + * optional fixed64 seq = 5; + */ long getSeq(); } + /** + * Protobuf type {@code RemoteEnvelope} + * + *
+   **
+   * Defines a remote message.
+   * 
+ */ public static final class RemoteEnvelope extends com.google.protobuf.GeneratedMessage implements RemoteEnvelopeOrBuilder { // Use RemoteEnvelope.newBuilder() to construct. - private RemoteEnvelope(Builder builder) { + private RemoteEnvelope(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private RemoteEnvelope(boolean noInit) {} - + private RemoteEnvelope(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final RemoteEnvelope defaultInstance; public static RemoteEnvelope getDefaultInstance() { return defaultInstance; } - + public RemoteEnvelope getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemoteEnvelope( + 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 10: { + akka.remote.WireFormats.ActorRefData.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = recipient_.toBuilder(); + } + recipient_ = input.readMessage(akka.remote.WireFormats.ActorRefData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(recipient_); + recipient_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + akka.remote.WireFormats.SerializedMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(akka.remote.WireFormats.SerializedMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 34: { + akka.remote.WireFormats.ActorRefData.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = sender_.toBuilder(); + } + sender_ = input.readMessage(akka.remote.WireFormats.ActorRefData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sender_); + sender_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 41: { + bitField0_ |= 0x00000008; + seq_ = input.readFixed64(); + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_RemoteEnvelope_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_RemoteEnvelope_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_RemoteEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.RemoteEnvelope.class, akka.remote.WireFormats.RemoteEnvelope.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public RemoteEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoteEnvelope(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required .ActorRefData recipient = 1; public static final int RECIPIENT_FIELD_NUMBER = 1; private akka.remote.WireFormats.ActorRefData recipient_; + /** + * required .ActorRefData recipient = 1; + */ public boolean hasRecipient() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .ActorRefData recipient = 1; + */ public akka.remote.WireFormats.ActorRefData getRecipient() { return recipient_; } + /** + * required .ActorRefData recipient = 1; + */ public akka.remote.WireFormats.ActorRefDataOrBuilder getRecipientOrBuilder() { return recipient_; } - + // required .SerializedMessage message = 2; public static final int MESSAGE_FIELD_NUMBER = 2; private akka.remote.WireFormats.SerializedMessage message_; + /** + * required .SerializedMessage message = 2; + */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .SerializedMessage message = 2; + */ public akka.remote.WireFormats.SerializedMessage getMessage() { return message_; } + /** + * required .SerializedMessage message = 2; + */ public akka.remote.WireFormats.SerializedMessageOrBuilder getMessageOrBuilder() { return message_; } - + // optional .ActorRefData sender = 4; public static final int SENDER_FIELD_NUMBER = 4; private akka.remote.WireFormats.ActorRefData sender_; + /** + * optional .ActorRefData sender = 4; + */ public boolean hasSender() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional .ActorRefData sender = 4; + */ public akka.remote.WireFormats.ActorRefData getSender() { return sender_; } + /** + * optional .ActorRefData sender = 4; + */ public akka.remote.WireFormats.ActorRefDataOrBuilder getSenderOrBuilder() { return sender_; } - + // optional fixed64 seq = 5; public static final int SEQ_FIELD_NUMBER = 5; private long seq_; + /** + * optional fixed64 seq = 5; + */ public boolean hasSeq() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional fixed64 seq = 5; + */ public long getSeq() { return seq_; } - + private void initFields() { recipient_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); message_ = akka.remote.WireFormats.SerializedMessage.getDefaultInstance(); @@ -787,7 +1148,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasRecipient()) { memoizedIsInitialized = 0; return false; @@ -813,7 +1174,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -831,12 +1192,12 @@ public final class WireFormats { } 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 @@ -858,94 +1219,88 @@ public final class WireFormats { 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 akka.remote.WireFormats.RemoteEnvelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.RemoteEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.RemoteEnvelope 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.RemoteEnvelope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.RemoteEnvelope 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 RemoteEnvelope} + * + *
+     **
+     * Defines a remote message.
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.RemoteEnvelopeOrBuilder { @@ -953,18 +1308,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_RemoteEnvelope_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_RemoteEnvelope_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_RemoteEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.RemoteEnvelope.class, akka.remote.WireFormats.RemoteEnvelope.Builder.class); } - + // Construct using akka.remote.WireFormats.RemoteEnvelope.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -978,7 +1336,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (recipientBuilder_ == null) { @@ -1003,20 +1361,20 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000008); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.RemoteEnvelope.getDescriptor(); + return akka.remote.WireFormats.internal_static_RemoteEnvelope_descriptor; } - + public akka.remote.WireFormats.RemoteEnvelope getDefaultInstanceForType() { return akka.remote.WireFormats.RemoteEnvelope.getDefaultInstance(); } - + public akka.remote.WireFormats.RemoteEnvelope build() { akka.remote.WireFormats.RemoteEnvelope result = buildPartial(); if (!result.isInitialized()) { @@ -1024,17 +1382,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.RemoteEnvelope buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.RemoteEnvelope result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.RemoteEnvelope buildPartial() { akka.remote.WireFormats.RemoteEnvelope result = new akka.remote.WireFormats.RemoteEnvelope(this); int from_bitField0_ = bitField0_; @@ -1071,7 +1419,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.RemoteEnvelope) { return mergeFrom((akka.remote.WireFormats.RemoteEnvelope)other); @@ -1080,7 +1428,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.RemoteEnvelope other) { if (other == akka.remote.WireFormats.RemoteEnvelope.getDefaultInstance()) return this; if (other.hasRecipient()) { @@ -1098,7 +1446,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasRecipient()) { @@ -1124,75 +1472,39 @@ public final class WireFormats { } 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: { - akka.remote.WireFormats.ActorRefData.Builder subBuilder = akka.remote.WireFormats.ActorRefData.newBuilder(); - if (hasRecipient()) { - subBuilder.mergeFrom(getRecipient()); - } - input.readMessage(subBuilder, extensionRegistry); - setRecipient(subBuilder.buildPartial()); - break; - } - case 18: { - akka.remote.WireFormats.SerializedMessage.Builder subBuilder = akka.remote.WireFormats.SerializedMessage.newBuilder(); - if (hasMessage()) { - subBuilder.mergeFrom(getMessage()); - } - input.readMessage(subBuilder, extensionRegistry); - setMessage(subBuilder.buildPartial()); - break; - } - case 34: { - akka.remote.WireFormats.ActorRefData.Builder subBuilder = akka.remote.WireFormats.ActorRefData.newBuilder(); - if (hasSender()) { - subBuilder.mergeFrom(getSender()); - } - input.readMessage(subBuilder, extensionRegistry); - setSender(subBuilder.buildPartial()); - break; - } - case 41: { - bitField0_ |= 0x00000008; - seq_ = input.readFixed64(); - break; - } + akka.remote.WireFormats.RemoteEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.RemoteEnvelope) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .ActorRefData recipient = 1; private akka.remote.WireFormats.ActorRefData recipient_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.ActorRefData, akka.remote.WireFormats.ActorRefData.Builder, akka.remote.WireFormats.ActorRefDataOrBuilder> recipientBuilder_; + /** + * required .ActorRefData recipient = 1; + */ public boolean hasRecipient() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .ActorRefData recipient = 1; + */ public akka.remote.WireFormats.ActorRefData getRecipient() { if (recipientBuilder_ == null) { return recipient_; @@ -1200,6 +1512,9 @@ public final class WireFormats { return recipientBuilder_.getMessage(); } } + /** + * required .ActorRefData recipient = 1; + */ public Builder setRecipient(akka.remote.WireFormats.ActorRefData value) { if (recipientBuilder_ == null) { if (value == null) { @@ -1213,6 +1528,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .ActorRefData recipient = 1; + */ public Builder setRecipient( akka.remote.WireFormats.ActorRefData.Builder builderForValue) { if (recipientBuilder_ == null) { @@ -1224,6 +1542,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .ActorRefData recipient = 1; + */ public Builder mergeRecipient(akka.remote.WireFormats.ActorRefData value) { if (recipientBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -1240,6 +1561,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .ActorRefData recipient = 1; + */ public Builder clearRecipient() { if (recipientBuilder_ == null) { recipient_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); @@ -1250,11 +1574,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .ActorRefData recipient = 1; + */ public akka.remote.WireFormats.ActorRefData.Builder getRecipientBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRecipientFieldBuilder().getBuilder(); } + /** + * required .ActorRefData recipient = 1; + */ public akka.remote.WireFormats.ActorRefDataOrBuilder getRecipientOrBuilder() { if (recipientBuilder_ != null) { return recipientBuilder_.getMessageOrBuilder(); @@ -1262,6 +1592,9 @@ public final class WireFormats { return recipient_; } } + /** + * required .ActorRefData recipient = 1; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.ActorRefData, akka.remote.WireFormats.ActorRefData.Builder, akka.remote.WireFormats.ActorRefDataOrBuilder> getRecipientFieldBuilder() { @@ -1275,14 +1608,20 @@ public final class WireFormats { } return recipientBuilder_; } - + // required .SerializedMessage message = 2; private akka.remote.WireFormats.SerializedMessage message_ = akka.remote.WireFormats.SerializedMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.SerializedMessage, akka.remote.WireFormats.SerializedMessage.Builder, akka.remote.WireFormats.SerializedMessageOrBuilder> messageBuilder_; + /** + * required .SerializedMessage message = 2; + */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .SerializedMessage message = 2; + */ public akka.remote.WireFormats.SerializedMessage getMessage() { if (messageBuilder_ == null) { return message_; @@ -1290,6 +1629,9 @@ public final class WireFormats { return messageBuilder_.getMessage(); } } + /** + * required .SerializedMessage message = 2; + */ public Builder setMessage(akka.remote.WireFormats.SerializedMessage value) { if (messageBuilder_ == null) { if (value == null) { @@ -1303,6 +1645,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * required .SerializedMessage message = 2; + */ public Builder setMessage( akka.remote.WireFormats.SerializedMessage.Builder builderForValue) { if (messageBuilder_ == null) { @@ -1314,6 +1659,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * required .SerializedMessage message = 2; + */ public Builder mergeMessage(akka.remote.WireFormats.SerializedMessage value) { if (messageBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -1330,6 +1678,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * required .SerializedMessage message = 2; + */ public Builder clearMessage() { if (messageBuilder_ == null) { message_ = akka.remote.WireFormats.SerializedMessage.getDefaultInstance(); @@ -1340,11 +1691,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * required .SerializedMessage message = 2; + */ public akka.remote.WireFormats.SerializedMessage.Builder getMessageBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMessageFieldBuilder().getBuilder(); } + /** + * required .SerializedMessage message = 2; + */ public akka.remote.WireFormats.SerializedMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); @@ -1352,6 +1709,9 @@ public final class WireFormats { return message_; } } + /** + * required .SerializedMessage message = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.SerializedMessage, akka.remote.WireFormats.SerializedMessage.Builder, akka.remote.WireFormats.SerializedMessageOrBuilder> getMessageFieldBuilder() { @@ -1365,14 +1725,20 @@ public final class WireFormats { } return messageBuilder_; } - + // optional .ActorRefData sender = 4; private akka.remote.WireFormats.ActorRefData sender_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.ActorRefData, akka.remote.WireFormats.ActorRefData.Builder, akka.remote.WireFormats.ActorRefDataOrBuilder> senderBuilder_; + /** + * optional .ActorRefData sender = 4; + */ public boolean hasSender() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional .ActorRefData sender = 4; + */ public akka.remote.WireFormats.ActorRefData getSender() { if (senderBuilder_ == null) { return sender_; @@ -1380,6 +1746,9 @@ public final class WireFormats { return senderBuilder_.getMessage(); } } + /** + * optional .ActorRefData sender = 4; + */ public Builder setSender(akka.remote.WireFormats.ActorRefData value) { if (senderBuilder_ == null) { if (value == null) { @@ -1393,6 +1762,9 @@ public final class WireFormats { bitField0_ |= 0x00000004; return this; } + /** + * optional .ActorRefData sender = 4; + */ public Builder setSender( akka.remote.WireFormats.ActorRefData.Builder builderForValue) { if (senderBuilder_ == null) { @@ -1404,6 +1776,9 @@ public final class WireFormats { bitField0_ |= 0x00000004; return this; } + /** + * optional .ActorRefData sender = 4; + */ public Builder mergeSender(akka.remote.WireFormats.ActorRefData value) { if (senderBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && @@ -1420,6 +1795,9 @@ public final class WireFormats { bitField0_ |= 0x00000004; return this; } + /** + * optional .ActorRefData sender = 4; + */ public Builder clearSender() { if (senderBuilder_ == null) { sender_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); @@ -1430,11 +1808,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000004); return this; } + /** + * optional .ActorRefData sender = 4; + */ public akka.remote.WireFormats.ActorRefData.Builder getSenderBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSenderFieldBuilder().getBuilder(); } + /** + * optional .ActorRefData sender = 4; + */ public akka.remote.WireFormats.ActorRefDataOrBuilder getSenderOrBuilder() { if (senderBuilder_ != null) { return senderBuilder_.getMessageOrBuilder(); @@ -1442,6 +1826,9 @@ public final class WireFormats { return sender_; } } + /** + * optional .ActorRefData sender = 4; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.ActorRefData, akka.remote.WireFormats.ActorRefData.Builder, akka.remote.WireFormats.ActorRefDataOrBuilder> getSenderFieldBuilder() { @@ -1455,113 +1842,246 @@ public final class WireFormats { } return senderBuilder_; } - + // optional fixed64 seq = 5; private long seq_ ; + /** + * optional fixed64 seq = 5; + */ public boolean hasSeq() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional fixed64 seq = 5; + */ public long getSeq() { return seq_; } + /** + * optional fixed64 seq = 5; + */ public Builder setSeq(long value) { bitField0_ |= 0x00000008; seq_ = value; onChanged(); return this; } + /** + * optional fixed64 seq = 5; + */ public Builder clearSeq() { bitField0_ = (bitField0_ & ~0x00000008); seq_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RemoteEnvelope) } - + static { defaultInstance = new RemoteEnvelope(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RemoteEnvelope) } - + public interface AcknowledgementInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required fixed64 cumulativeAck = 1; + /** + * required fixed64 cumulativeAck = 1; + */ boolean hasCumulativeAck(); + /** + * required fixed64 cumulativeAck = 1; + */ long getCumulativeAck(); - + // repeated fixed64 nacks = 2; + /** + * repeated fixed64 nacks = 2; + */ java.util.List getNacksList(); + /** + * repeated fixed64 nacks = 2; + */ int getNacksCount(); + /** + * repeated fixed64 nacks = 2; + */ long getNacks(int index); } + /** + * Protobuf type {@code AcknowledgementInfo} + */ public static final class AcknowledgementInfo extends com.google.protobuf.GeneratedMessage implements AcknowledgementInfoOrBuilder { // Use AcknowledgementInfo.newBuilder() to construct. - private AcknowledgementInfo(Builder builder) { + private AcknowledgementInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AcknowledgementInfo(boolean noInit) {} - + private AcknowledgementInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AcknowledgementInfo defaultInstance; public static AcknowledgementInfo getDefaultInstance() { return defaultInstance; } - + public AcknowledgementInfo getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AcknowledgementInfo( + 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: { + bitField0_ |= 0x00000001; + cumulativeAck_ = input.readFixed64(); + break; + } + case 17: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + nacks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + nacks_.add(input.readFixed64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + nacks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + nacks_.add(input.readFixed64()); + } + 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_ & 0x00000002) == 0x00000002)) { + nacks_ = java.util.Collections.unmodifiableList(nacks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_AcknowledgementInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AcknowledgementInfo_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AcknowledgementInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AcknowledgementInfo.class, akka.remote.WireFormats.AcknowledgementInfo.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AcknowledgementInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcknowledgementInfo(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required fixed64 cumulativeAck = 1; public static final int CUMULATIVEACK_FIELD_NUMBER = 1; private long cumulativeAck_; + /** + * required fixed64 cumulativeAck = 1; + */ public boolean hasCumulativeAck() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required fixed64 cumulativeAck = 1; + */ public long getCumulativeAck() { return cumulativeAck_; } - + // repeated fixed64 nacks = 2; public static final int NACKS_FIELD_NUMBER = 2; private java.util.List nacks_; + /** + * repeated fixed64 nacks = 2; + */ public java.util.List getNacksList() { return nacks_; } + /** + * repeated fixed64 nacks = 2; + */ public int getNacksCount() { return nacks_.size(); } + /** + * repeated fixed64 nacks = 2; + */ public long getNacks(int index) { return nacks_.get(index); } - + private void initFields() { cumulativeAck_ = 0L; - nacks_ = java.util.Collections.emptyList();; + nacks_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasCumulativeAck()) { memoizedIsInitialized = 0; return false; @@ -1569,7 +2089,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -1581,12 +2101,12 @@ public final class WireFormats { } 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 @@ -1602,94 +2122,83 @@ public final class WireFormats { 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 akka.remote.WireFormats.AcknowledgementInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AcknowledgementInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.AcknowledgementInfo 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AcknowledgementInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.AcknowledgementInfo 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 AcknowledgementInfo} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.AcknowledgementInfoOrBuilder { @@ -1697,18 +2206,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_AcknowledgementInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AcknowledgementInfo_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AcknowledgementInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AcknowledgementInfo.class, akka.remote.WireFormats.AcknowledgementInfo.Builder.class); } - + // Construct using akka.remote.WireFormats.AcknowledgementInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1719,29 +2231,29 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); cumulativeAck_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); - nacks_ = java.util.Collections.emptyList();; + nacks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.AcknowledgementInfo.getDescriptor(); + return akka.remote.WireFormats.internal_static_AcknowledgementInfo_descriptor; } - + public akka.remote.WireFormats.AcknowledgementInfo getDefaultInstanceForType() { return akka.remote.WireFormats.AcknowledgementInfo.getDefaultInstance(); } - + public akka.remote.WireFormats.AcknowledgementInfo build() { akka.remote.WireFormats.AcknowledgementInfo result = buildPartial(); if (!result.isInitialized()) { @@ -1749,17 +2261,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.AcknowledgementInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.AcknowledgementInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.AcknowledgementInfo buildPartial() { akka.remote.WireFormats.AcknowledgementInfo result = new akka.remote.WireFormats.AcknowledgementInfo(this); int from_bitField0_ = bitField0_; @@ -1777,7 +2279,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.AcknowledgementInfo) { return mergeFrom((akka.remote.WireFormats.AcknowledgementInfo)other); @@ -1786,7 +2288,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.AcknowledgementInfo other) { if (other == akka.remote.WireFormats.AcknowledgementInfo.getDefaultInstance()) return this; if (other.hasCumulativeAck()) { @@ -1805,7 +2307,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasCumulativeAck()) { @@ -1813,94 +2315,89 @@ public final class WireFormats { } 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 9: { - bitField0_ |= 0x00000001; - cumulativeAck_ = input.readFixed64(); - break; - } - case 17: { - ensureNacksIsMutable(); - nacks_.add(input.readFixed64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - addNacks(input.readFixed64()); - } - input.popLimit(limit); - break; - } + akka.remote.WireFormats.AcknowledgementInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.AcknowledgementInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required fixed64 cumulativeAck = 1; private long cumulativeAck_ ; + /** + * required fixed64 cumulativeAck = 1; + */ public boolean hasCumulativeAck() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required fixed64 cumulativeAck = 1; + */ public long getCumulativeAck() { return cumulativeAck_; } + /** + * required fixed64 cumulativeAck = 1; + */ public Builder setCumulativeAck(long value) { bitField0_ |= 0x00000001; cumulativeAck_ = value; onChanged(); return this; } + /** + * required fixed64 cumulativeAck = 1; + */ public Builder clearCumulativeAck() { bitField0_ = (bitField0_ & ~0x00000001); cumulativeAck_ = 0L; onChanged(); return this; } - + // repeated fixed64 nacks = 2; - private java.util.List nacks_ = java.util.Collections.emptyList();; + private java.util.List nacks_ = java.util.Collections.emptyList(); private void ensureNacksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { nacks_ = new java.util.ArrayList(nacks_); bitField0_ |= 0x00000002; } } + /** + * repeated fixed64 nacks = 2; + */ public java.util.List getNacksList() { return java.util.Collections.unmodifiableList(nacks_); } + /** + * repeated fixed64 nacks = 2; + */ public int getNacksCount() { return nacks_.size(); } + /** + * repeated fixed64 nacks = 2; + */ public long getNacks(int index) { return nacks_.get(index); } + /** + * repeated fixed64 nacks = 2; + */ public Builder setNacks( int index, long value) { ensureNacksIsMutable(); @@ -1908,12 +2405,18 @@ public final class WireFormats { onChanged(); return this; } + /** + * repeated fixed64 nacks = 2; + */ public Builder addNacks(long value) { ensureNacksIsMutable(); nacks_.add(value); onChanged(); return this; } + /** + * repeated fixed64 nacks = 2; + */ public Builder addAllNacks( java.lang.Iterable values) { ensureNacksIsMutable(); @@ -1921,92 +2424,190 @@ public final class WireFormats { onChanged(); return this; } + /** + * repeated fixed64 nacks = 2; + */ public Builder clearNacks() { - nacks_ = java.util.Collections.emptyList();; + nacks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:AcknowledgementInfo) } - + static { defaultInstance = new AcknowledgementInfo(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AcknowledgementInfo) } - + public interface ActorRefDataOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string path = 1; + /** + * required string path = 1; + */ boolean hasPath(); - String getPath(); + /** + * required string path = 1; + */ + java.lang.String getPath(); + /** + * required string path = 1; + */ + com.google.protobuf.ByteString + getPathBytes(); } + /** + * Protobuf type {@code ActorRefData} + * + *
+   **
+   * Defines a remote ActorRef that "remembers" and uses its original Actor instance
+   * on the original node.
+   * 
+ */ public static final class ActorRefData extends com.google.protobuf.GeneratedMessage implements ActorRefDataOrBuilder { // Use ActorRefData.newBuilder() to construct. - private ActorRefData(Builder builder) { + private ActorRefData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private ActorRefData(boolean noInit) {} - + private ActorRefData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final ActorRefData defaultInstance; public static ActorRefData getDefaultInstance() { return defaultInstance; } - + public ActorRefData getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActorRefData( + 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 10: { + bitField0_ |= 0x00000001; + path_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_ActorRefData_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_ActorRefData_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_ActorRefData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.ActorRefData.class, akka.remote.WireFormats.ActorRefData.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ActorRefData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActorRefData(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required string path = 1; public static final int PATH_FIELD_NUMBER = 1; private java.lang.Object path_; + /** + * required string path = 1; + */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getPath() { + /** + * required string path = 1; + */ + public java.lang.String getPath() { java.lang.Object ref = path_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { path_ = s; } return s; } } - private com.google.protobuf.ByteString getPathBytes() { + /** + * required string path = 1; + */ + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { path_ = ""; } @@ -2014,7 +2615,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasPath()) { memoizedIsInitialized = 0; return false; @@ -2022,7 +2623,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2031,12 +2632,12 @@ public final class WireFormats { } 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 @@ -2046,94 +2647,89 @@ public final class WireFormats { 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 akka.remote.WireFormats.ActorRefData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.ActorRefData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.ActorRefData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.ActorRefData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.ActorRefData parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.ActorRefData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.ActorRefData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.ActorRefData 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.ActorRefData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.ActorRefData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.ActorRefData 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 ActorRefData} + * + *
+     **
+     * Defines a remote ActorRef that "remembers" and uses its original Actor instance
+     * on the original node.
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.ActorRefDataOrBuilder { @@ -2141,18 +2737,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_ActorRefData_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_ActorRefData_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_ActorRefData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.ActorRefData.class, akka.remote.WireFormats.ActorRefData.Builder.class); } - + // Construct using akka.remote.WireFormats.ActorRefData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2163,27 +2762,27 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.ActorRefData.getDescriptor(); + return akka.remote.WireFormats.internal_static_ActorRefData_descriptor; } - + public akka.remote.WireFormats.ActorRefData getDefaultInstanceForType() { return akka.remote.WireFormats.ActorRefData.getDefaultInstance(); } - + public akka.remote.WireFormats.ActorRefData build() { akka.remote.WireFormats.ActorRefData result = buildPartial(); if (!result.isInitialized()) { @@ -2191,17 +2790,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.ActorRefData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.ActorRefData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.ActorRefData buildPartial() { akka.remote.WireFormats.ActorRefData result = new akka.remote.WireFormats.ActorRefData(this); int from_bitField0_ = bitField0_; @@ -2214,7 +2803,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.ActorRefData) { return mergeFrom((akka.remote.WireFormats.ActorRefData)other); @@ -2223,16 +2812,18 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.ActorRefData other) { if (other == akka.remote.WireFormats.ActorRefData.getDefaultInstance()) return this; if (other.hasPath()) { - setPath(other.getPath()); + bitField0_ |= 0x00000001; + path_ = other.path_; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasPath()) { @@ -2240,57 +2831,69 @@ public final class WireFormats { } 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; - path_ = input.readBytes(); - break; - } + akka.remote.WireFormats.ActorRefData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.ActorRefData) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string path = 1; private java.lang.Object path_ = ""; + /** + * required string path = 1; + */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getPath() { + /** + * required string path = 1; + */ + public java.lang.String getPath() { java.lang.Object ref = path_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setPath(String value) { + /** + * required string path = 1; + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string path = 1; + */ + public Builder setPath( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -2299,399 +2902,126 @@ public final class WireFormats { onChanged(); return this; } + /** + * required string path = 1; + */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } - void setPath(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string path = 1; + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; path_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:ActorRefData) } - + static { defaultInstance = new ActorRefData(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ActorRefData) } - + public interface SerializedMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes message = 1; + /** + * required bytes message = 1; + */ boolean hasMessage(); + /** + * required bytes message = 1; + */ com.google.protobuf.ByteString getMessage(); - + // required int32 serializerId = 2; + /** + * required int32 serializerId = 2; + */ boolean hasSerializerId(); + /** + * required int32 serializerId = 2; + */ int getSerializerId(); - + // optional bytes messageManifest = 3; + /** + * optional bytes messageManifest = 3; + */ boolean hasMessageManifest(); + /** + * optional bytes messageManifest = 3; + */ com.google.protobuf.ByteString getMessageManifest(); } + /** + * Protobuf type {@code SerializedMessage} + * + *
+   **
+   * Defines a message.
+   * 
+ */ public static final class SerializedMessage extends com.google.protobuf.GeneratedMessage implements SerializedMessageOrBuilder { // Use SerializedMessage.newBuilder() to construct. - private SerializedMessage(Builder builder) { + private SerializedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private SerializedMessage(boolean noInit) {} - + private SerializedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final SerializedMessage defaultInstance; public static SerializedMessage getDefaultInstance() { return defaultInstance; } - + public SerializedMessage getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.WireFormats.internal_static_SerializedMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_SerializedMessage_fieldAccessorTable; - } - - private int bitField0_; - // required bytes message = 1; - public static final int MESSAGE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString message_; - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public com.google.protobuf.ByteString getMessage() { - return message_; - } - - // required int32 serializerId = 2; - public static final int SERIALIZERID_FIELD_NUMBER = 2; - private int serializerId_; - public boolean hasSerializerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public int getSerializerId() { - return serializerId_; - } - - // optional bytes messageManifest = 3; - public static final int MESSAGEMANIFEST_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString messageManifest_; - public boolean hasMessageManifest() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public com.google.protobuf.ByteString getMessageManifest() { - return messageManifest_; - } - - private void initFields() { - message_ = com.google.protobuf.ByteString.EMPTY; - serializerId_ = 0; - messageManifest_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasMessage()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasSerializerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, message_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, serializerId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, messageManifest_); - } - 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, message_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, serializerId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, messageManifest_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; + + private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public static akka.remote.WireFormats.SerializedMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static akka.remote.WireFormats.SerializedMessage 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 akka.remote.WireFormats.SerializedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.WireFormats.SerializedMessage parseFrom( + private SerializedMessage( 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(akka.remote.WireFormats.SerializedMessage 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 akka.remote.WireFormats.SerializedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.WireFormats.internal_static_SerializedMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_SerializedMessage_fieldAccessorTable; - } - - // Construct using akka.remote.WireFormats.SerializedMessage.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(); - message_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serializerId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - messageManifest_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return akka.remote.WireFormats.SerializedMessage.getDescriptor(); - } - - public akka.remote.WireFormats.SerializedMessage getDefaultInstanceForType() { - return akka.remote.WireFormats.SerializedMessage.getDefaultInstance(); - } - - public akka.remote.WireFormats.SerializedMessage build() { - akka.remote.WireFormats.SerializedMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private akka.remote.WireFormats.SerializedMessage buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.SerializedMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public akka.remote.WireFormats.SerializedMessage buildPartial() { - akka.remote.WireFormats.SerializedMessage result = new akka.remote.WireFormats.SerializedMessage(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.serializerId_ = serializerId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.messageManifest_ = messageManifest_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof akka.remote.WireFormats.SerializedMessage) { - return mergeFrom((akka.remote.WireFormats.SerializedMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(akka.remote.WireFormats.SerializedMessage other) { - if (other == akka.remote.WireFormats.SerializedMessage.getDefaultInstance()) return this; - if (other.hasMessage()) { - setMessage(other.getMessage()); - } - if (other.hasSerializerId()) { - setSerializerId(other.getSerializerId()); - } - if (other.hasMessageManifest()) { - setMessageManifest(other.getMessageManifest()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasMessage()) { - - return false; - } - if (!hasSerializerId()) { - - return false; - } - 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) { + 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: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; + break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; } break; } @@ -2712,18 +3042,391 @@ public final class WireFormats { } } } + } 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.WireFormats.internal_static_SerializedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.WireFormats.internal_static_SerializedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.SerializedMessage.class, akka.remote.WireFormats.SerializedMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public SerializedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SerializedMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required bytes message = 1; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString message_; + /** + * required bytes message = 1; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required bytes message = 1; + */ + public com.google.protobuf.ByteString getMessage() { + return message_; + } + + // required int32 serializerId = 2; + public static final int SERIALIZERID_FIELD_NUMBER = 2; + private int serializerId_; + /** + * required int32 serializerId = 2; + */ + public boolean hasSerializerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 serializerId = 2; + */ + public int getSerializerId() { + return serializerId_; + } + + // optional bytes messageManifest = 3; + public static final int MESSAGEMANIFEST_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString messageManifest_; + /** + * optional bytes messageManifest = 3; + */ + public boolean hasMessageManifest() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes messageManifest = 3; + */ + public com.google.protobuf.ByteString getMessageManifest() { + return messageManifest_; + } + + private void initFields() { + message_ = com.google.protobuf.ByteString.EMPTY; + serializerId_ = 0; + messageManifest_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasMessage()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSerializerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, message_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, serializerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, messageManifest_); + } + 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, message_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, serializerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, messageManifest_); + } + 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 akka.remote.WireFormats.SerializedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.WireFormats.SerializedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.WireFormats.SerializedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.WireFormats.SerializedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.WireFormats.SerializedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.WireFormats.SerializedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static akka.remote.WireFormats.SerializedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static akka.remote.WireFormats.SerializedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static akka.remote.WireFormats.SerializedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.WireFormats.SerializedMessage 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(akka.remote.WireFormats.SerializedMessage 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 SerializedMessage} + * + *
+     **
+     * Defines a message.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements akka.remote.WireFormats.SerializedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.WireFormats.internal_static_SerializedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.WireFormats.internal_static_SerializedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.SerializedMessage.class, akka.remote.WireFormats.SerializedMessage.Builder.class); + } + + // Construct using akka.remote.WireFormats.SerializedMessage.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(); + message_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serializerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + messageManifest_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return akka.remote.WireFormats.internal_static_SerializedMessage_descriptor; + } + + public akka.remote.WireFormats.SerializedMessage getDefaultInstanceForType() { + return akka.remote.WireFormats.SerializedMessage.getDefaultInstance(); + } + + public akka.remote.WireFormats.SerializedMessage build() { + akka.remote.WireFormats.SerializedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public akka.remote.WireFormats.SerializedMessage buildPartial() { + akka.remote.WireFormats.SerializedMessage result = new akka.remote.WireFormats.SerializedMessage(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.serializerId_ = serializerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.messageManifest_ = messageManifest_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof akka.remote.WireFormats.SerializedMessage) { + return mergeFrom((akka.remote.WireFormats.SerializedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(akka.remote.WireFormats.SerializedMessage other) { + if (other == akka.remote.WireFormats.SerializedMessage.getDefaultInstance()) return this; + if (other.hasMessage()) { + setMessage(other.getMessage()); + } + if (other.hasSerializerId()) { + setSerializerId(other.getSerializerId()); + } + if (other.hasMessageManifest()) { + setMessageManifest(other.getMessageManifest()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasMessage()) { + + return false; + } + if (!hasSerializerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.remote.WireFormats.SerializedMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.SerializedMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private int bitField0_; - + // required bytes message = 1; private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes message = 1; + */ public boolean hasMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes message = 1; + */ public com.google.protobuf.ByteString getMessage() { return message_; } + /** + * required bytes message = 1; + */ public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -2733,42 +3436,66 @@ public final class WireFormats { onChanged(); return this; } + /** + * required bytes message = 1; + */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000001); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } - + // required int32 serializerId = 2; private int serializerId_ ; + /** + * required int32 serializerId = 2; + */ public boolean hasSerializerId() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int32 serializerId = 2; + */ public int getSerializerId() { return serializerId_; } + /** + * required int32 serializerId = 2; + */ public Builder setSerializerId(int value) { bitField0_ |= 0x00000002; serializerId_ = value; onChanged(); return this; } + /** + * required int32 serializerId = 2; + */ public Builder clearSerializerId() { bitField0_ = (bitField0_ & ~0x00000002); serializerId_ = 0; onChanged(); return this; } - + // optional bytes messageManifest = 3; private com.google.protobuf.ByteString messageManifest_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes messageManifest = 3; + */ public boolean hasMessageManifest() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional bytes messageManifest = 3; + */ public com.google.protobuf.ByteString getMessageManifest() { return messageManifest_; } + /** + * optional bytes messageManifest = 3; + */ public Builder setMessageManifest(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -2778,146 +3505,336 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional bytes messageManifest = 3; + */ public Builder clearMessageManifest() { bitField0_ = (bitField0_ & ~0x00000004); messageManifest_ = getDefaultInstance().getMessageManifest(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:SerializedMessage) } - + static { defaultInstance = new SerializedMessage(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:SerializedMessage) } - + public interface DaemonMsgCreateDataOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .PropsData props = 1; + /** + * required .PropsData props = 1; + */ boolean hasProps(); + /** + * required .PropsData props = 1; + */ akka.remote.WireFormats.PropsData getProps(); + /** + * required .PropsData props = 1; + */ akka.remote.WireFormats.PropsDataOrBuilder getPropsOrBuilder(); - + // required .DeployData deploy = 2; + /** + * required .DeployData deploy = 2; + */ boolean hasDeploy(); + /** + * required .DeployData deploy = 2; + */ akka.remote.WireFormats.DeployData getDeploy(); + /** + * required .DeployData deploy = 2; + */ akka.remote.WireFormats.DeployDataOrBuilder getDeployOrBuilder(); - + // required string path = 3; + /** + * required string path = 3; + */ boolean hasPath(); - String getPath(); - + /** + * required string path = 3; + */ + java.lang.String getPath(); + /** + * required string path = 3; + */ + com.google.protobuf.ByteString + getPathBytes(); + // required .ActorRefData supervisor = 4; + /** + * required .ActorRefData supervisor = 4; + */ boolean hasSupervisor(); + /** + * required .ActorRefData supervisor = 4; + */ akka.remote.WireFormats.ActorRefData getSupervisor(); + /** + * required .ActorRefData supervisor = 4; + */ akka.remote.WireFormats.ActorRefDataOrBuilder getSupervisorOrBuilder(); } + /** + * Protobuf type {@code DaemonMsgCreateData} + * + *
+   **
+   * Defines akka.remote.DaemonMsgCreate
+   * 
+ */ public static final class DaemonMsgCreateData extends com.google.protobuf.GeneratedMessage implements DaemonMsgCreateDataOrBuilder { // Use DaemonMsgCreateData.newBuilder() to construct. - private DaemonMsgCreateData(Builder builder) { + private DaemonMsgCreateData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private DaemonMsgCreateData(boolean noInit) {} - + private DaemonMsgCreateData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final DaemonMsgCreateData defaultInstance; public static DaemonMsgCreateData getDefaultInstance() { return defaultInstance; } - + public DaemonMsgCreateData getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DaemonMsgCreateData( + 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 10: { + akka.remote.WireFormats.PropsData.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = props_.toBuilder(); + } + props_ = input.readMessage(akka.remote.WireFormats.PropsData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(props_); + props_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + akka.remote.WireFormats.DeployData.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = deploy_.toBuilder(); + } + deploy_ = input.readMessage(akka.remote.WireFormats.DeployData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploy_); + deploy_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + bitField0_ |= 0x00000004; + path_ = input.readBytes(); + break; + } + case 34: { + akka.remote.WireFormats.ActorRefData.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = supervisor_.toBuilder(); + } + supervisor_ = input.readMessage(akka.remote.WireFormats.ActorRefData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(supervisor_); + supervisor_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.DaemonMsgCreateData.class, akka.remote.WireFormats.DaemonMsgCreateData.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DaemonMsgCreateData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DaemonMsgCreateData(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required .PropsData props = 1; public static final int PROPS_FIELD_NUMBER = 1; private akka.remote.WireFormats.PropsData props_; + /** + * required .PropsData props = 1; + */ public boolean hasProps() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .PropsData props = 1; + */ public akka.remote.WireFormats.PropsData getProps() { return props_; } + /** + * required .PropsData props = 1; + */ public akka.remote.WireFormats.PropsDataOrBuilder getPropsOrBuilder() { return props_; } - + // required .DeployData deploy = 2; public static final int DEPLOY_FIELD_NUMBER = 2; private akka.remote.WireFormats.DeployData deploy_; + /** + * required .DeployData deploy = 2; + */ public boolean hasDeploy() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployData getDeploy() { return deploy_; } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployDataOrBuilder getDeployOrBuilder() { return deploy_; } - + // required string path = 3; public static final int PATH_FIELD_NUMBER = 3; private java.lang.Object path_; + /** + * required string path = 3; + */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public String getPath() { + /** + * required string path = 3; + */ + public java.lang.String getPath() { java.lang.Object ref = path_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { path_ = s; } return s; } } - private com.google.protobuf.ByteString getPathBytes() { + /** + * required string path = 3; + */ + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required .ActorRefData supervisor = 4; public static final int SUPERVISOR_FIELD_NUMBER = 4; private akka.remote.WireFormats.ActorRefData supervisor_; + /** + * required .ActorRefData supervisor = 4; + */ public boolean hasSupervisor() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * required .ActorRefData supervisor = 4; + */ public akka.remote.WireFormats.ActorRefData getSupervisor() { return supervisor_; } + /** + * required .ActorRefData supervisor = 4; + */ public akka.remote.WireFormats.ActorRefDataOrBuilder getSupervisorOrBuilder() { return supervisor_; } - + private void initFields() { props_ = akka.remote.WireFormats.PropsData.getDefaultInstance(); deploy_ = akka.remote.WireFormats.DeployData.getDefaultInstance(); @@ -2928,7 +3845,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasProps()) { memoizedIsInitialized = 0; return false; @@ -2960,7 +3877,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2978,12 +3895,12 @@ public final class WireFormats { } 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 @@ -3005,94 +3922,88 @@ public final class WireFormats { 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 akka.remote.WireFormats.DaemonMsgCreateData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.DaemonMsgCreateData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.DaemonMsgCreateData 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.DaemonMsgCreateData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.DaemonMsgCreateData 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 DaemonMsgCreateData} + * + *
+     **
+     * Defines akka.remote.DaemonMsgCreate
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.DaemonMsgCreateDataOrBuilder { @@ -3100,18 +4011,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.DaemonMsgCreateData.class, akka.remote.WireFormats.DaemonMsgCreateData.Builder.class); } - + // Construct using akka.remote.WireFormats.DaemonMsgCreateData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3125,7 +4039,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (propsBuilder_ == null) { @@ -3150,20 +4064,20 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000008); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.DaemonMsgCreateData.getDescriptor(); + return akka.remote.WireFormats.internal_static_DaemonMsgCreateData_descriptor; } - + public akka.remote.WireFormats.DaemonMsgCreateData getDefaultInstanceForType() { return akka.remote.WireFormats.DaemonMsgCreateData.getDefaultInstance(); } - + public akka.remote.WireFormats.DaemonMsgCreateData build() { akka.remote.WireFormats.DaemonMsgCreateData result = buildPartial(); if (!result.isInitialized()) { @@ -3171,17 +4085,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.DaemonMsgCreateData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.DaemonMsgCreateData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.DaemonMsgCreateData buildPartial() { akka.remote.WireFormats.DaemonMsgCreateData result = new akka.remote.WireFormats.DaemonMsgCreateData(this); int from_bitField0_ = bitField0_; @@ -3218,7 +4122,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.DaemonMsgCreateData) { return mergeFrom((akka.remote.WireFormats.DaemonMsgCreateData)other); @@ -3227,7 +4131,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.DaemonMsgCreateData other) { if (other == akka.remote.WireFormats.DaemonMsgCreateData.getDefaultInstance()) return this; if (other.hasProps()) { @@ -3237,7 +4141,9 @@ public final class WireFormats { mergeDeploy(other.getDeploy()); } if (other.hasPath()) { - setPath(other.getPath()); + bitField0_ |= 0x00000004; + path_ = other.path_; + onChanged(); } if (other.hasSupervisor()) { mergeSupervisor(other.getSupervisor()); @@ -3245,7 +4151,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasProps()) { @@ -3277,75 +4183,39 @@ public final class WireFormats { } 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: { - akka.remote.WireFormats.PropsData.Builder subBuilder = akka.remote.WireFormats.PropsData.newBuilder(); - if (hasProps()) { - subBuilder.mergeFrom(getProps()); - } - input.readMessage(subBuilder, extensionRegistry); - setProps(subBuilder.buildPartial()); - break; - } - case 18: { - akka.remote.WireFormats.DeployData.Builder subBuilder = akka.remote.WireFormats.DeployData.newBuilder(); - if (hasDeploy()) { - subBuilder.mergeFrom(getDeploy()); - } - input.readMessage(subBuilder, extensionRegistry); - setDeploy(subBuilder.buildPartial()); - break; - } - case 26: { - bitField0_ |= 0x00000004; - path_ = input.readBytes(); - break; - } - case 34: { - akka.remote.WireFormats.ActorRefData.Builder subBuilder = akka.remote.WireFormats.ActorRefData.newBuilder(); - if (hasSupervisor()) { - subBuilder.mergeFrom(getSupervisor()); - } - input.readMessage(subBuilder, extensionRegistry); - setSupervisor(subBuilder.buildPartial()); - break; - } + akka.remote.WireFormats.DaemonMsgCreateData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.DaemonMsgCreateData) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .PropsData props = 1; private akka.remote.WireFormats.PropsData props_ = akka.remote.WireFormats.PropsData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.PropsData, akka.remote.WireFormats.PropsData.Builder, akka.remote.WireFormats.PropsDataOrBuilder> propsBuilder_; + /** + * required .PropsData props = 1; + */ public boolean hasProps() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .PropsData props = 1; + */ public akka.remote.WireFormats.PropsData getProps() { if (propsBuilder_ == null) { return props_; @@ -3353,6 +4223,9 @@ public final class WireFormats { return propsBuilder_.getMessage(); } } + /** + * required .PropsData props = 1; + */ public Builder setProps(akka.remote.WireFormats.PropsData value) { if (propsBuilder_ == null) { if (value == null) { @@ -3366,6 +4239,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .PropsData props = 1; + */ public Builder setProps( akka.remote.WireFormats.PropsData.Builder builderForValue) { if (propsBuilder_ == null) { @@ -3377,6 +4253,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .PropsData props = 1; + */ public Builder mergeProps(akka.remote.WireFormats.PropsData value) { if (propsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -3393,6 +4272,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .PropsData props = 1; + */ public Builder clearProps() { if (propsBuilder_ == null) { props_ = akka.remote.WireFormats.PropsData.getDefaultInstance(); @@ -3403,11 +4285,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .PropsData props = 1; + */ public akka.remote.WireFormats.PropsData.Builder getPropsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPropsFieldBuilder().getBuilder(); } + /** + * required .PropsData props = 1; + */ public akka.remote.WireFormats.PropsDataOrBuilder getPropsOrBuilder() { if (propsBuilder_ != null) { return propsBuilder_.getMessageOrBuilder(); @@ -3415,6 +4303,9 @@ public final class WireFormats { return props_; } } + /** + * required .PropsData props = 1; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.PropsData, akka.remote.WireFormats.PropsData.Builder, akka.remote.WireFormats.PropsDataOrBuilder> getPropsFieldBuilder() { @@ -3428,14 +4319,20 @@ public final class WireFormats { } return propsBuilder_; } - + // required .DeployData deploy = 2; private akka.remote.WireFormats.DeployData deploy_ = akka.remote.WireFormats.DeployData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.DeployData, akka.remote.WireFormats.DeployData.Builder, akka.remote.WireFormats.DeployDataOrBuilder> deployBuilder_; + /** + * required .DeployData deploy = 2; + */ public boolean hasDeploy() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployData getDeploy() { if (deployBuilder_ == null) { return deploy_; @@ -3443,6 +4340,9 @@ public final class WireFormats { return deployBuilder_.getMessage(); } } + /** + * required .DeployData deploy = 2; + */ public Builder setDeploy(akka.remote.WireFormats.DeployData value) { if (deployBuilder_ == null) { if (value == null) { @@ -3456,6 +4356,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * required .DeployData deploy = 2; + */ public Builder setDeploy( akka.remote.WireFormats.DeployData.Builder builderForValue) { if (deployBuilder_ == null) { @@ -3467,6 +4370,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * required .DeployData deploy = 2; + */ public Builder mergeDeploy(akka.remote.WireFormats.DeployData value) { if (deployBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -3483,6 +4389,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * required .DeployData deploy = 2; + */ public Builder clearDeploy() { if (deployBuilder_ == null) { deploy_ = akka.remote.WireFormats.DeployData.getDefaultInstance(); @@ -3493,11 +4402,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployData.Builder getDeployBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDeployFieldBuilder().getBuilder(); } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployDataOrBuilder getDeployOrBuilder() { if (deployBuilder_ != null) { return deployBuilder_.getMessageOrBuilder(); @@ -3505,6 +4420,9 @@ public final class WireFormats { return deploy_; } } + /** + * required .DeployData deploy = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.DeployData, akka.remote.WireFormats.DeployData.Builder, akka.remote.WireFormats.DeployDataOrBuilder> getDeployFieldBuilder() { @@ -3518,23 +4436,50 @@ public final class WireFormats { } return deployBuilder_; } - + // required string path = 3; private java.lang.Object path_ = ""; + /** + * required string path = 3; + */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public String getPath() { + /** + * required string path = 3; + */ + public java.lang.String getPath() { java.lang.Object ref = path_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setPath(String value) { + /** + * required string path = 3; + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string path = 3; + */ + public Builder setPath( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -3543,25 +4488,42 @@ public final class WireFormats { onChanged(); return this; } + /** + * required string path = 3; + */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000004); path_ = getDefaultInstance().getPath(); onChanged(); return this; } - void setPath(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; + /** + * required string path = 3; + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; path_ = value; onChanged(); + return this; } - + // required .ActorRefData supervisor = 4; private akka.remote.WireFormats.ActorRefData supervisor_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.ActorRefData, akka.remote.WireFormats.ActorRefData.Builder, akka.remote.WireFormats.ActorRefDataOrBuilder> supervisorBuilder_; + /** + * required .ActorRefData supervisor = 4; + */ public boolean hasSupervisor() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * required .ActorRefData supervisor = 4; + */ public akka.remote.WireFormats.ActorRefData getSupervisor() { if (supervisorBuilder_ == null) { return supervisor_; @@ -3569,6 +4531,9 @@ public final class WireFormats { return supervisorBuilder_.getMessage(); } } + /** + * required .ActorRefData supervisor = 4; + */ public Builder setSupervisor(akka.remote.WireFormats.ActorRefData value) { if (supervisorBuilder_ == null) { if (value == null) { @@ -3582,6 +4547,9 @@ public final class WireFormats { bitField0_ |= 0x00000008; return this; } + /** + * required .ActorRefData supervisor = 4; + */ public Builder setSupervisor( akka.remote.WireFormats.ActorRefData.Builder builderForValue) { if (supervisorBuilder_ == null) { @@ -3593,6 +4561,9 @@ public final class WireFormats { bitField0_ |= 0x00000008; return this; } + /** + * required .ActorRefData supervisor = 4; + */ public Builder mergeSupervisor(akka.remote.WireFormats.ActorRefData value) { if (supervisorBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && @@ -3609,6 +4580,9 @@ public final class WireFormats { bitField0_ |= 0x00000008; return this; } + /** + * required .ActorRefData supervisor = 4; + */ public Builder clearSupervisor() { if (supervisorBuilder_ == null) { supervisor_ = akka.remote.WireFormats.ActorRefData.getDefaultInstance(); @@ -3619,11 +4593,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000008); return this; } + /** + * required .ActorRefData supervisor = 4; + */ public akka.remote.WireFormats.ActorRefData.Builder getSupervisorBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSupervisorFieldBuilder().getBuilder(); } + /** + * required .ActorRefData supervisor = 4; + */ public akka.remote.WireFormats.ActorRefDataOrBuilder getSupervisorOrBuilder() { if (supervisorBuilder_ != null) { return supervisorBuilder_.getMessageOrBuilder(); @@ -3631,6 +4611,9 @@ public final class WireFormats { return supervisor_; } } + /** + * required .ActorRefData supervisor = 4; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.ActorRefData, akka.remote.WireFormats.ActorRefData.Builder, akka.remote.WireFormats.ActorRefDataOrBuilder> getSupervisorFieldBuilder() { @@ -3644,153 +4627,349 @@ public final class WireFormats { } return supervisorBuilder_; } - + // @@protoc_insertion_point(builder_scope:DaemonMsgCreateData) } - + static { defaultInstance = new DaemonMsgCreateData(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:DaemonMsgCreateData) } - + public interface PropsDataOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .DeployData deploy = 2; + /** + * required .DeployData deploy = 2; + */ boolean hasDeploy(); + /** + * required .DeployData deploy = 2; + */ akka.remote.WireFormats.DeployData getDeploy(); + /** + * required .DeployData deploy = 2; + */ akka.remote.WireFormats.DeployDataOrBuilder getDeployOrBuilder(); - + // required string clazz = 3; + /** + * required string clazz = 3; + */ boolean hasClazz(); - String getClazz(); - + /** + * required string clazz = 3; + */ + java.lang.String getClazz(); + /** + * required string clazz = 3; + */ + com.google.protobuf.ByteString + getClazzBytes(); + // repeated bytes args = 4; + /** + * repeated bytes args = 4; + */ java.util.List getArgsList(); + /** + * repeated bytes args = 4; + */ int getArgsCount(); + /** + * repeated bytes args = 4; + */ com.google.protobuf.ByteString getArgs(int index); - + // repeated string classes = 5; - java.util.List getClassesList(); + /** + * repeated string classes = 5; + */ + java.util.List + getClassesList(); + /** + * repeated string classes = 5; + */ int getClassesCount(); - String getClasses(int index); + /** + * repeated string classes = 5; + */ + java.lang.String getClasses(int index); + /** + * repeated string classes = 5; + */ + com.google.protobuf.ByteString + getClassesBytes(int index); } + /** + * Protobuf type {@code PropsData} + * + *
+   **
+   * Serialization of akka.actor.Props
+   * 
+ */ public static final class PropsData extends com.google.protobuf.GeneratedMessage implements PropsDataOrBuilder { // Use PropsData.newBuilder() to construct. - private PropsData(Builder builder) { + private PropsData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private PropsData(boolean noInit) {} - + private PropsData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final PropsData defaultInstance; public static PropsData getDefaultInstance() { return defaultInstance; } - + public PropsData getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PropsData( + 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 18: { + akka.remote.WireFormats.DeployData.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = deploy_.toBuilder(); + } + deploy_ = input.readMessage(akka.remote.WireFormats.DeployData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploy_); + deploy_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 26: { + bitField0_ |= 0x00000002; + clazz_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + args_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + args_.add(input.readBytes()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + classes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + classes_.add(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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + args_ = java.util.Collections.unmodifiableList(args_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + classes_ = new com.google.protobuf.UnmodifiableLazyStringList(classes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_PropsData_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_PropsData_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_PropsData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.PropsData.class, akka.remote.WireFormats.PropsData.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PropsData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PropsData(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required .DeployData deploy = 2; public static final int DEPLOY_FIELD_NUMBER = 2; private akka.remote.WireFormats.DeployData deploy_; + /** + * required .DeployData deploy = 2; + */ public boolean hasDeploy() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployData getDeploy() { return deploy_; } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployDataOrBuilder getDeployOrBuilder() { return deploy_; } - + // required string clazz = 3; public static final int CLAZZ_FIELD_NUMBER = 3; private java.lang.Object clazz_; + /** + * required string clazz = 3; + */ public boolean hasClazz() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getClazz() { + /** + * required string clazz = 3; + */ + public java.lang.String getClazz() { java.lang.Object ref = clazz_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { clazz_ = s; } return s; } } - private com.google.protobuf.ByteString getClazzBytes() { + /** + * required string clazz = 3; + */ + public com.google.protobuf.ByteString + getClazzBytes() { java.lang.Object ref = clazz_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clazz_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // repeated bytes args = 4; public static final int ARGS_FIELD_NUMBER = 4; private java.util.List args_; + /** + * repeated bytes args = 4; + */ public java.util.List getArgsList() { return args_; } + /** + * repeated bytes args = 4; + */ public int getArgsCount() { return args_.size(); } + /** + * repeated bytes args = 4; + */ public com.google.protobuf.ByteString getArgs(int index) { return args_.get(index); } - + // repeated string classes = 5; public static final int CLASSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList classes_; - public java.util.List + /** + * repeated string classes = 5; + */ + public java.util.List getClassesList() { return classes_; } + /** + * repeated string classes = 5; + */ public int getClassesCount() { return classes_.size(); } - public String getClasses(int index) { + /** + * repeated string classes = 5; + */ + public java.lang.String getClasses(int index) { return classes_.get(index); } - + /** + * repeated string classes = 5; + */ + public com.google.protobuf.ByteString + getClassesBytes(int index) { + return classes_.getByteString(index); + } + private void initFields() { deploy_ = akka.remote.WireFormats.DeployData.getDefaultInstance(); clazz_ = ""; - args_ = java.util.Collections.emptyList();; + args_ = java.util.Collections.emptyList(); classes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasDeploy()) { memoizedIsInitialized = 0; return false; @@ -3806,7 +4985,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -3824,12 +5003,12 @@ public final class WireFormats { } 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 @@ -3861,94 +5040,88 @@ public final class WireFormats { 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 akka.remote.WireFormats.PropsData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.PropsData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.PropsData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.PropsData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.PropsData parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.PropsData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.PropsData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.PropsData 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.PropsData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.PropsData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.PropsData 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 PropsData} + * + *
+     **
+     * Serialization of akka.actor.Props
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.PropsDataOrBuilder { @@ -3956,18 +5129,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_PropsData_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_PropsData_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_PropsData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.PropsData.class, akka.remote.WireFormats.PropsData.Builder.class); } - + // Construct using akka.remote.WireFormats.PropsData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3979,7 +5155,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (deployBuilder_ == null) { @@ -3990,26 +5166,26 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000001); clazz_ = ""; bitField0_ = (bitField0_ & ~0x00000002); - args_ = java.util.Collections.emptyList();; + args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); classes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.PropsData.getDescriptor(); + return akka.remote.WireFormats.internal_static_PropsData_descriptor; } - + public akka.remote.WireFormats.PropsData getDefaultInstanceForType() { return akka.remote.WireFormats.PropsData.getDefaultInstance(); } - + public akka.remote.WireFormats.PropsData build() { akka.remote.WireFormats.PropsData result = buildPartial(); if (!result.isInitialized()) { @@ -4017,17 +5193,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.PropsData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.PropsData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.PropsData buildPartial() { akka.remote.WireFormats.PropsData result = new akka.remote.WireFormats.PropsData(this); int from_bitField0_ = bitField0_; @@ -4059,7 +5225,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.PropsData) { return mergeFrom((akka.remote.WireFormats.PropsData)other); @@ -4068,14 +5234,16 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.PropsData other) { if (other == akka.remote.WireFormats.PropsData.getDefaultInstance()) return this; if (other.hasDeploy()) { mergeDeploy(other.getDeploy()); } if (other.hasClazz()) { - setClazz(other.getClazz()); + bitField0_ |= 0x00000002; + clazz_ = other.clazz_; + onChanged(); } if (!other.args_.isEmpty()) { if (args_.isEmpty()) { @@ -4100,7 +5268,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasDeploy()) { @@ -4116,67 +5284,39 @@ public final class WireFormats { } 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 18: { - akka.remote.WireFormats.DeployData.Builder subBuilder = akka.remote.WireFormats.DeployData.newBuilder(); - if (hasDeploy()) { - subBuilder.mergeFrom(getDeploy()); - } - input.readMessage(subBuilder, extensionRegistry); - setDeploy(subBuilder.buildPartial()); - break; - } - case 26: { - bitField0_ |= 0x00000002; - clazz_ = input.readBytes(); - break; - } - case 34: { - ensureArgsIsMutable(); - args_.add(input.readBytes()); - break; - } - case 42: { - ensureClassesIsMutable(); - classes_.add(input.readBytes()); - break; - } + akka.remote.WireFormats.PropsData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.PropsData) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .DeployData deploy = 2; private akka.remote.WireFormats.DeployData deploy_ = akka.remote.WireFormats.DeployData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.DeployData, akka.remote.WireFormats.DeployData.Builder, akka.remote.WireFormats.DeployDataOrBuilder> deployBuilder_; + /** + * required .DeployData deploy = 2; + */ public boolean hasDeploy() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployData getDeploy() { if (deployBuilder_ == null) { return deploy_; @@ -4184,6 +5324,9 @@ public final class WireFormats { return deployBuilder_.getMessage(); } } + /** + * required .DeployData deploy = 2; + */ public Builder setDeploy(akka.remote.WireFormats.DeployData value) { if (deployBuilder_ == null) { if (value == null) { @@ -4197,6 +5340,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .DeployData deploy = 2; + */ public Builder setDeploy( akka.remote.WireFormats.DeployData.Builder builderForValue) { if (deployBuilder_ == null) { @@ -4208,6 +5354,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .DeployData deploy = 2; + */ public Builder mergeDeploy(akka.remote.WireFormats.DeployData value) { if (deployBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -4224,6 +5373,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .DeployData deploy = 2; + */ public Builder clearDeploy() { if (deployBuilder_ == null) { deploy_ = akka.remote.WireFormats.DeployData.getDefaultInstance(); @@ -4234,11 +5386,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployData.Builder getDeployBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDeployFieldBuilder().getBuilder(); } + /** + * required .DeployData deploy = 2; + */ public akka.remote.WireFormats.DeployDataOrBuilder getDeployOrBuilder() { if (deployBuilder_ != null) { return deployBuilder_.getMessageOrBuilder(); @@ -4246,6 +5404,9 @@ public final class WireFormats { return deploy_; } } + /** + * required .DeployData deploy = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.DeployData, akka.remote.WireFormats.DeployData.Builder, akka.remote.WireFormats.DeployDataOrBuilder> getDeployFieldBuilder() { @@ -4259,23 +5420,50 @@ public final class WireFormats { } return deployBuilder_; } - + // required string clazz = 3; private java.lang.Object clazz_ = ""; + /** + * required string clazz = 3; + */ public boolean hasClazz() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getClazz() { + /** + * required string clazz = 3; + */ + public java.lang.String getClazz() { java.lang.Object ref = clazz_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); clazz_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setClazz(String value) { + /** + * required string clazz = 3; + */ + public com.google.protobuf.ByteString + getClazzBytes() { + java.lang.Object ref = clazz_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clazz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string clazz = 3; + */ + public Builder setClazz( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -4284,36 +5472,59 @@ public final class WireFormats { onChanged(); return this; } + /** + * required string clazz = 3; + */ public Builder clearClazz() { bitField0_ = (bitField0_ & ~0x00000002); clazz_ = getDefaultInstance().getClazz(); onChanged(); return this; } - void setClazz(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * required string clazz = 3; + */ + public Builder setClazzBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; clazz_ = value; onChanged(); + return this; } - + // repeated bytes args = 4; - private java.util.List args_ = java.util.Collections.emptyList();; + private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000004; } } + /** + * repeated bytes args = 4; + */ public java.util.List getArgsList() { return java.util.Collections.unmodifiableList(args_); } + /** + * repeated bytes args = 4; + */ public int getArgsCount() { return args_.size(); } + /** + * repeated bytes args = 4; + */ public com.google.protobuf.ByteString getArgs(int index) { return args_.get(index); } + /** + * repeated bytes args = 4; + */ public Builder setArgs( int index, com.google.protobuf.ByteString value) { if (value == null) { @@ -4324,6 +5535,9 @@ public final class WireFormats { onChanged(); return this; } + /** + * repeated bytes args = 4; + */ public Builder addArgs(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4333,6 +5547,9 @@ public final class WireFormats { onChanged(); return this; } + /** + * repeated bytes args = 4; + */ public Builder addAllArgs( java.lang.Iterable values) { ensureArgsIsMutable(); @@ -4340,13 +5557,16 @@ public final class WireFormats { onChanged(); return this; } + /** + * repeated bytes args = 4; + */ public Builder clearArgs() { - args_ = java.util.Collections.emptyList();; + args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } - + // repeated string classes = 5; private com.google.protobuf.LazyStringList classes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClassesIsMutable() { @@ -4355,18 +5575,37 @@ public final class WireFormats { bitField0_ |= 0x00000008; } } - public java.util.List + /** + * repeated string classes = 5; + */ + public java.util.List getClassesList() { return java.util.Collections.unmodifiableList(classes_); } + /** + * repeated string classes = 5; + */ public int getClassesCount() { return classes_.size(); } - public String getClasses(int index) { + /** + * repeated string classes = 5; + */ + public java.lang.String getClasses(int index) { return classes_.get(index); } + /** + * repeated string classes = 5; + */ + public com.google.protobuf.ByteString + getClassesBytes(int index) { + return classes_.getByteString(index); + } + /** + * repeated string classes = 5; + */ public Builder setClasses( - int index, String value) { + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -4375,7 +5614,11 @@ public final class WireFormats { onChanged(); return this; } - public Builder addClasses(String value) { + /** + * repeated string classes = 5; + */ + public Builder addClasses( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -4384,504 +5627,166 @@ public final class WireFormats { onChanged(); return this; } + /** + * repeated string classes = 5; + */ public Builder addAllClasses( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureClassesIsMutable(); super.addAll(values, classes_); onChanged(); return this; } + /** + * repeated string classes = 5; + */ public Builder clearClasses() { classes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } - void addClasses(com.google.protobuf.ByteString value) { - ensureClassesIsMutable(); + /** + * repeated string classes = 5; + */ + public Builder addClassesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassesIsMutable(); classes_.add(value); onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:PropsData) } - + static { defaultInstance = new PropsData(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:PropsData) } - + public interface DeployDataOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string path = 1; + /** + * required string path = 1; + */ boolean hasPath(); - String getPath(); - + /** + * required string path = 1; + */ + java.lang.String getPath(); + /** + * required string path = 1; + */ + com.google.protobuf.ByteString + getPathBytes(); + // optional bytes config = 2; + /** + * optional bytes config = 2; + */ boolean hasConfig(); + /** + * optional bytes config = 2; + */ com.google.protobuf.ByteString getConfig(); - + // optional bytes routerConfig = 3; + /** + * optional bytes routerConfig = 3; + */ boolean hasRouterConfig(); + /** + * optional bytes routerConfig = 3; + */ com.google.protobuf.ByteString getRouterConfig(); - + // optional bytes scope = 4; + /** + * optional bytes scope = 4; + */ boolean hasScope(); + /** + * optional bytes scope = 4; + */ com.google.protobuf.ByteString getScope(); - + // optional string dispatcher = 5; + /** + * optional string dispatcher = 5; + */ boolean hasDispatcher(); - String getDispatcher(); + /** + * optional string dispatcher = 5; + */ + java.lang.String getDispatcher(); + /** + * optional string dispatcher = 5; + */ + com.google.protobuf.ByteString + getDispatcherBytes(); } + /** + * Protobuf type {@code DeployData} + * + *
+   **
+   * Serialization of akka.actor.Deploy
+   * 
+ */ public static final class DeployData extends com.google.protobuf.GeneratedMessage implements DeployDataOrBuilder { // Use DeployData.newBuilder() to construct. - private DeployData(Builder builder) { + private DeployData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private DeployData(boolean noInit) {} - + private DeployData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final DeployData defaultInstance; public static DeployData getDefaultInstance() { return defaultInstance; } - + public DeployData getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.WireFormats.internal_static_DeployData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_DeployData_fieldAccessorTable; - } - - private int bitField0_; - // required string path = 1; - public static final int PATH_FIELD_NUMBER = 1; - private java.lang.Object path_; - public boolean hasPath() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getPath() { - java.lang.Object ref = path_; - 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)) { - path_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional bytes config = 2; - public static final int CONFIG_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString config_; - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public com.google.protobuf.ByteString getConfig() { - return config_; - } - - // optional bytes routerConfig = 3; - public static final int ROUTERCONFIG_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString routerConfig_; - public boolean hasRouterConfig() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public com.google.protobuf.ByteString getRouterConfig() { - return routerConfig_; - } - - // optional bytes scope = 4; - public static final int SCOPE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString scope_; - public boolean hasScope() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public com.google.protobuf.ByteString getScope() { - return scope_; - } - - // optional string dispatcher = 5; - public static final int DISPATCHER_FIELD_NUMBER = 5; - private java.lang.Object dispatcher_; - public boolean hasDispatcher() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getDispatcher() { - java.lang.Object ref = dispatcher_; - 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)) { - dispatcher_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getDispatcherBytes() { - java.lang.Object ref = dispatcher_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - dispatcher_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - path_ = ""; - config_ = com.google.protobuf.ByteString.EMPTY; - routerConfig_ = com.google.protobuf.ByteString.EMPTY; - scope_ = com.google.protobuf.ByteString.EMPTY; - dispatcher_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasPath()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPathBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, config_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, routerConfig_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, scope_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getDispatcherBytes()); - } - 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, getPathBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, config_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, routerConfig_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, scope_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getDispatcherBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; + + private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public static akka.remote.WireFormats.DeployData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static akka.remote.WireFormats.DeployData 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 akka.remote.WireFormats.DeployData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.WireFormats.DeployData parseFrom( + private DeployData( 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(akka.remote.WireFormats.DeployData 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 akka.remote.WireFormats.DeployDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.WireFormats.internal_static_DeployData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_DeployData_fieldAccessorTable; - } - - // Construct using akka.remote.WireFormats.DeployData.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(); - path_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - config_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - routerConfig_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - scope_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - dispatcher_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return akka.remote.WireFormats.DeployData.getDescriptor(); - } - - public akka.remote.WireFormats.DeployData getDefaultInstanceForType() { - return akka.remote.WireFormats.DeployData.getDefaultInstance(); - } - - public akka.remote.WireFormats.DeployData build() { - akka.remote.WireFormats.DeployData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private akka.remote.WireFormats.DeployData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.DeployData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public akka.remote.WireFormats.DeployData buildPartial() { - akka.remote.WireFormats.DeployData result = new akka.remote.WireFormats.DeployData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.path_ = path_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.config_ = config_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.routerConfig_ = routerConfig_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.scope_ = scope_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.dispatcher_ = dispatcher_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof akka.remote.WireFormats.DeployData) { - return mergeFrom((akka.remote.WireFormats.DeployData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(akka.remote.WireFormats.DeployData other) { - if (other == akka.remote.WireFormats.DeployData.getDefaultInstance()) return this; - if (other.hasPath()) { - setPath(other.getPath()); - } - if (other.hasConfig()) { - setConfig(other.getConfig()); - } - if (other.hasRouterConfig()) { - setRouterConfig(other.getRouterConfig()); - } - if (other.hasScope()) { - setScope(other.getScope()); - } - if (other.hasDispatcher()) { - setDispatcher(other.getDispatcher()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasPath()) { - - return false; - } - 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) { + 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: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; + break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; } break; } @@ -4912,26 +5817,533 @@ public final class WireFormats { } } } + } 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.WireFormats.internal_static_DeployData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.WireFormats.internal_static_DeployData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.DeployData.class, akka.remote.WireFormats.DeployData.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DeployData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployData(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string path = 1; + public static final int PATH_FIELD_NUMBER = 1; + private java.lang.Object path_; + /** + * required string path = 1; + */ + public boolean hasPath() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string path = 1; + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + path_ = s; + } + return s; + } + } + /** + * required string path = 1; + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bytes config = 2; + public static final int CONFIG_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString config_; + /** + * optional bytes config = 2; + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes config = 2; + */ + public com.google.protobuf.ByteString getConfig() { + return config_; + } + + // optional bytes routerConfig = 3; + public static final int ROUTERCONFIG_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString routerConfig_; + /** + * optional bytes routerConfig = 3; + */ + public boolean hasRouterConfig() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes routerConfig = 3; + */ + public com.google.protobuf.ByteString getRouterConfig() { + return routerConfig_; + } + + // optional bytes scope = 4; + public static final int SCOPE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString scope_; + /** + * optional bytes scope = 4; + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bytes scope = 4; + */ + public com.google.protobuf.ByteString getScope() { + return scope_; + } + + // optional string dispatcher = 5; + public static final int DISPATCHER_FIELD_NUMBER = 5; + private java.lang.Object dispatcher_; + /** + * optional string dispatcher = 5; + */ + public boolean hasDispatcher() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string dispatcher = 5; + */ + public java.lang.String getDispatcher() { + java.lang.Object ref = dispatcher_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dispatcher_ = s; + } + return s; + } + } + /** + * optional string dispatcher = 5; + */ + public com.google.protobuf.ByteString + getDispatcherBytes() { + java.lang.Object ref = dispatcher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dispatcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + path_ = ""; + config_ = com.google.protobuf.ByteString.EMPTY; + routerConfig_ = com.google.protobuf.ByteString.EMPTY; + scope_ = com.google.protobuf.ByteString.EMPTY; + dispatcher_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPath()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getPathBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, config_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, routerConfig_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, scope_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, getDispatcherBytes()); + } + 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, getPathBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, config_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, routerConfig_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, scope_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, getDispatcherBytes()); + } + 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 akka.remote.WireFormats.DeployData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.WireFormats.DeployData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.WireFormats.DeployData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.WireFormats.DeployData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.WireFormats.DeployData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.WireFormats.DeployData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static akka.remote.WireFormats.DeployData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static akka.remote.WireFormats.DeployData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static akka.remote.WireFormats.DeployData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.WireFormats.DeployData 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(akka.remote.WireFormats.DeployData 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 DeployData} + * + *
+     **
+     * Serialization of akka.actor.Deploy
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements akka.remote.WireFormats.DeployDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.WireFormats.internal_static_DeployData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.WireFormats.internal_static_DeployData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.DeployData.class, akka.remote.WireFormats.DeployData.Builder.class); + } + + // Construct using akka.remote.WireFormats.DeployData.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(); + path_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + config_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + routerConfig_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + scope_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + dispatcher_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return akka.remote.WireFormats.internal_static_DeployData_descriptor; + } + + public akka.remote.WireFormats.DeployData getDefaultInstanceForType() { + return akka.remote.WireFormats.DeployData.getDefaultInstance(); + } + + public akka.remote.WireFormats.DeployData build() { + akka.remote.WireFormats.DeployData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public akka.remote.WireFormats.DeployData buildPartial() { + akka.remote.WireFormats.DeployData result = new akka.remote.WireFormats.DeployData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.path_ = path_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.config_ = config_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.routerConfig_ = routerConfig_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.scope_ = scope_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.dispatcher_ = dispatcher_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof akka.remote.WireFormats.DeployData) { + return mergeFrom((akka.remote.WireFormats.DeployData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(akka.remote.WireFormats.DeployData other) { + if (other == akka.remote.WireFormats.DeployData.getDefaultInstance()) return this; + if (other.hasPath()) { + bitField0_ |= 0x00000001; + path_ = other.path_; + onChanged(); + } + if (other.hasConfig()) { + setConfig(other.getConfig()); + } + if (other.hasRouterConfig()) { + setRouterConfig(other.getRouterConfig()); + } + if (other.hasScope()) { + setScope(other.getScope()); + } + if (other.hasDispatcher()) { + bitField0_ |= 0x00000010; + dispatcher_ = other.dispatcher_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPath()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.remote.WireFormats.DeployData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.DeployData) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private int bitField0_; - + // required string path = 1; private java.lang.Object path_ = ""; + /** + * required string path = 1; + */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getPath() { + /** + * required string path = 1; + */ + public java.lang.String getPath() { java.lang.Object ref = path_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setPath(String value) { + /** + * required string path = 1; + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string path = 1; + */ + public Builder setPath( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -4940,26 +6352,46 @@ public final class WireFormats { onChanged(); return this; } + /** + * required string path = 1; + */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } - void setPath(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string path = 1; + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; path_ = value; onChanged(); + return this; } - + // optional bytes config = 2; private com.google.protobuf.ByteString config_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes config = 2; + */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional bytes config = 2; + */ public com.google.protobuf.ByteString getConfig() { return config_; } + /** + * optional bytes config = 2; + */ public Builder setConfig(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4969,21 +6401,33 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional bytes config = 2; + */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000002); config_ = getDefaultInstance().getConfig(); onChanged(); return this; } - + // optional bytes routerConfig = 3; private com.google.protobuf.ByteString routerConfig_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes routerConfig = 3; + */ public boolean hasRouterConfig() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional bytes routerConfig = 3; + */ public com.google.protobuf.ByteString getRouterConfig() { return routerConfig_; } + /** + * optional bytes routerConfig = 3; + */ public Builder setRouterConfig(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4993,21 +6437,33 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional bytes routerConfig = 3; + */ public Builder clearRouterConfig() { bitField0_ = (bitField0_ & ~0x00000004); routerConfig_ = getDefaultInstance().getRouterConfig(); onChanged(); return this; } - + // optional bytes scope = 4; private com.google.protobuf.ByteString scope_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes scope = 4; + */ public boolean hasScope() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional bytes scope = 4; + */ public com.google.protobuf.ByteString getScope() { return scope_; } + /** + * optional bytes scope = 4; + */ public Builder setScope(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -5017,29 +6473,59 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional bytes scope = 4; + */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000008); scope_ = getDefaultInstance().getScope(); onChanged(); return this; } - + // optional string dispatcher = 5; private java.lang.Object dispatcher_ = ""; + /** + * optional string dispatcher = 5; + */ public boolean hasDispatcher() { return ((bitField0_ & 0x00000010) == 0x00000010); } - public String getDispatcher() { + /** + * optional string dispatcher = 5; + */ + public java.lang.String getDispatcher() { java.lang.Object ref = dispatcher_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); dispatcher_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setDispatcher(String value) { + /** + * optional string dispatcher = 5; + */ + public com.google.protobuf.ByteString + getDispatcherBytes() { + java.lang.Object ref = dispatcher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dispatcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string dispatcher = 5; + */ + public Builder setDispatcher( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -5048,93 +6534,220 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional string dispatcher = 5; + */ public Builder clearDispatcher() { bitField0_ = (bitField0_ & ~0x00000010); dispatcher_ = getDefaultInstance().getDispatcher(); onChanged(); return this; } - void setDispatcher(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000010; + /** + * optional string dispatcher = 5; + */ + public Builder setDispatcherBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; dispatcher_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:DeployData) } - + static { defaultInstance = new DeployData(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:DeployData) } - + public interface AkkaProtocolMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional bytes payload = 1; + /** + * optional bytes payload = 1; + */ boolean hasPayload(); + /** + * optional bytes payload = 1; + */ com.google.protobuf.ByteString getPayload(); - + // optional .AkkaControlMessage instruction = 2; + /** + * optional .AkkaControlMessage instruction = 2; + */ boolean hasInstruction(); + /** + * optional .AkkaControlMessage instruction = 2; + */ akka.remote.WireFormats.AkkaControlMessage getInstruction(); + /** + * optional .AkkaControlMessage instruction = 2; + */ akka.remote.WireFormats.AkkaControlMessageOrBuilder getInstructionOrBuilder(); } + /** + * Protobuf type {@code AkkaProtocolMessage} + * + *
+   **
+   * Message format of Akka Protocol.
+   * Message contains either a payload or an instruction.
+   * 
+ */ public static final class AkkaProtocolMessage extends com.google.protobuf.GeneratedMessage implements AkkaProtocolMessageOrBuilder { // Use AkkaProtocolMessage.newBuilder() to construct. - private AkkaProtocolMessage(Builder builder) { + private AkkaProtocolMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AkkaProtocolMessage(boolean noInit) {} - + private AkkaProtocolMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AkkaProtocolMessage defaultInstance; public static AkkaProtocolMessage getDefaultInstance() { return defaultInstance; } - + public AkkaProtocolMessage getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AkkaProtocolMessage( + 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 10: { + bitField0_ |= 0x00000001; + payload_ = input.readBytes(); + break; + } + case 18: { + akka.remote.WireFormats.AkkaControlMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = instruction_.toBuilder(); + } + instruction_ = input.readMessage(akka.remote.WireFormats.AkkaControlMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instruction_); + instruction_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AkkaProtocolMessage.class, akka.remote.WireFormats.AkkaProtocolMessage.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AkkaProtocolMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AkkaProtocolMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // optional bytes payload = 1; public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; + /** + * optional bytes payload = 1; + */ public boolean hasPayload() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional bytes payload = 1; + */ public com.google.protobuf.ByteString getPayload() { return payload_; } - + // optional .AkkaControlMessage instruction = 2; public static final int INSTRUCTION_FIELD_NUMBER = 2; private akka.remote.WireFormats.AkkaControlMessage instruction_; + /** + * optional .AkkaControlMessage instruction = 2; + */ public boolean hasInstruction() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .AkkaControlMessage instruction = 2; + */ public akka.remote.WireFormats.AkkaControlMessage getInstruction() { return instruction_; } + /** + * optional .AkkaControlMessage instruction = 2; + */ public akka.remote.WireFormats.AkkaControlMessageOrBuilder getInstructionOrBuilder() { return instruction_; } - + private void initFields() { payload_ = com.google.protobuf.ByteString.EMPTY; instruction_ = akka.remote.WireFormats.AkkaControlMessage.getDefaultInstance(); @@ -5143,7 +6756,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (hasInstruction()) { if (!getInstruction().isInitialized()) { memoizedIsInitialized = 0; @@ -5153,7 +6766,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5165,12 +6778,12 @@ public final class WireFormats { } 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 @@ -5184,94 +6797,89 @@ public final class WireFormats { 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 akka.remote.WireFormats.AkkaProtocolMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AkkaProtocolMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.AkkaProtocolMessage 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AkkaProtocolMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.AkkaProtocolMessage 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 AkkaProtocolMessage} + * + *
+     **
+     * Message format of Akka Protocol.
+     * Message contains either a payload or an instruction.
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.AkkaProtocolMessageOrBuilder { @@ -5279,18 +6887,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AkkaProtocolMessage.class, akka.remote.WireFormats.AkkaProtocolMessage.Builder.class); } - + // Construct using akka.remote.WireFormats.AkkaProtocolMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5302,7 +6913,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; @@ -5315,20 +6926,20 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.AkkaProtocolMessage.getDescriptor(); + return akka.remote.WireFormats.internal_static_AkkaProtocolMessage_descriptor; } - + public akka.remote.WireFormats.AkkaProtocolMessage getDefaultInstanceForType() { return akka.remote.WireFormats.AkkaProtocolMessage.getDefaultInstance(); } - + public akka.remote.WireFormats.AkkaProtocolMessage build() { akka.remote.WireFormats.AkkaProtocolMessage result = buildPartial(); if (!result.isInitialized()) { @@ -5336,17 +6947,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.AkkaProtocolMessage buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.AkkaProtocolMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.AkkaProtocolMessage buildPartial() { akka.remote.WireFormats.AkkaProtocolMessage result = new akka.remote.WireFormats.AkkaProtocolMessage(this); int from_bitField0_ = bitField0_; @@ -5367,7 +6968,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.AkkaProtocolMessage) { return mergeFrom((akka.remote.WireFormats.AkkaProtocolMessage)other); @@ -5376,7 +6977,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.AkkaProtocolMessage other) { if (other == akka.remote.WireFormats.AkkaProtocolMessage.getDefaultInstance()) return this; if (other.hasPayload()) { @@ -5388,7 +6989,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (hasInstruction()) { if (!getInstruction().isInitialized()) { @@ -5398,58 +6999,43 @@ public final class WireFormats { } 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; - payload_ = input.readBytes(); - break; - } - case 18: { - akka.remote.WireFormats.AkkaControlMessage.Builder subBuilder = akka.remote.WireFormats.AkkaControlMessage.newBuilder(); - if (hasInstruction()) { - subBuilder.mergeFrom(getInstruction()); - } - input.readMessage(subBuilder, extensionRegistry); - setInstruction(subBuilder.buildPartial()); - break; - } + akka.remote.WireFormats.AkkaProtocolMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.AkkaProtocolMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // optional bytes payload = 1; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes payload = 1; + */ public boolean hasPayload() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional bytes payload = 1; + */ public com.google.protobuf.ByteString getPayload() { return payload_; } + /** + * optional bytes payload = 1; + */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -5459,20 +7045,29 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional bytes payload = 1; + */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000001); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } - + // optional .AkkaControlMessage instruction = 2; private akka.remote.WireFormats.AkkaControlMessage instruction_ = akka.remote.WireFormats.AkkaControlMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AkkaControlMessage, akka.remote.WireFormats.AkkaControlMessage.Builder, akka.remote.WireFormats.AkkaControlMessageOrBuilder> instructionBuilder_; + /** + * optional .AkkaControlMessage instruction = 2; + */ public boolean hasInstruction() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .AkkaControlMessage instruction = 2; + */ public akka.remote.WireFormats.AkkaControlMessage getInstruction() { if (instructionBuilder_ == null) { return instruction_; @@ -5480,6 +7075,9 @@ public final class WireFormats { return instructionBuilder_.getMessage(); } } + /** + * optional .AkkaControlMessage instruction = 2; + */ public Builder setInstruction(akka.remote.WireFormats.AkkaControlMessage value) { if (instructionBuilder_ == null) { if (value == null) { @@ -5493,6 +7091,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .AkkaControlMessage instruction = 2; + */ public Builder setInstruction( akka.remote.WireFormats.AkkaControlMessage.Builder builderForValue) { if (instructionBuilder_ == null) { @@ -5504,6 +7105,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .AkkaControlMessage instruction = 2; + */ public Builder mergeInstruction(akka.remote.WireFormats.AkkaControlMessage value) { if (instructionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -5520,6 +7124,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .AkkaControlMessage instruction = 2; + */ public Builder clearInstruction() { if (instructionBuilder_ == null) { instruction_ = akka.remote.WireFormats.AkkaControlMessage.getDefaultInstance(); @@ -5530,11 +7137,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * optional .AkkaControlMessage instruction = 2; + */ public akka.remote.WireFormats.AkkaControlMessage.Builder getInstructionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInstructionFieldBuilder().getBuilder(); } + /** + * optional .AkkaControlMessage instruction = 2; + */ public akka.remote.WireFormats.AkkaControlMessageOrBuilder getInstructionOrBuilder() { if (instructionBuilder_ != null) { return instructionBuilder_.getMessageOrBuilder(); @@ -5542,6 +7155,9 @@ public final class WireFormats { return instruction_; } } + /** + * optional .AkkaControlMessage instruction = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AkkaControlMessage, akka.remote.WireFormats.AkkaControlMessage.Builder, akka.remote.WireFormats.AkkaControlMessageOrBuilder> getInstructionFieldBuilder() { @@ -5555,82 +7171,203 @@ public final class WireFormats { } return instructionBuilder_; } - + // @@protoc_insertion_point(builder_scope:AkkaProtocolMessage) } - + static { defaultInstance = new AkkaProtocolMessage(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AkkaProtocolMessage) } - + public interface AkkaControlMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .CommandType commandType = 1; + /** + * required .CommandType commandType = 1; + */ boolean hasCommandType(); + /** + * required .CommandType commandType = 1; + */ akka.remote.WireFormats.CommandType getCommandType(); - + // optional .AkkaHandshakeInfo handshakeInfo = 2; + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ boolean hasHandshakeInfo(); + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ akka.remote.WireFormats.AkkaHandshakeInfo getHandshakeInfo(); + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ akka.remote.WireFormats.AkkaHandshakeInfoOrBuilder getHandshakeInfoOrBuilder(); } + /** + * Protobuf type {@code AkkaControlMessage} + * + *
+   **
+   * Defines some control messages for the remoting
+   * 
+ */ public static final class AkkaControlMessage extends com.google.protobuf.GeneratedMessage implements AkkaControlMessageOrBuilder { // Use AkkaControlMessage.newBuilder() to construct. - private AkkaControlMessage(Builder builder) { + private AkkaControlMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AkkaControlMessage(boolean noInit) {} - + private AkkaControlMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AkkaControlMessage defaultInstance; public static AkkaControlMessage getDefaultInstance() { return defaultInstance; } - + public AkkaControlMessage getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AkkaControlMessage( + 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 8: { + int rawValue = input.readEnum(); + akka.remote.WireFormats.CommandType value = akka.remote.WireFormats.CommandType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + commandType_ = value; + } + break; + } + case 18: { + akka.remote.WireFormats.AkkaHandshakeInfo.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = handshakeInfo_.toBuilder(); + } + handshakeInfo_ = input.readMessage(akka.remote.WireFormats.AkkaHandshakeInfo.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(handshakeInfo_); + handshakeInfo_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_AkkaControlMessage_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AkkaControlMessage_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AkkaControlMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AkkaControlMessage.class, akka.remote.WireFormats.AkkaControlMessage.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AkkaControlMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AkkaControlMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required .CommandType commandType = 1; public static final int COMMANDTYPE_FIELD_NUMBER = 1; private akka.remote.WireFormats.CommandType commandType_; + /** + * required .CommandType commandType = 1; + */ public boolean hasCommandType() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .CommandType commandType = 1; + */ public akka.remote.WireFormats.CommandType getCommandType() { return commandType_; } - + // optional .AkkaHandshakeInfo handshakeInfo = 2; public static final int HANDSHAKEINFO_FIELD_NUMBER = 2; private akka.remote.WireFormats.AkkaHandshakeInfo handshakeInfo_; + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public boolean hasHandshakeInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public akka.remote.WireFormats.AkkaHandshakeInfo getHandshakeInfo() { return handshakeInfo_; } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public akka.remote.WireFormats.AkkaHandshakeInfoOrBuilder getHandshakeInfoOrBuilder() { return handshakeInfo_; } - + private void initFields() { commandType_ = akka.remote.WireFormats.CommandType.ASSOCIATE; handshakeInfo_ = akka.remote.WireFormats.AkkaHandshakeInfo.getDefaultInstance(); @@ -5639,7 +7376,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasCommandType()) { memoizedIsInitialized = 0; return false; @@ -5653,7 +7390,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5665,12 +7402,12 @@ public final class WireFormats { } 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 @@ -5684,94 +7421,88 @@ public final class WireFormats { 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 akka.remote.WireFormats.AkkaControlMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AkkaControlMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.AkkaControlMessage 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AkkaControlMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.AkkaControlMessage 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 AkkaControlMessage} + * + *
+     **
+     * Defines some control messages for the remoting
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.AkkaControlMessageOrBuilder { @@ -5779,18 +7510,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_AkkaControlMessage_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AkkaControlMessage_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AkkaControlMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AkkaControlMessage.class, akka.remote.WireFormats.AkkaControlMessage.Builder.class); } - + // Construct using akka.remote.WireFormats.AkkaControlMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5802,7 +7536,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); commandType_ = akka.remote.WireFormats.CommandType.ASSOCIATE; @@ -5815,20 +7549,20 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.AkkaControlMessage.getDescriptor(); + return akka.remote.WireFormats.internal_static_AkkaControlMessage_descriptor; } - + public akka.remote.WireFormats.AkkaControlMessage getDefaultInstanceForType() { return akka.remote.WireFormats.AkkaControlMessage.getDefaultInstance(); } - + public akka.remote.WireFormats.AkkaControlMessage build() { akka.remote.WireFormats.AkkaControlMessage result = buildPartial(); if (!result.isInitialized()) { @@ -5836,17 +7570,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.AkkaControlMessage buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.AkkaControlMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.AkkaControlMessage buildPartial() { akka.remote.WireFormats.AkkaControlMessage result = new akka.remote.WireFormats.AkkaControlMessage(this); int from_bitField0_ = bitField0_; @@ -5867,7 +7591,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.AkkaControlMessage) { return mergeFrom((akka.remote.WireFormats.AkkaControlMessage)other); @@ -5876,7 +7600,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.AkkaControlMessage other) { if (other == akka.remote.WireFormats.AkkaControlMessage.getDefaultInstance()) return this; if (other.hasCommandType()) { @@ -5888,7 +7612,7 @@ public final class WireFormats { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasCommandType()) { @@ -5902,64 +7626,43 @@ public final class WireFormats { } 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 8: { - int rawValue = input.readEnum(); - akka.remote.WireFormats.CommandType value = akka.remote.WireFormats.CommandType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - commandType_ = value; - } - break; - } - case 18: { - akka.remote.WireFormats.AkkaHandshakeInfo.Builder subBuilder = akka.remote.WireFormats.AkkaHandshakeInfo.newBuilder(); - if (hasHandshakeInfo()) { - subBuilder.mergeFrom(getHandshakeInfo()); - } - input.readMessage(subBuilder, extensionRegistry); - setHandshakeInfo(subBuilder.buildPartial()); - break; - } + akka.remote.WireFormats.AkkaControlMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.AkkaControlMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .CommandType commandType = 1; private akka.remote.WireFormats.CommandType commandType_ = akka.remote.WireFormats.CommandType.ASSOCIATE; + /** + * required .CommandType commandType = 1; + */ public boolean hasCommandType() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .CommandType commandType = 1; + */ public akka.remote.WireFormats.CommandType getCommandType() { return commandType_; } + /** + * required .CommandType commandType = 1; + */ public Builder setCommandType(akka.remote.WireFormats.CommandType value) { if (value == null) { throw new NullPointerException(); @@ -5969,20 +7672,29 @@ public final class WireFormats { onChanged(); return this; } + /** + * required .CommandType commandType = 1; + */ public Builder clearCommandType() { bitField0_ = (bitField0_ & ~0x00000001); commandType_ = akka.remote.WireFormats.CommandType.ASSOCIATE; onChanged(); return this; } - + // optional .AkkaHandshakeInfo handshakeInfo = 2; private akka.remote.WireFormats.AkkaHandshakeInfo handshakeInfo_ = akka.remote.WireFormats.AkkaHandshakeInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AkkaHandshakeInfo, akka.remote.WireFormats.AkkaHandshakeInfo.Builder, akka.remote.WireFormats.AkkaHandshakeInfoOrBuilder> handshakeInfoBuilder_; + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public boolean hasHandshakeInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public akka.remote.WireFormats.AkkaHandshakeInfo getHandshakeInfo() { if (handshakeInfoBuilder_ == null) { return handshakeInfo_; @@ -5990,6 +7702,9 @@ public final class WireFormats { return handshakeInfoBuilder_.getMessage(); } } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public Builder setHandshakeInfo(akka.remote.WireFormats.AkkaHandshakeInfo value) { if (handshakeInfoBuilder_ == null) { if (value == null) { @@ -6003,6 +7718,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public Builder setHandshakeInfo( akka.remote.WireFormats.AkkaHandshakeInfo.Builder builderForValue) { if (handshakeInfoBuilder_ == null) { @@ -6014,6 +7732,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public Builder mergeHandshakeInfo(akka.remote.WireFormats.AkkaHandshakeInfo value) { if (handshakeInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -6030,6 +7751,9 @@ public final class WireFormats { bitField0_ |= 0x00000002; return this; } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public Builder clearHandshakeInfo() { if (handshakeInfoBuilder_ == null) { handshakeInfo_ = akka.remote.WireFormats.AkkaHandshakeInfo.getDefaultInstance(); @@ -6040,11 +7764,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public akka.remote.WireFormats.AkkaHandshakeInfo.Builder getHandshakeInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getHandshakeInfoFieldBuilder().getBuilder(); } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ public akka.remote.WireFormats.AkkaHandshakeInfoOrBuilder getHandshakeInfoOrBuilder() { if (handshakeInfoBuilder_ != null) { return handshakeInfoBuilder_.getMessageOrBuilder(); @@ -6052,6 +7782,9 @@ public final class WireFormats { return handshakeInfo_; } } + /** + * optional .AkkaHandshakeInfo handshakeInfo = 2; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AkkaHandshakeInfo, akka.remote.WireFormats.AkkaHandshakeInfo.Builder, akka.remote.WireFormats.AkkaHandshakeInfoOrBuilder> getHandshakeInfoFieldBuilder() { @@ -6065,118 +7798,255 @@ public final class WireFormats { } return handshakeInfoBuilder_; } - + // @@protoc_insertion_point(builder_scope:AkkaControlMessage) } - + static { defaultInstance = new AkkaControlMessage(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AkkaControlMessage) } - + public interface AkkaHandshakeInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .AddressData origin = 1; + /** + * required .AddressData origin = 1; + */ boolean hasOrigin(); + /** + * required .AddressData origin = 1; + */ akka.remote.WireFormats.AddressData getOrigin(); + /** + * required .AddressData origin = 1; + */ akka.remote.WireFormats.AddressDataOrBuilder getOriginOrBuilder(); - + // required fixed64 uid = 2; + /** + * required fixed64 uid = 2; + */ boolean hasUid(); + /** + * required fixed64 uid = 2; + */ long getUid(); - + // optional string cookie = 3; + /** + * optional string cookie = 3; + */ boolean hasCookie(); - String getCookie(); + /** + * optional string cookie = 3; + */ + java.lang.String getCookie(); + /** + * optional string cookie = 3; + */ + com.google.protobuf.ByteString + getCookieBytes(); } + /** + * Protobuf type {@code AkkaHandshakeInfo} + */ public static final class AkkaHandshakeInfo extends com.google.protobuf.GeneratedMessage implements AkkaHandshakeInfoOrBuilder { // Use AkkaHandshakeInfo.newBuilder() to construct. - private AkkaHandshakeInfo(Builder builder) { + private AkkaHandshakeInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AkkaHandshakeInfo(boolean noInit) {} - + private AkkaHandshakeInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AkkaHandshakeInfo defaultInstance; public static AkkaHandshakeInfo getDefaultInstance() { return defaultInstance; } - + public AkkaHandshakeInfo getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AkkaHandshakeInfo( + 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 10: { + akka.remote.WireFormats.AddressData.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = origin_.toBuilder(); + } + origin_ = input.readMessage(akka.remote.WireFormats.AddressData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(origin_); + origin_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 17: { + bitField0_ |= 0x00000002; + uid_ = input.readFixed64(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + cookie_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AkkaHandshakeInfo.class, akka.remote.WireFormats.AkkaHandshakeInfo.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AkkaHandshakeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AkkaHandshakeInfo(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required .AddressData origin = 1; public static final int ORIGIN_FIELD_NUMBER = 1; private akka.remote.WireFormats.AddressData origin_; + /** + * required .AddressData origin = 1; + */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .AddressData origin = 1; + */ public akka.remote.WireFormats.AddressData getOrigin() { return origin_; } + /** + * required .AddressData origin = 1; + */ public akka.remote.WireFormats.AddressDataOrBuilder getOriginOrBuilder() { return origin_; } - + // required fixed64 uid = 2; public static final int UID_FIELD_NUMBER = 2; private long uid_; + /** + * required fixed64 uid = 2; + */ public boolean hasUid() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required fixed64 uid = 2; + */ public long getUid() { return uid_; } - + // optional string cookie = 3; public static final int COOKIE_FIELD_NUMBER = 3; private java.lang.Object cookie_; + /** + * optional string cookie = 3; + */ public boolean hasCookie() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public String getCookie() { + /** + * optional string cookie = 3; + */ + public java.lang.String getCookie() { java.lang.Object ref = cookie_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { cookie_ = s; } return s; } } - private com.google.protobuf.ByteString getCookieBytes() { + /** + * optional string cookie = 3; + */ + public com.google.protobuf.ByteString + getCookieBytes() { java.lang.Object ref = cookie_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cookie_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { origin_ = akka.remote.WireFormats.AddressData.getDefaultInstance(); uid_ = 0L; @@ -6186,7 +8056,7 @@ public final class WireFormats { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasOrigin()) { memoizedIsInitialized = 0; return false; @@ -6202,7 +8072,7 @@ public final class WireFormats { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -6217,12 +8087,12 @@ public final class WireFormats { } 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 @@ -6240,94 +8110,83 @@ public final class WireFormats { 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 akka.remote.WireFormats.AkkaHandshakeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static akka.remote.WireFormats.AkkaHandshakeInfo 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static akka.remote.WireFormats.AkkaHandshakeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.remote.WireFormats.AkkaHandshakeInfo 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 AkkaHandshakeInfo} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements akka.remote.WireFormats.AkkaHandshakeInfoOrBuilder { @@ -6335,18 +8194,21 @@ public final class WireFormats { getDescriptor() { return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_fieldAccessorTable; + return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AkkaHandshakeInfo.class, akka.remote.WireFormats.AkkaHandshakeInfo.Builder.class); } - + // Construct using akka.remote.WireFormats.AkkaHandshakeInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6358,7 +8220,7 @@ public final class WireFormats { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (originBuilder_ == null) { @@ -6373,20 +8235,20 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000004); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return akka.remote.WireFormats.AkkaHandshakeInfo.getDescriptor(); + return akka.remote.WireFormats.internal_static_AkkaHandshakeInfo_descriptor; } - + public akka.remote.WireFormats.AkkaHandshakeInfo getDefaultInstanceForType() { return akka.remote.WireFormats.AkkaHandshakeInfo.getDefaultInstance(); } - + public akka.remote.WireFormats.AkkaHandshakeInfo build() { akka.remote.WireFormats.AkkaHandshakeInfo result = buildPartial(); if (!result.isInitialized()) { @@ -6394,17 +8256,7 @@ public final class WireFormats { } return result; } - - private akka.remote.WireFormats.AkkaHandshakeInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.AkkaHandshakeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public akka.remote.WireFormats.AkkaHandshakeInfo buildPartial() { akka.remote.WireFormats.AkkaHandshakeInfo result = new akka.remote.WireFormats.AkkaHandshakeInfo(this); int from_bitField0_ = bitField0_; @@ -6429,7 +8281,7 @@ public final class WireFormats { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.remote.WireFormats.AkkaHandshakeInfo) { return mergeFrom((akka.remote.WireFormats.AkkaHandshakeInfo)other); @@ -6438,7 +8290,7 @@ public final class WireFormats { return this; } } - + public Builder mergeFrom(akka.remote.WireFormats.AkkaHandshakeInfo other) { if (other == akka.remote.WireFormats.AkkaHandshakeInfo.getDefaultInstance()) return this; if (other.hasOrigin()) { @@ -6448,12 +8300,14 @@ public final class WireFormats { setUid(other.getUid()); } if (other.hasCookie()) { - setCookie(other.getCookie()); + bitField0_ |= 0x00000004; + cookie_ = other.cookie_; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasOrigin()) { @@ -6469,62 +8323,39 @@ public final class WireFormats { } 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: { - akka.remote.WireFormats.AddressData.Builder subBuilder = akka.remote.WireFormats.AddressData.newBuilder(); - if (hasOrigin()) { - subBuilder.mergeFrom(getOrigin()); - } - input.readMessage(subBuilder, extensionRegistry); - setOrigin(subBuilder.buildPartial()); - break; - } - case 17: { - bitField0_ |= 0x00000002; - uid_ = input.readFixed64(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - cookie_ = input.readBytes(); - break; - } + akka.remote.WireFormats.AkkaHandshakeInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.AkkaHandshakeInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .AddressData origin = 1; private akka.remote.WireFormats.AddressData origin_ = akka.remote.WireFormats.AddressData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AddressData, akka.remote.WireFormats.AddressData.Builder, akka.remote.WireFormats.AddressDataOrBuilder> originBuilder_; + /** + * required .AddressData origin = 1; + */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .AddressData origin = 1; + */ public akka.remote.WireFormats.AddressData getOrigin() { if (originBuilder_ == null) { return origin_; @@ -6532,6 +8363,9 @@ public final class WireFormats { return originBuilder_.getMessage(); } } + /** + * required .AddressData origin = 1; + */ public Builder setOrigin(akka.remote.WireFormats.AddressData value) { if (originBuilder_ == null) { if (value == null) { @@ -6545,6 +8379,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .AddressData origin = 1; + */ public Builder setOrigin( akka.remote.WireFormats.AddressData.Builder builderForValue) { if (originBuilder_ == null) { @@ -6556,6 +8393,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .AddressData origin = 1; + */ public Builder mergeOrigin(akka.remote.WireFormats.AddressData value) { if (originBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -6572,6 +8412,9 @@ public final class WireFormats { bitField0_ |= 0x00000001; return this; } + /** + * required .AddressData origin = 1; + */ public Builder clearOrigin() { if (originBuilder_ == null) { origin_ = akka.remote.WireFormats.AddressData.getDefaultInstance(); @@ -6582,11 +8425,17 @@ public final class WireFormats { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .AddressData origin = 1; + */ public akka.remote.WireFormats.AddressData.Builder getOriginBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOriginFieldBuilder().getBuilder(); } + /** + * required .AddressData origin = 1; + */ public akka.remote.WireFormats.AddressDataOrBuilder getOriginOrBuilder() { if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); @@ -6594,6 +8443,9 @@ public final class WireFormats { return origin_; } } + /** + * required .AddressData origin = 1; + */ private com.google.protobuf.SingleFieldBuilder< akka.remote.WireFormats.AddressData, akka.remote.WireFormats.AddressData.Builder, akka.remote.WireFormats.AddressDataOrBuilder> getOriginFieldBuilder() { @@ -6607,44 +8459,83 @@ public final class WireFormats { } return originBuilder_; } - + // required fixed64 uid = 2; private long uid_ ; + /** + * required fixed64 uid = 2; + */ public boolean hasUid() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required fixed64 uid = 2; + */ public long getUid() { return uid_; } + /** + * required fixed64 uid = 2; + */ public Builder setUid(long value) { bitField0_ |= 0x00000002; uid_ = value; onChanged(); return this; } + /** + * required fixed64 uid = 2; + */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000002); uid_ = 0L; onChanged(); return this; } - + // optional string cookie = 3; private java.lang.Object cookie_ = ""; + /** + * optional string cookie = 3; + */ public boolean hasCookie() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public String getCookie() { + /** + * optional string cookie = 3; + */ + public java.lang.String getCookie() { java.lang.Object ref = cookie_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); cookie_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setCookie(String value) { + /** + * optional string cookie = 3; + */ + public com.google.protobuf.ByteString + getCookieBytes() { + java.lang.Object ref = cookie_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cookie_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string cookie = 3; + */ + public Builder setCookie( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -6653,504 +8544,151 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional string cookie = 3; + */ public Builder clearCookie() { bitField0_ = (bitField0_ & ~0x00000004); cookie_ = getDefaultInstance().getCookie(); onChanged(); return this; } - void setCookie(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; + /** + * optional string cookie = 3; + */ + public Builder setCookieBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; cookie_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:AkkaHandshakeInfo) } - + static { defaultInstance = new AkkaHandshakeInfo(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AkkaHandshakeInfo) } - + public interface AddressDataOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string system = 1; + /** + * required string system = 1; + */ boolean hasSystem(); - String getSystem(); - + /** + * required string system = 1; + */ + java.lang.String getSystem(); + /** + * required string system = 1; + */ + com.google.protobuf.ByteString + getSystemBytes(); + // required string hostname = 2; + /** + * required string hostname = 2; + */ boolean hasHostname(); - String getHostname(); - + /** + * required string hostname = 2; + */ + java.lang.String getHostname(); + /** + * required string hostname = 2; + */ + com.google.protobuf.ByteString + getHostnameBytes(); + // required uint32 port = 3; + /** + * required uint32 port = 3; + */ boolean hasPort(); + /** + * required uint32 port = 3; + */ int getPort(); - + // optional string protocol = 4; + /** + * optional string protocol = 4; + */ boolean hasProtocol(); - String getProtocol(); + /** + * optional string protocol = 4; + */ + java.lang.String getProtocol(); + /** + * optional string protocol = 4; + */ + com.google.protobuf.ByteString + getProtocolBytes(); } + /** + * Protobuf type {@code AddressData} + * + *
+   **
+   * Defines a remote address.
+   * 
+ */ public static final class AddressData extends com.google.protobuf.GeneratedMessage implements AddressDataOrBuilder { // Use AddressData.newBuilder() to construct. - private AddressData(Builder builder) { + private AddressData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AddressData(boolean noInit) {} - + private AddressData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AddressData defaultInstance; public static AddressData getDefaultInstance() { return defaultInstance; } - + public AddressData getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.WireFormats.internal_static_AddressData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AddressData_fieldAccessorTable; - } - - private int bitField0_; - // required string system = 1; - public static final int SYSTEM_FIELD_NUMBER = 1; - private java.lang.Object system_; - public boolean hasSystem() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getSystem() { - java.lang.Object ref = system_; - 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)) { - system_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSystemBytes() { - java.lang.Object ref = system_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - system_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string hostname = 2; - public static final int HOSTNAME_FIELD_NUMBER = 2; - private java.lang.Object hostname_; - public boolean hasHostname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getHostname() { - java.lang.Object ref = hostname_; - 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)) { - hostname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required uint32 port = 3; - public static final int PORT_FIELD_NUMBER = 3; - private int port_; - public boolean hasPort() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public int getPort() { - return port_; - } - - // optional string protocol = 4; - public static final int PROTOCOL_FIELD_NUMBER = 4; - private java.lang.Object protocol_; - public boolean hasProtocol() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getProtocol() { - java.lang.Object ref = protocol_; - 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)) { - protocol_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - system_ = ""; - hostname_ = ""; - port_ = 0; - protocol_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasSystem()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHostname()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPort()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getSystemBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getHostnameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, port_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getProtocolBytes()); - } - 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, getSystemBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getHostnameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, port_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getProtocolBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; + + private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public static akka.remote.WireFormats.AddressData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static akka.remote.WireFormats.AddressData 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 akka.remote.WireFormats.AddressData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static akka.remote.WireFormats.AddressData parseFrom( + private AddressData( 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(akka.remote.WireFormats.AddressData 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 akka.remote.WireFormats.AddressDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return akka.remote.WireFormats.internal_static_AddressData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return akka.remote.WireFormats.internal_static_AddressData_fieldAccessorTable; - } - - // Construct using akka.remote.WireFormats.AddressData.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(); - system_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - hostname_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - protocol_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return akka.remote.WireFormats.AddressData.getDescriptor(); - } - - public akka.remote.WireFormats.AddressData getDefaultInstanceForType() { - return akka.remote.WireFormats.AddressData.getDefaultInstance(); - } - - public akka.remote.WireFormats.AddressData build() { - akka.remote.WireFormats.AddressData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private akka.remote.WireFormats.AddressData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - akka.remote.WireFormats.AddressData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public akka.remote.WireFormats.AddressData buildPartial() { - akka.remote.WireFormats.AddressData result = new akka.remote.WireFormats.AddressData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.system_ = system_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.hostname_ = hostname_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.port_ = port_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.protocol_ = protocol_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof akka.remote.WireFormats.AddressData) { - return mergeFrom((akka.remote.WireFormats.AddressData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(akka.remote.WireFormats.AddressData other) { - if (other == akka.remote.WireFormats.AddressData.getDefaultInstance()) return this; - if (other.hasSystem()) { - setSystem(other.getSystem()); - } - if (other.hasHostname()) { - setHostname(other.getHostname()); - } - if (other.hasPort()) { - setPort(other.getPort()); - } - if (other.hasProtocol()) { - setProtocol(other.getProtocol()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasSystem()) { - - return false; - } - if (!hasHostname()) { - - return false; - } - if (!hasPort()) { - - return false; - } - 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) { + 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: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; + break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; + done = true; } break; } @@ -7176,26 +8714,545 @@ public final class WireFormats { } } } + } 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.WireFormats.internal_static_AddressData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.WireFormats.internal_static_AddressData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AddressData.class, akka.remote.WireFormats.AddressData.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AddressData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddressData(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string system = 1; + public static final int SYSTEM_FIELD_NUMBER = 1; + private java.lang.Object system_; + /** + * required string system = 1; + */ + public boolean hasSystem() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string system = 1; + */ + public java.lang.String getSystem() { + java.lang.Object ref = system_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + system_ = s; + } + return s; + } + } + /** + * required string system = 1; + */ + public com.google.protobuf.ByteString + getSystemBytes() { + java.lang.Object ref = system_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + system_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required string hostname = 2; + public static final int HOSTNAME_FIELD_NUMBER = 2; + private java.lang.Object hostname_; + /** + * required string hostname = 2; + */ + public boolean hasHostname() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string hostname = 2; + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hostname_ = s; + } + return s; + } + } + /** + * required string hostname = 2; + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required uint32 port = 3; + public static final int PORT_FIELD_NUMBER = 3; + private int port_; + /** + * required uint32 port = 3; + */ + public boolean hasPort() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required uint32 port = 3; + */ + public int getPort() { + return port_; + } + + // optional string protocol = 4; + public static final int PROTOCOL_FIELD_NUMBER = 4; + private java.lang.Object protocol_; + /** + * optional string protocol = 4; + */ + public boolean hasProtocol() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string protocol = 4; + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + protocol_ = s; + } + return s; + } + } + /** + * optional string protocol = 4; + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + system_ = ""; + hostname_ = ""; + port_ = 0; + protocol_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasSystem()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHostname()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPort()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getSystemBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getHostnameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, port_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getProtocolBytes()); + } + 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, getSystemBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getHostnameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, port_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getProtocolBytes()); + } + 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 akka.remote.WireFormats.AddressData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.WireFormats.AddressData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.WireFormats.AddressData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static akka.remote.WireFormats.AddressData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static akka.remote.WireFormats.AddressData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.WireFormats.AddressData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static akka.remote.WireFormats.AddressData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static akka.remote.WireFormats.AddressData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static akka.remote.WireFormats.AddressData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static akka.remote.WireFormats.AddressData 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(akka.remote.WireFormats.AddressData 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 AddressData} + * + *
+     **
+     * Defines a remote address.
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements akka.remote.WireFormats.AddressDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return akka.remote.WireFormats.internal_static_AddressData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.remote.WireFormats.internal_static_AddressData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.WireFormats.AddressData.class, akka.remote.WireFormats.AddressData.Builder.class); + } + + // Construct using akka.remote.WireFormats.AddressData.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(); + system_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + hostname_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + protocol_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return akka.remote.WireFormats.internal_static_AddressData_descriptor; + } + + public akka.remote.WireFormats.AddressData getDefaultInstanceForType() { + return akka.remote.WireFormats.AddressData.getDefaultInstance(); + } + + public akka.remote.WireFormats.AddressData build() { + akka.remote.WireFormats.AddressData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public akka.remote.WireFormats.AddressData buildPartial() { + akka.remote.WireFormats.AddressData result = new akka.remote.WireFormats.AddressData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.system_ = system_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.hostname_ = hostname_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.port_ = port_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.protocol_ = protocol_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof akka.remote.WireFormats.AddressData) { + return mergeFrom((akka.remote.WireFormats.AddressData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(akka.remote.WireFormats.AddressData other) { + if (other == akka.remote.WireFormats.AddressData.getDefaultInstance()) return this; + if (other.hasSystem()) { + bitField0_ |= 0x00000001; + system_ = other.system_; + onChanged(); + } + if (other.hasHostname()) { + bitField0_ |= 0x00000002; + hostname_ = other.hostname_; + onChanged(); + } + if (other.hasPort()) { + setPort(other.getPort()); + } + if (other.hasProtocol()) { + bitField0_ |= 0x00000008; + protocol_ = other.protocol_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasSystem()) { + + return false; + } + if (!hasHostname()) { + + return false; + } + if (!hasPort()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.remote.WireFormats.AddressData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.WireFormats.AddressData) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private int bitField0_; - + // required string system = 1; private java.lang.Object system_ = ""; + /** + * required string system = 1; + */ public boolean hasSystem() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getSystem() { + /** + * required string system = 1; + */ + public java.lang.String getSystem() { java.lang.Object ref = system_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); system_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setSystem(String value) { + /** + * required string system = 1; + */ + public com.google.protobuf.ByteString + getSystemBytes() { + java.lang.Object ref = system_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + system_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string system = 1; + */ + public Builder setSystem( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -7204,34 +9261,72 @@ public final class WireFormats { onChanged(); return this; } + /** + * required string system = 1; + */ public Builder clearSystem() { bitField0_ = (bitField0_ & ~0x00000001); system_ = getDefaultInstance().getSystem(); onChanged(); return this; } - void setSystem(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string system = 1; + */ + public Builder setSystemBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; system_ = value; onChanged(); + return this; } - + // required string hostname = 2; private java.lang.Object hostname_ = ""; + /** + * required string hostname = 2; + */ public boolean hasHostname() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getHostname() { + /** + * required string hostname = 2; + */ + public java.lang.String getHostname() { java.lang.Object ref = hostname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); hostname_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setHostname(String value) { + /** + * required string hostname = 2; + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string hostname = 2; + */ + public Builder setHostname( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -7240,55 +9335,105 @@ public final class WireFormats { onChanged(); return this; } + /** + * required string hostname = 2; + */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000002); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } - void setHostname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * required string hostname = 2; + */ + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; hostname_ = value; onChanged(); + return this; } - + // required uint32 port = 3; private int port_ ; + /** + * required uint32 port = 3; + */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * required uint32 port = 3; + */ public int getPort() { return port_; } + /** + * required uint32 port = 3; + */ public Builder setPort(int value) { bitField0_ |= 0x00000004; port_ = value; onChanged(); return this; } + /** + * required uint32 port = 3; + */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; onChanged(); return this; } - + // optional string protocol = 4; private java.lang.Object protocol_ = ""; + /** + * optional string protocol = 4; + */ public boolean hasProtocol() { return ((bitField0_ & 0x00000008) == 0x00000008); } - public String getProtocol() { + /** + * optional string protocol = 4; + */ + public java.lang.String getProtocol() { java.lang.Object ref = protocol_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); protocol_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setProtocol(String value) { + /** + * optional string protocol = 4; + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string protocol = 4; + */ + public Builder setProtocol( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -7297,29 +9442,40 @@ public final class WireFormats { onChanged(); return this; } + /** + * optional string protocol = 4; + */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000008); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } - void setProtocol(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; + /** + * optional string protocol = 4; + */ + public Builder setProtocolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; protocol_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:AddressData) } - + static { defaultInstance = new AddressData(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AddressData) } - + private static com.google.protobuf.Descriptors.Descriptor internal_static_AckAndEnvelopeContainer_descriptor; private static @@ -7380,7 +9536,7 @@ public final class WireFormats { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_AddressData_fieldAccessorTable; - + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -7431,97 +9587,73 @@ public final class WireFormats { internal_static_AckAndEnvelopeContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AckAndEnvelopeContainer_descriptor, - new java.lang.String[] { "Ack", "Envelope", }, - akka.remote.WireFormats.AckAndEnvelopeContainer.class, - akka.remote.WireFormats.AckAndEnvelopeContainer.Builder.class); + new java.lang.String[] { "Ack", "Envelope", }); internal_static_RemoteEnvelope_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_RemoteEnvelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RemoteEnvelope_descriptor, - new java.lang.String[] { "Recipient", "Message", "Sender", "Seq", }, - akka.remote.WireFormats.RemoteEnvelope.class, - akka.remote.WireFormats.RemoteEnvelope.Builder.class); + new java.lang.String[] { "Recipient", "Message", "Sender", "Seq", }); internal_static_AcknowledgementInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_AcknowledgementInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AcknowledgementInfo_descriptor, - new java.lang.String[] { "CumulativeAck", "Nacks", }, - akka.remote.WireFormats.AcknowledgementInfo.class, - akka.remote.WireFormats.AcknowledgementInfo.Builder.class); + new java.lang.String[] { "CumulativeAck", "Nacks", }); internal_static_ActorRefData_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ActorRefData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ActorRefData_descriptor, - new java.lang.String[] { "Path", }, - akka.remote.WireFormats.ActorRefData.class, - akka.remote.WireFormats.ActorRefData.Builder.class); + new java.lang.String[] { "Path", }); internal_static_SerializedMessage_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_SerializedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SerializedMessage_descriptor, - new java.lang.String[] { "Message", "SerializerId", "MessageManifest", }, - akka.remote.WireFormats.SerializedMessage.class, - akka.remote.WireFormats.SerializedMessage.Builder.class); + new java.lang.String[] { "Message", "SerializerId", "MessageManifest", }); internal_static_DaemonMsgCreateData_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_DaemonMsgCreateData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_DaemonMsgCreateData_descriptor, - new java.lang.String[] { "Props", "Deploy", "Path", "Supervisor", }, - akka.remote.WireFormats.DaemonMsgCreateData.class, - akka.remote.WireFormats.DaemonMsgCreateData.Builder.class); + new java.lang.String[] { "Props", "Deploy", "Path", "Supervisor", }); internal_static_PropsData_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_PropsData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PropsData_descriptor, - new java.lang.String[] { "Deploy", "Clazz", "Args", "Classes", }, - akka.remote.WireFormats.PropsData.class, - akka.remote.WireFormats.PropsData.Builder.class); + new java.lang.String[] { "Deploy", "Clazz", "Args", "Classes", }); internal_static_DeployData_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_DeployData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_DeployData_descriptor, - new java.lang.String[] { "Path", "Config", "RouterConfig", "Scope", "Dispatcher", }, - akka.remote.WireFormats.DeployData.class, - akka.remote.WireFormats.DeployData.Builder.class); + new java.lang.String[] { "Path", "Config", "RouterConfig", "Scope", "Dispatcher", }); internal_static_AkkaProtocolMessage_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_AkkaProtocolMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AkkaProtocolMessage_descriptor, - new java.lang.String[] { "Payload", "Instruction", }, - akka.remote.WireFormats.AkkaProtocolMessage.class, - akka.remote.WireFormats.AkkaProtocolMessage.Builder.class); + new java.lang.String[] { "Payload", "Instruction", }); internal_static_AkkaControlMessage_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_AkkaControlMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AkkaControlMessage_descriptor, - new java.lang.String[] { "CommandType", "HandshakeInfo", }, - akka.remote.WireFormats.AkkaControlMessage.class, - akka.remote.WireFormats.AkkaControlMessage.Builder.class); + new java.lang.String[] { "CommandType", "HandshakeInfo", }); internal_static_AkkaHandshakeInfo_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_AkkaHandshakeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AkkaHandshakeInfo_descriptor, - new java.lang.String[] { "Origin", "Uid", "Cookie", }, - akka.remote.WireFormats.AkkaHandshakeInfo.class, - akka.remote.WireFormats.AkkaHandshakeInfo.Builder.class); + new java.lang.String[] { "Origin", "Uid", "Cookie", }); internal_static_AddressData_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_AddressData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AddressData_descriptor, - new java.lang.String[] { "System", "Hostname", "Port", "Protocol", }, - akka.remote.WireFormats.AddressData.class, - akka.remote.WireFormats.AddressData.Builder.class); + new java.lang.String[] { "System", "Hostname", "Port", "Protocol", }); return null; } }; @@ -7530,6 +9662,6 @@ public final class WireFormats { new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } - + // @@protoc_insertion_point(outer_class_scope) } diff --git a/akka-remote/src/main/protocol/ContainerFormats.proto b/akka-remote/src/main/protobuf/ContainerFormats.proto similarity index 71% rename from akka-remote/src/main/protocol/ContainerFormats.proto rename to akka-remote/src/main/protobuf/ContainerFormats.proto index 7829169c1f..3f895d2558 100644 --- a/akka-remote/src/main/protocol/ContainerFormats.proto +++ b/akka-remote/src/main/protobuf/ContainerFormats.proto @@ -5,14 +5,6 @@ option java_package = "akka.remote"; option optimize_for = SPEED; -/****************************************** - Compile with: - cd ./akka-remote/src/main/protocol - protoc ContainerFormats.proto --java_out ../java - cd ../../../.. - ./scripts/fix-protobuf.sh -*******************************************/ - /****************************************** ActorSelection related formats *******************************************/ diff --git a/akka-remote/src/main/protocol/WireFormats.proto b/akka-remote/src/main/protobuf/WireFormats.proto similarity index 92% rename from akka-remote/src/main/protocol/WireFormats.proto rename to akka-remote/src/main/protobuf/WireFormats.proto index b9bfccaf37..b1be207f48 100644 --- a/akka-remote/src/main/protocol/WireFormats.proto +++ b/akka-remote/src/main/protobuf/WireFormats.proto @@ -5,14 +5,6 @@ option java_package = "akka.remote"; option optimize_for = SPEED; -/****************************************** - Compile with: - cd ./akka-remote/src/main/protocol - protoc WireFormats.proto --java_out ../java - cd ../../../.. - ./scripts/fix-protobuf.sh -*******************************************/ - /****************************************** * Remoting message formats ******************************************/ diff --git a/akka-remote/src/test/java/akka/remote/ProtobufProtocol.java b/akka-remote/src/test/java/akka/remote/ProtobufProtocol.java index 1b7f13a1da..a6808a5109 100644 --- a/akka-remote/src/test/java/akka/remote/ProtobufProtocol.java +++ b/akka-remote/src/test/java/akka/remote/ProtobufProtocol.java @@ -3,8 +3,6 @@ package akka.remote; -import com.google.protobuf.AbstractMessage; - public final class ProtobufProtocol { private ProtobufProtocol() {} public static void registerAllExtensions( @@ -14,25 +12,52 @@ public final class ProtobufProtocol { extends com.google.protobuf.MessageOrBuilder { // required uint64 id = 1; + /** + * required uint64 id = 1; + */ boolean hasId(); + /** + * required uint64 id = 1; + */ long getId(); // required string name = 2; + /** + * required string name = 2; + */ boolean hasName(); - String getName(); + /** + * required string name = 2; + */ + java.lang.String getName(); + /** + * required string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); // required bool status = 3; + /** + * required bool status = 3; + */ boolean hasStatus(); + /** + * required bool status = 3; + */ boolean getStatus(); } + /** + * Protobuf type {@code MyMessage} + */ public static final class MyMessage extends com.google.protobuf.GeneratedMessage implements MyMessageOrBuilder { // Use MyMessage.newBuilder() to construct. - private MyMessage(Builder builder) { + private MyMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private MyMessage(boolean noInit) {} + private MyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MyMessage defaultInstance; public static MyMessage getDefaultInstance() { @@ -43,23 +68,102 @@ public final class ProtobufProtocol { return defaultInstance; } + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MyMessage( + 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 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + name_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + status_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return ProtobufProtocol.internal_static_akka_actor_MyMessage_descriptor; + return akka.remote.ProtobufProtocol.internal_static_MyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return ProtobufProtocol.internal_static_akka_actor_MyMessage_fieldAccessorTable; + return akka.remote.ProtobufProtocol.internal_static_MyMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.ProtobufProtocol.MyMessage.class, akka.remote.ProtobufProtocol.MyMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public MyMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MyMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } private int bitField0_; // required uint64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; + /** + * required uint64 id = 1; + */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required uint64 id = 1; + */ public long getId() { return id_; } @@ -67,28 +171,39 @@ public final class ProtobufProtocol { // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; + /** + * required string name = 2; + */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getName() { + /** + * required string name = 2; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { name_ = s; } return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * required string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -99,9 +214,15 @@ public final class ProtobufProtocol { // required bool status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean status_; + /** + * required bool status = 3; + */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * required bool status = 3; + */ public boolean getStatus() { return status_; } @@ -177,76 +298,62 @@ public final class ProtobufProtocol { return super.writeReplace(); } - public static ProtobufProtocol.MyMessage parseFrom( + public static akka.remote.ProtobufProtocol.MyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } - public static ProtobufProtocol.MyMessage parseFrom( + public static akka.remote.ProtobufProtocol.MyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } - public static ProtobufProtocol.MyMessage parseFrom(byte[] data) + public static akka.remote.ProtobufProtocol.MyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } - public static ProtobufProtocol.MyMessage parseFrom( + public static akka.remote.ProtobufProtocol.MyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } - public static ProtobufProtocol.MyMessage parseFrom(java.io.InputStream input) + public static akka.remote.ProtobufProtocol.MyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } - public static ProtobufProtocol.MyMessage parseFrom( + public static akka.remote.ProtobufProtocol.MyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - public static ProtobufProtocol.MyMessage parseDelimitedFrom(java.io.InputStream input) + public static akka.remote.ProtobufProtocol.MyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } - public static ProtobufProtocol.MyMessage parseDelimitedFrom( + public static akka.remote.ProtobufProtocol.MyMessage 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static ProtobufProtocol.MyMessage parseFrom( + public static akka.remote.ProtobufProtocol.MyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } - public static ProtobufProtocol.MyMessage parseFrom( + public static akka.remote.ProtobufProtocol.MyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(ProtobufProtocol.MyMessage prototype) { + public static Builder newBuilder(akka.remote.ProtobufProtocol.MyMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @@ -257,25 +364,31 @@ public final class ProtobufProtocol { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code MyMessage} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements ProtobufProtocol.MyMessageOrBuilder { + implements akka.remote.ProtobufProtocol.MyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return ProtobufProtocol.internal_static_akka_actor_MyMessage_descriptor; + return akka.remote.ProtobufProtocol.internal_static_MyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return ProtobufProtocol.internal_static_akka_actor_MyMessage_fieldAccessorTable; + return akka.remote.ProtobufProtocol.internal_static_MyMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.remote.ProtobufProtocol.MyMessage.class, akka.remote.ProtobufProtocol.MyMessage.Builder.class); } - // Construct using akka.actor.ProtobufProtocol.MyMessage.newBuilder() + // Construct using akka.remote.ProtobufProtocol.MyMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -304,33 +417,23 @@ public final class ProtobufProtocol { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return ProtobufProtocol.MyMessage.getDescriptor(); + return akka.remote.ProtobufProtocol.internal_static_MyMessage_descriptor; } - public ProtobufProtocol.MyMessage getDefaultInstanceForType() { - return ProtobufProtocol.MyMessage.getDefaultInstance(); + public akka.remote.ProtobufProtocol.MyMessage getDefaultInstanceForType() { + return akka.remote.ProtobufProtocol.MyMessage.getDefaultInstance(); } - public ProtobufProtocol.MyMessage build() { - ProtobufProtocol.MyMessage result = buildPartial(); + public akka.remote.ProtobufProtocol.MyMessage build() { + akka.remote.ProtobufProtocol.MyMessage result = buildPartial(); if (!result.isInitialized()) { - throw AbstractMessage.Builder.newUninitializedMessageException(result); + throw newUninitializedMessageException(result); } return result; } - private ProtobufProtocol.MyMessage buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - ProtobufProtocol.MyMessage result = buildPartial(); - if (!result.isInitialized()) { - throw AbstractMessage.Builder.newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public ProtobufProtocol.MyMessage buildPartial() { - ProtobufProtocol.MyMessage result = new ProtobufProtocol.MyMessage(this); + public akka.remote.ProtobufProtocol.MyMessage buildPartial() { + akka.remote.ProtobufProtocol.MyMessage result = new akka.remote.ProtobufProtocol.MyMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -351,21 +454,23 @@ public final class ProtobufProtocol { } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ProtobufProtocol.MyMessage) { - return mergeFrom((ProtobufProtocol.MyMessage)other); + if (other instanceof akka.remote.ProtobufProtocol.MyMessage) { + return mergeFrom((akka.remote.ProtobufProtocol.MyMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(ProtobufProtocol.MyMessage other) { - if (other == ProtobufProtocol.MyMessage.getDefaultInstance()) return this; + public Builder mergeFrom(akka.remote.ProtobufProtocol.MyMessage other) { + if (other == akka.remote.ProtobufProtocol.MyMessage.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); @@ -376,15 +481,15 @@ public final class ProtobufProtocol { public final boolean isInitialized() { if (!hasId()) { - + return false; } if (!hasName()) { - + return false; } if (!hasStatus()) { - + return false; } return true; @@ -394,60 +499,47 @@ public final class ProtobufProtocol { 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 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - name_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - status_ = input.readBool(); - break; - } + akka.remote.ProtobufProtocol.MyMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (akka.remote.ProtobufProtocol.MyMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; // required uint64 id = 1; private long id_ ; + /** + * required uint64 id = 1; + */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required uint64 id = 1; + */ public long getId() { return id_; } + /** + * required uint64 id = 1; + */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } + /** + * required uint64 id = 1; + */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; @@ -457,20 +549,47 @@ public final class ProtobufProtocol { // required string name = 2; private java.lang.Object name_ = ""; + /** + * required string name = 2; + */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getName() { + /** + * required string name = 2; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setName(String value) { + /** + * required string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string name = 2; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -479,32 +598,55 @@ public final class ProtobufProtocol { onChanged(); return this; } + /** + * required string name = 2; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * required string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; name_ = value; onChanged(); + return this; } // required bool status = 3; private boolean status_ ; + /** + * required bool status = 3; + */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * required bool status = 3; + */ public boolean getStatus() { return status_; } + /** + * required bool status = 3; + */ public Builder setStatus(boolean value) { bitField0_ |= 0x00000004; status_ = value; onChanged(); return this; } + /** + * required bool status = 3; + */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000004); status_ = false; @@ -512,7 +654,7 @@ public final class ProtobufProtocol { return this; } - // @@protoc_insertion_point(builder_scope:akka.actor.MyMessage) + // @@protoc_insertion_point(builder_scope:MyMessage) } static { @@ -520,14 +662,14 @@ public final class ProtobufProtocol { defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:akka.actor.MyMessage) + // @@protoc_insertion_point(class_scope:MyMessage) } private static com.google.protobuf.Descriptors.Descriptor - internal_static_akka_actor_MyMessage_descriptor; + internal_static_MyMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_akka_actor_MyMessage_fieldAccessorTable; + internal_static_MyMessage_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -537,23 +679,21 @@ public final class ProtobufProtocol { descriptor; static { java.lang.String[] descriptorData = { - "\n\026ProtobufProtocol.proto\022\nakka.actor\"5\n\t" + - "MyMessage\022\n\n\002id\030\001 \002(\004\022\014\n\004name\030\002 \002(\t\022\016\n\006s" + - "tatus\030\003 \002(\010" + "\n\026ProtobufProtocol.proto\"5\n\tMyMessage\022\n\n" + + "\002id\030\001 \002(\004\022\014\n\004name\030\002 \002(\t\022\016\n\006status\030\003 \002(\010B" + + "\r\n\013akka.remote" }; 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_akka_actor_MyMessage_descriptor = + internal_static_MyMessage_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_akka_actor_MyMessage_fieldAccessorTable = new + internal_static_MyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_akka_actor_MyMessage_descriptor, - new java.lang.String[] { "Id", "Name", "Status", }, - ProtobufProtocol.MyMessage.class, - ProtobufProtocol.MyMessage.Builder.class); + internal_static_MyMessage_descriptor, + new java.lang.String[] { "Id", "Name", "Status", }); return null; } }; diff --git a/akka-remote/src/test/protobuf/ProtobufProtocol.proto b/akka-remote/src/test/protobuf/ProtobufProtocol.proto new file mode 100644 index 0000000000..d9632c6086 --- /dev/null +++ b/akka-remote/src/test/protobuf/ProtobufProtocol.proto @@ -0,0 +1,12 @@ +/** + * Copyright (C) 2009-2013 Typesafe Inc. + */ + +option java_package = "akka.remote"; + +message MyMessage { + required uint64 id = 1; + required string name = 2; + required bool status = 3; +} + diff --git a/akka-remote/src/test/protocol/ProtobufProtocol.proto b/akka-remote/src/test/protocol/ProtobufProtocol.proto deleted file mode 100644 index f59df11899..0000000000 --- a/akka-remote/src/test/protocol/ProtobufProtocol.proto +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (C) 2009-2013 Typesafe Inc. - */ - -package akka.actor; - -/****************************************** - Compile with: - cd ./akka-remote/src/test/protocol - protoc ProtobufProtocol.proto --java_out ../java - cd ../../../.. - ./scripts/fix-protobuf.sh -*******************************************/ - -message MyMessage { - required uint64 id = 1; - required string name = 2; - required bool status = 3; -} - diff --git a/akka-samples/akka-sample-osgi-dining-hakkers/pom.xml b/akka-samples/akka-sample-osgi-dining-hakkers/pom.xml index ea69b7667d..6dee42ba13 100644 --- a/akka-samples/akka-sample-osgi-dining-hakkers/pom.xml +++ b/akka-samples/akka-sample-osgi-dining-hakkers/pom.xml @@ -16,12 +16,12 @@ 4.2.0 2.6.0 1.6.0 - 2.4.1 + 2.5.0 2.10.1 2.10 1.9.1 - 1.0.0 - 1.2.0 + 1.0.2 + 1.3.6 diff --git a/project/AkkaBuild.scala b/project/AkkaBuild.scala index 28d701f0a5..74a16ada8d 100644 --- a/project/AkkaBuild.scala +++ b/project/AkkaBuild.scala @@ -193,7 +193,7 @@ object AkkaBuild extends Build { id = "akka-remote", base = file("akka-remote"), dependencies = Seq(actor, actorTests % "test->test", testkit % "test->test"), - settings = defaultSettings ++ scaladocSettings ++ javadocSettings ++ OSGi.remote ++ Seq( + settings = defaultSettings ++ scaladocSettings ++ javadocSettings ++ OSGi.remote ++ Protobuf.settings ++ Seq( libraryDependencies ++= Dependencies.remote, // disable parallel tests parallelExecution in Test := false, @@ -205,7 +205,7 @@ object AkkaBuild extends Build { id = "akka-multi-node-testkit", base = file("akka-multi-node-testkit"), dependencies = Seq(remote, testkit), - settings = defaultSettings ++ scaladocSettings ++ javadocSettings ++ Seq( + settings = defaultSettings ++ scaladocSettings ++ javadocSettings ++ Protobuf.settings ++ Seq( previousArtifact := akkaPreviousArtifact("akka-multi-node-testkit") ) ) @@ -234,7 +234,7 @@ object AkkaBuild extends Build { settings = defaultSettings ++ scaladocSettings ++ javadocSettings ++ multiJvmSettings ++ OSGi.cluster ++ scalabuffSettings ++ Seq( // this version needs to be reflected in the OSGi.scalabuffImport and dining hackers pom.xml - scalabuffVersion in ScalaBuff := "1.2.0", + scalabuffVersion in ScalaBuff := "1.3.6", libraryDependencies ++= Dependencies.cluster, // disable parallel tests parallelExecution in Test := false, @@ -1023,8 +1023,8 @@ object AkkaBuild extends Build { def defaultImports = Seq("!sun.misc", akkaImport(), configImport(), scalaImport(), "*") def akkaImport(packageName: String = "akka.*") = "%s;version=\"[2.2,2.3)\"".format(packageName) def configImport(packageName: String = "com.typesafe.config.*") = "%s;version=\"[0.4.1,1.1.0)\"".format(packageName) - def protobufImport(packageName: String = "com.google.protobuf.*") = "%s;version=\"[2.4.0,2.5.0)\"".format(packageName) - def scalabuffImport(packageName: String = "net.sandrogrzicic.scalabuff.*") = "%s;version=\"[1.2.0,1.3.0)\"".format(packageName) + def protobufImport(packageName: String = "com.google.protobuf.*") = "%s;version=\"[2.5.0,2.6.0)\"".format(packageName) + def scalabuffImport(packageName: String = "net.sandrogrzicic.scalabuff.*") = "%s;version=\"[1.3.6,1.4.0)\"".format(packageName) def scalaImport(packageName: String = "scala.*") = "%s;version=\"[2.10,2.11)\"".format(packageName) def optionalResolution(packageName: String) = "%s;resolution:=optional".format(packageName) } @@ -1040,7 +1040,7 @@ object Dependencies { val config = "com.typesafe" % "config" % "1.0.2" // ApacheV2 val netty = "io.netty" % "netty" % "3.6.6.Final" // ApacheV2 - val protobuf = "com.google.protobuf" % "protobuf-java" % "2.4.1" // New BSD + val protobuf = "com.google.protobuf" % "protobuf-java" % "2.5.0" // New BSD val scalaStm = "org.scala-stm" %% "scala-stm" % "0.7" // Modified BSD (Scala) val scalaBuffRuntime = "net.sandrogrzicic" %% "scalabuff-runtime" % "1.2.0" // ApacheV2 diff --git a/project/Protobuf.scala b/project/Protobuf.scala new file mode 100644 index 0000000000..09b764e931 --- /dev/null +++ b/project/Protobuf.scala @@ -0,0 +1,77 @@ +/** + * Copyright (C) 2009-2013 Typesafe Inc. + */ + +package akka + +import sbt._ +import Process._ +import Keys._ + +import java.io.File + +object Protobuf { + val paths = SettingKey[Seq[File]]("protobuf-paths", "The paths that contain *.proto files.") + val outputPaths = SettingKey[Seq[File]]("protobuf-output-paths", "The paths where to save the generated *.java files.") + val protoc = SettingKey[String]("protobuf-protoc", "The path and name of the protoc executable.") + val protocVersion = SettingKey[String]("protobuf-protoc-version", "The version of the protoc executable.") + val generate = TaskKey[Unit]("protobuf-generate", "Compile the protobuf sources and do all processing.") + + lazy val settings: Seq[Setting[_]] = Seq( + paths <<= (sourceDirectory in Compile, sourceDirectory in Test) { (a, b) => Seq(a, b) map (_ / "protobuf") }, + outputPaths <<= (sourceDirectory in Compile, sourceDirectory in Test) { (a, b) => Seq(a, b) map (_ / "java") }, + protoc := "protoc", + protocVersion := "2.5.0", + generate <<= generateSourceTask + ) + + private def callProtoc[T](protoc: String, args: Seq[String], log: Logger, thunk: (ProcessBuilder, Logger) => T): T = + try { + val proc = Process(protoc, args) + thunk(proc, log) + } catch { case e: Exception => + throw new RuntimeException("error while executing '%s' with args: %s" format(protoc, args.mkString(" ")), e) + } + + private def checkProtocVersion(protoc: String, protocVersion: String, log: Logger): Unit = { + val res = callProtoc(protoc, Seq("--version"), log, { (p, l) => p !! l }) + val version = res.split(" ").last.trim + if (version != protocVersion) { + sys.error("Wrong protoc version! Expected %s but got %s" format (protocVersion, version)) + } + } + + private def generate(protoc: String, srcDir: File, targetDir: File, log: Logger): Unit = { + val protoFiles = (srcDir ** "*.proto").get + if (srcDir.exists) + if (protoFiles.isEmpty) + log.info("Skipping empty source directory %s" format srcDir) + else { + targetDir.mkdirs() + + log.info("Generating %d protobuf files from %s to %s".format(protoFiles.size, srcDir, targetDir)) + protoFiles.foreach { proto => log.info("Compiling %s" format proto) } + + val exitCode = callProtoc(protoc, Seq("-I" + srcDir.absolutePath, "--java_out=%s" format targetDir.absolutePath) ++ + protoFiles.map(_.absolutePath), log, { (p, l) => p ! l }) + if (exitCode != 0) + sys.error("protoc returned exit code: %d" format exitCode) + } + } + + private def generateSourceTask: Project.Initialize[Task[Unit]] = (streams, paths, outputPaths, protoc, protocVersion) map { + (out, sourceDirs, targetDirs, protoc, protocVersion) => + if (sourceDirs.size != targetDirs.size) + sys.error("Unbalanced number of paths and destination paths!\nPaths: %s\nDestination Paths: %s" format + (sourceDirs, targetDirs)) + + if (sourceDirs exists { _.exists }) { + checkProtocVersion(protoc, protocVersion, out.log) + + (sourceDirs zip targetDirs) map { + case (sourceDir, targetDir) => + generate(protoc, sourceDir, targetDir, out.log) + } + } + } +} diff --git a/scripts/fix-protobuf.sh b/scripts/fix-protobuf.sh deleted file mode 100755 index e53ce297ab..0000000000 --- a/scripts/fix-protobuf.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -find . -name \*.java -print0 | xargs -0 perl -pi -e 's/\Qprivate Builder(BuilderParent parent)/private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent)/'