// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ClusterProtocol.proto package akka.cloud.cluster; public final class ClusterProtocol { private ClusterProtocol() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public enum RemoteDaemonMessageType implements com.google.protobuf.ProtocolMessageEnum { START(0, 1), STOP(1, 2), USE(2, 3), RELEASE(3, 4), MAKE_AVAILABLE(4, 5), MAKE_UNAVAILABLE(5, 6), DISCONNECT(6, 7), RECONNECT(7, 8), RESIGN(8, 9), FAIL_OVER_CONNECTIONS(9, 10), FUNCTION_FUN0_UNIT(10, 11), FUNCTION_FUN0_ANY(11, 12), FUNCTION_FUN1_ARG_UNIT(12, 13), FUNCTION_FUN1_ARG_ANY(13, 14), ; public final int getNumber() { return value; } public static RemoteDaemonMessageType valueOf(int value) { switch (value) { case 1: return START; case 2: return STOP; case 3: return USE; case 4: return RELEASE; case 5: return MAKE_AVAILABLE; case 6: return MAKE_UNAVAILABLE; case 7: return DISCONNECT; case 8: return RECONNECT; case 9: return RESIGN; case 10: return FAIL_OVER_CONNECTIONS; case 11: return FUNCTION_FUN0_UNIT; case 12: return FUNCTION_FUN0_ANY; case 13: return FUNCTION_FUN1_ARG_UNIT; case 14: return FUNCTION_FUN1_ARG_ANY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RemoteDaemonMessageType findValueByNumber(int number) { return RemoteDaemonMessageType.valueOf(number) ; } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return akka.cloud.cluster.ClusterProtocol.getDescriptor().getEnumTypes().get(0); } private static final RemoteDaemonMessageType[] VALUES = { START, STOP, USE, RELEASE, MAKE_AVAILABLE, MAKE_UNAVAILABLE, DISCONNECT, RECONNECT, RESIGN, FAIL_OVER_CONNECTIONS, FUNCTION_FUN0_UNIT, FUNCTION_FUN0_ANY, FUNCTION_FUN1_ARG_UNIT, FUNCTION_FUN1_ARG_ANY, }; public static RemoteDaemonMessageType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private RemoteDaemonMessageType(int index, int value) { this.index = index; this.value = value; } static { akka.cloud.cluster.ClusterProtocol.getDescriptor(); } // @@protoc_insertion_point(enum_scope:RemoteDaemonMessageType) } public static final class RemoteDaemonMessageProtocol extends com.google.protobuf.GeneratedMessage { // Use RemoteDaemonMessageProtocol.newBuilder() to construct. private RemoteDaemonMessageProtocol() { initFields(); } private RemoteDaemonMessageProtocol(boolean noInit) {} private static final RemoteDaemonMessageProtocol defaultInstance; public static RemoteDaemonMessageProtocol getDefaultInstance() { return defaultInstance; } public RemoteDaemonMessageProtocol getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.cloud.cluster.ClusterProtocol.internal_static_RemoteDaemonMessageProtocol_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return akka.cloud.cluster.ClusterProtocol.internal_static_RemoteDaemonMessageProtocol_fieldAccessorTable; } // required .RemoteDaemonMessageType messageType = 1; public static final int MESSAGETYPE_FIELD_NUMBER = 1; private boolean hasMessageType; private akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType messageType_; public boolean hasMessageType() { return hasMessageType; } public akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType getMessageType() { return messageType_; } // optional .UuidProtocol actorUuid = 2; public static final int ACTORUUID_FIELD_NUMBER = 2; private boolean hasActorUuid; private akka.cloud.cluster.ClusterProtocol.UuidProtocol actorUuid_; public boolean hasActorUuid() { return hasActorUuid; } public akka.cloud.cluster.ClusterProtocol.UuidProtocol getActorUuid() { return actorUuid_; } // optional string actorId = 3; public static final int ACTORID_FIELD_NUMBER = 3; private boolean hasActorId; private java.lang.String actorId_ = ""; public boolean hasActorId() { return hasActorId; } public java.lang.String getActorId() { return actorId_; } // optional string actorClassName = 4; public static final int ACTORCLASSNAME_FIELD_NUMBER = 4; private boolean hasActorClassName; private java.lang.String actorClassName_ = ""; public boolean hasActorClassName() { return hasActorClassName; } public java.lang.String getActorClassName() { return actorClassName_; } // optional bytes payload = 5; public static final int PAYLOAD_FIELD_NUMBER = 5; private boolean hasPayload; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPayload() { return hasPayload; } public com.google.protobuf.ByteString getPayload() { return payload_; } private void initFields() { messageType_ = akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType.START; actorUuid_ = akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance(); } public final boolean isInitialized() { if (!hasMessageType) return false; if (hasActorUuid()) { if (!getActorUuid().isInitialized()) return false; } return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasMessageType()) { output.writeEnum(1, getMessageType().getNumber()); } if (hasActorUuid()) { output.writeMessage(2, getActorUuid()); } if (hasActorId()) { output.writeString(3, getActorId()); } if (hasActorClassName()) { output.writeString(4, getActorClassName()); } if (hasPayload()) { output.writeBytes(5, getPayload()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasMessageType()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, getMessageType().getNumber()); } if (hasActorUuid()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getActorUuid()); } if (hasActorId()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getActorId()); } if (hasActorClassName()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(4, getActorClassName()); } if (hasPayload()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getPayload()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol 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.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol 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.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol 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.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder { private akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol result; // Construct using akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol(); return builder; } protected akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.getDescriptor(); } public akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol getDefaultInstanceForType() { return akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol) { return mergeFrom((akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol other) { if (other == akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.getDefaultInstance()) return this; if (other.hasMessageType()) { setMessageType(other.getMessageType()); } if (other.hasActorUuid()) { mergeActorUuid(other.getActorUuid()); } if (other.hasActorId()) { setActorId(other.getActorId()); } if (other.hasActorClassName()) { setActorClassName(other.getActorClassName()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { int rawValue = input.readEnum(); akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType value = akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { setMessageType(value); } break; } case 18: { akka.cloud.cluster.ClusterProtocol.UuidProtocol.Builder subBuilder = akka.cloud.cluster.ClusterProtocol.UuidProtocol.newBuilder(); if (hasActorUuid()) { subBuilder.mergeFrom(getActorUuid()); } input.readMessage(subBuilder, extensionRegistry); setActorUuid(subBuilder.buildPartial()); break; } case 26: { setActorId(input.readString()); break; } case 34: { setActorClassName(input.readString()); break; } case 42: { setPayload(input.readBytes()); break; } } } } // required .RemoteDaemonMessageType messageType = 1; public boolean hasMessageType() { return result.hasMessageType(); } public akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType getMessageType() { return result.getMessageType(); } public Builder setMessageType(akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType value) { if (value == null) { throw new NullPointerException(); } result.hasMessageType = true; result.messageType_ = value; return this; } public Builder clearMessageType() { result.hasMessageType = false; result.messageType_ = akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageType.START; return this; } // optional .UuidProtocol actorUuid = 2; public boolean hasActorUuid() { return result.hasActorUuid(); } public akka.cloud.cluster.ClusterProtocol.UuidProtocol getActorUuid() { return result.getActorUuid(); } public Builder setActorUuid(akka.cloud.cluster.ClusterProtocol.UuidProtocol value) { if (value == null) { throw new NullPointerException(); } result.hasActorUuid = true; result.actorUuid_ = value; return this; } public Builder setActorUuid(akka.cloud.cluster.ClusterProtocol.UuidProtocol.Builder builderForValue) { result.hasActorUuid = true; result.actorUuid_ = builderForValue.build(); return this; } public Builder mergeActorUuid(akka.cloud.cluster.ClusterProtocol.UuidProtocol value) { if (result.hasActorUuid() && result.actorUuid_ != akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance()) { result.actorUuid_ = akka.cloud.cluster.ClusterProtocol.UuidProtocol.newBuilder(result.actorUuid_).mergeFrom(value).buildPartial(); } else { result.actorUuid_ = value; } result.hasActorUuid = true; return this; } public Builder clearActorUuid() { result.hasActorUuid = false; result.actorUuid_ = akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance(); return this; } // optional string actorId = 3; public boolean hasActorId() { return result.hasActorId(); } public java.lang.String getActorId() { return result.getActorId(); } public Builder setActorId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasActorId = true; result.actorId_ = value; return this; } public Builder clearActorId() { result.hasActorId = false; result.actorId_ = getDefaultInstance().getActorId(); return this; } // optional string actorClassName = 4; public boolean hasActorClassName() { return result.hasActorClassName(); } public java.lang.String getActorClassName() { return result.getActorClassName(); } public Builder setActorClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasActorClassName = true; result.actorClassName_ = value; return this; } public Builder clearActorClassName() { result.hasActorClassName = false; result.actorClassName_ = getDefaultInstance().getActorClassName(); return this; } // optional bytes payload = 5; public boolean hasPayload() { return result.hasPayload(); } public com.google.protobuf.ByteString getPayload() { return result.getPayload(); } public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasPayload = true; result.payload_ = value; return this; } public Builder clearPayload() { result.hasPayload = false; result.payload_ = getDefaultInstance().getPayload(); return this; } // @@protoc_insertion_point(builder_scope:RemoteDaemonMessageProtocol) } static { defaultInstance = new RemoteDaemonMessageProtocol(true); akka.cloud.cluster.ClusterProtocol.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RemoteDaemonMessageProtocol) } public static final class DurableMailboxMessageProtocol extends com.google.protobuf.GeneratedMessage { // Use DurableMailboxMessageProtocol.newBuilder() to construct. private DurableMailboxMessageProtocol() { initFields(); } private DurableMailboxMessageProtocol(boolean noInit) {} private static final DurableMailboxMessageProtocol defaultInstance; public static DurableMailboxMessageProtocol getDefaultInstance() { return defaultInstance; } public DurableMailboxMessageProtocol getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.cloud.cluster.ClusterProtocol.internal_static_DurableMailboxMessageProtocol_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return akka.cloud.cluster.ClusterProtocol.internal_static_DurableMailboxMessageProtocol_fieldAccessorTable; } // required string ownerActorId = 1; public static final int OWNERACTORID_FIELD_NUMBER = 1; private boolean hasOwnerActorId; private java.lang.String ownerActorId_ = ""; public boolean hasOwnerActorId() { return hasOwnerActorId; } public java.lang.String getOwnerActorId() { return ownerActorId_; } // optional string senderActorId = 2; public static final int SENDERACTORID_FIELD_NUMBER = 2; private boolean hasSenderActorId; private java.lang.String senderActorId_ = ""; public boolean hasSenderActorId() { return hasSenderActorId; } public java.lang.String getSenderActorId() { return senderActorId_; } // optional .UuidProtocol futureUuid = 3; public static final int FUTUREUUID_FIELD_NUMBER = 3; private boolean hasFutureUuid; private akka.cloud.cluster.ClusterProtocol.UuidProtocol futureUuid_; public boolean hasFutureUuid() { return hasFutureUuid; } public akka.cloud.cluster.ClusterProtocol.UuidProtocol getFutureUuid() { return futureUuid_; } // required bytes message = 4; public static final int MESSAGE_FIELD_NUMBER = 4; private boolean hasMessage; private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; public boolean hasMessage() { return hasMessage; } public com.google.protobuf.ByteString getMessage() { return message_; } private void initFields() { futureUuid_ = akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance(); } public final boolean isInitialized() { if (!hasOwnerActorId) return false; if (!hasMessage) return false; if (hasFutureUuid()) { if (!getFutureUuid().isInitialized()) return false; } return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasOwnerActorId()) { output.writeString(1, getOwnerActorId()); } if (hasSenderActorId()) { output.writeString(2, getSenderActorId()); } if (hasFutureUuid()) { output.writeMessage(3, getFutureUuid()); } if (hasMessage()) { output.writeBytes(4, getMessage()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasOwnerActorId()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getOwnerActorId()); } if (hasSenderActorId()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getSenderActorId()); } if (hasFutureUuid()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFutureUuid()); } if (hasMessage()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getMessage()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol 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.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol 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.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol 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.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder { private akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol result; // Construct using akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol(); return builder; } protected akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol.getDescriptor(); } public akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol getDefaultInstanceForType() { return akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol) { return mergeFrom((akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol other) { if (other == akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol.getDefaultInstance()) return this; if (other.hasOwnerActorId()) { setOwnerActorId(other.getOwnerActorId()); } if (other.hasSenderActorId()) { setSenderActorId(other.getSenderActorId()); } if (other.hasFutureUuid()) { mergeFutureUuid(other.getFutureUuid()); } if (other.hasMessage()) { setMessage(other.getMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 10: { setOwnerActorId(input.readString()); break; } case 18: { setSenderActorId(input.readString()); break; } case 26: { akka.cloud.cluster.ClusterProtocol.UuidProtocol.Builder subBuilder = akka.cloud.cluster.ClusterProtocol.UuidProtocol.newBuilder(); if (hasFutureUuid()) { subBuilder.mergeFrom(getFutureUuid()); } input.readMessage(subBuilder, extensionRegistry); setFutureUuid(subBuilder.buildPartial()); break; } case 34: { setMessage(input.readBytes()); break; } } } } // required string ownerActorId = 1; public boolean hasOwnerActorId() { return result.hasOwnerActorId(); } public java.lang.String getOwnerActorId() { return result.getOwnerActorId(); } public Builder setOwnerActorId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasOwnerActorId = true; result.ownerActorId_ = value; return this; } public Builder clearOwnerActorId() { result.hasOwnerActorId = false; result.ownerActorId_ = getDefaultInstance().getOwnerActorId(); return this; } // optional string senderActorId = 2; public boolean hasSenderActorId() { return result.hasSenderActorId(); } public java.lang.String getSenderActorId() { return result.getSenderActorId(); } public Builder setSenderActorId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasSenderActorId = true; result.senderActorId_ = value; return this; } public Builder clearSenderActorId() { result.hasSenderActorId = false; result.senderActorId_ = getDefaultInstance().getSenderActorId(); return this; } // optional .UuidProtocol futureUuid = 3; public boolean hasFutureUuid() { return result.hasFutureUuid(); } public akka.cloud.cluster.ClusterProtocol.UuidProtocol getFutureUuid() { return result.getFutureUuid(); } public Builder setFutureUuid(akka.cloud.cluster.ClusterProtocol.UuidProtocol value) { if (value == null) { throw new NullPointerException(); } result.hasFutureUuid = true; result.futureUuid_ = value; return this; } public Builder setFutureUuid(akka.cloud.cluster.ClusterProtocol.UuidProtocol.Builder builderForValue) { result.hasFutureUuid = true; result.futureUuid_ = builderForValue.build(); return this; } public Builder mergeFutureUuid(akka.cloud.cluster.ClusterProtocol.UuidProtocol value) { if (result.hasFutureUuid() && result.futureUuid_ != akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance()) { result.futureUuid_ = akka.cloud.cluster.ClusterProtocol.UuidProtocol.newBuilder(result.futureUuid_).mergeFrom(value).buildPartial(); } else { result.futureUuid_ = value; } result.hasFutureUuid = true; return this; } public Builder clearFutureUuid() { result.hasFutureUuid = false; result.futureUuid_ = akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance(); return this; } // required bytes message = 4; public boolean hasMessage() { return result.hasMessage(); } public com.google.protobuf.ByteString getMessage() { return result.getMessage(); } public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasMessage = true; result.message_ = value; return this; } public Builder clearMessage() { result.hasMessage = false; result.message_ = getDefaultInstance().getMessage(); return this; } // @@protoc_insertion_point(builder_scope:DurableMailboxMessageProtocol) } static { defaultInstance = new DurableMailboxMessageProtocol(true); akka.cloud.cluster.ClusterProtocol.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:DurableMailboxMessageProtocol) } public static final class UuidProtocol extends com.google.protobuf.GeneratedMessage { // Use UuidProtocol.newBuilder() to construct. private UuidProtocol() { initFields(); } private UuidProtocol(boolean noInit) {} private static final UuidProtocol defaultInstance; public static UuidProtocol getDefaultInstance() { return defaultInstance; } public UuidProtocol getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return akka.cloud.cluster.ClusterProtocol.internal_static_UuidProtocol_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return akka.cloud.cluster.ClusterProtocol.internal_static_UuidProtocol_fieldAccessorTable; } // required uint64 high = 1; public static final int HIGH_FIELD_NUMBER = 1; private boolean hasHigh; private long high_ = 0L; public boolean hasHigh() { return hasHigh; } public long getHigh() { return high_; } // required uint64 low = 2; public static final int LOW_FIELD_NUMBER = 2; private boolean hasLow; private long low_ = 0L; public boolean hasLow() { return hasLow; } public long getLow() { return low_; } private void initFields() { } public final boolean isInitialized() { if (!hasHigh) return false; if (!hasLow) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasHigh()) { output.writeUInt64(1, getHigh()); } if (hasLow()) { output.writeUInt64(2, getLow()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasHigh()) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, getHigh()); } if (hasLow()) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, getLow()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol 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.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol 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.cloud.cluster.ClusterProtocol.UuidProtocol 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.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static akka.cloud.cluster.ClusterProtocol.UuidProtocol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(akka.cloud.cluster.ClusterProtocol.UuidProtocol prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder { private akka.cloud.cluster.ClusterProtocol.UuidProtocol result; // Construct using akka.cloud.cluster.ClusterProtocol.UuidProtocol.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new akka.cloud.cluster.ClusterProtocol.UuidProtocol(); return builder; } protected akka.cloud.cluster.ClusterProtocol.UuidProtocol internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new akka.cloud.cluster.ClusterProtocol.UuidProtocol(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDescriptor(); } public akka.cloud.cluster.ClusterProtocol.UuidProtocol getDefaultInstanceForType() { return akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public akka.cloud.cluster.ClusterProtocol.UuidProtocol build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private akka.cloud.cluster.ClusterProtocol.UuidProtocol buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public akka.cloud.cluster.ClusterProtocol.UuidProtocol buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } akka.cloud.cluster.ClusterProtocol.UuidProtocol returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof akka.cloud.cluster.ClusterProtocol.UuidProtocol) { return mergeFrom((akka.cloud.cluster.ClusterProtocol.UuidProtocol)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(akka.cloud.cluster.ClusterProtocol.UuidProtocol other) { if (other == akka.cloud.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance()) return this; if (other.hasHigh()) { setHigh(other.getHigh()); } if (other.hasLow()) { setLow(other.getLow()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setHigh(input.readUInt64()); break; } case 16: { setLow(input.readUInt64()); break; } } } } // required uint64 high = 1; public boolean hasHigh() { return result.hasHigh(); } public long getHigh() { return result.getHigh(); } public Builder setHigh(long value) { result.hasHigh = true; result.high_ = value; return this; } public Builder clearHigh() { result.hasHigh = false; result.high_ = 0L; return this; } // required uint64 low = 2; public boolean hasLow() { return result.hasLow(); } public long getLow() { return result.getLow(); } public Builder setLow(long value) { result.hasLow = true; result.low_ = value; return this; } public Builder clearLow() { result.hasLow = false; result.low_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:UuidProtocol) } static { defaultInstance = new UuidProtocol(true); akka.cloud.cluster.ClusterProtocol.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:UuidProtocol) } private static com.google.protobuf.Descriptors.Descriptor internal_static_RemoteDaemonMessageProtocol_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RemoteDaemonMessageProtocol_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_DurableMailboxMessageProtocol_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_DurableMailboxMessageProtocol_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_UuidProtocol_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_UuidProtocol_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\025ClusterProtocol.proto\"\250\001\n\033RemoteDaemon" + "MessageProtocol\022-\n\013messageType\030\001 \002(\0162\030.R" + "emoteDaemonMessageType\022 \n\tactorUuid\030\002 \001(" + "\0132\r.UuidProtocol\022\017\n\007actorId\030\003 \001(\t\022\026\n\016act" + "orClassName\030\004 \001(\t\022\017\n\007payload\030\005 \001(\014\"\200\001\n\035D" + "urableMailboxMessageProtocol\022\024\n\014ownerAct" + "orId\030\001 \002(\t\022\025\n\rsenderActorId\030\002 \001(\t\022!\n\nfut" + "ureUuid\030\003 \001(\0132\r.UuidProtocol\022\017\n\007message\030" + "\004 \002(\014\")\n\014UuidProtocol\022\014\n\004high\030\001 \002(\004\022\013\n\003l" + "ow\030\002 \002(\004*\232\002\n\027RemoteDaemonMessageType\022\t\n\005", "START\020\001\022\010\n\004STOP\020\002\022\007\n\003USE\020\003\022\013\n\007RELEASE\020\004\022" + "\022\n\016MAKE_AVAILABLE\020\005\022\024\n\020MAKE_UNAVAILABLE\020" + "\006\022\016\n\nDISCONNECT\020\007\022\r\n\tRECONNECT\020\010\022\n\n\006RESI" + "GN\020\t\022\031\n\025FAIL_OVER_CONNECTIONS\020\n\022\026\n\022FUNCT" + "ION_FUN0_UNIT\020\013\022\025\n\021FUNCTION_FUN0_ANY\020\014\022\032" + "\n\026FUNCTION_FUN1_ARG_UNIT\020\r\022\031\n\025FUNCTION_F" + "UN1_ARG_ANY\020\016B\026\n\022akka.cloud.clusterH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_RemoteDaemonMessageProtocol_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_RemoteDaemonMessageProtocol_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RemoteDaemonMessageProtocol_descriptor, new java.lang.String[] { "MessageType", "ActorUuid", "ActorId", "ActorClassName", "Payload", }, akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.class, akka.cloud.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.Builder.class); internal_static_DurableMailboxMessageProtocol_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_DurableMailboxMessageProtocol_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_DurableMailboxMessageProtocol_descriptor, new java.lang.String[] { "OwnerActorId", "SenderActorId", "FutureUuid", "Message", }, akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol.class, akka.cloud.cluster.ClusterProtocol.DurableMailboxMessageProtocol.Builder.class); internal_static_UuidProtocol_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_UuidProtocol_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UuidProtocol_descriptor, new java.lang.String[] { "High", "Low", }, akka.cloud.cluster.ClusterProtocol.UuidProtocol.class, akka.cloud.cluster.ClusterProtocol.UuidProtocol.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } public static void internalForceInit() {} // @@protoc_insertion_point(outer_class_scope) }