pekko/akka-cluster/src/main/java/akka/cluster/ClusterProtocol.java

1440 lines
54 KiB
Java
Raw Normal View History

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ClusterProtocol.proto
package akka.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<RemoteDaemonMessageType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<RemoteDaemonMessageType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RemoteDaemonMessageType>() {
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.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.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.cluster.ClusterProtocol.internal_static_RemoteDaemonMessageProtocol_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.ClusterProtocol.internal_static_RemoteDaemonMessageProtocol_fieldAccessorTable;
}
// required .RemoteDaemonMessageType messageType = 1;
public static final int MESSAGETYPE_FIELD_NUMBER = 1;
private boolean hasMessageType;
private akka.cluster.ClusterProtocol.RemoteDaemonMessageType messageType_;
public boolean hasMessageType() { return hasMessageType; }
public akka.cluster.ClusterProtocol.RemoteDaemonMessageType getMessageType() { return messageType_; }
// optional .UuidProtocol actorUuid = 2;
public static final int ACTORUUID_FIELD_NUMBER = 2;
private boolean hasActorUuid;
private akka.cluster.ClusterProtocol.UuidProtocol actorUuid_;
public boolean hasActorUuid() { return hasActorUuid; }
public akka.cluster.ClusterProtocol.UuidProtocol getActorUuid() { return actorUuid_; }
// optional string actorAddress = 3;
public static final int ACTORADDRESS_FIELD_NUMBER = 3;
private boolean hasActorAddress;
private java.lang.String actorAddress_ = "";
public boolean hasActorAddress() { return hasActorAddress; }
public java.lang.String getActorAddress() { return actorAddress_; }
// 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.cluster.ClusterProtocol.RemoteDaemonMessageType.START;
actorUuid_ = akka.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 (hasActorAddress()) {
output.writeString(3, getActorAddress());
}
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 (hasActorAddress()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getActorAddress());
}
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.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static akka.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.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static akka.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.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static akka.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.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.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.cluster.ClusterProtocol.RemoteDaemonMessageProtocol parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static akka.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.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<Builder> {
private akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol result;
// Construct using akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol();
return builder;
}
protected akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.getDescriptor();
}
public akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol getDefaultInstanceForType() {
return akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol) {
return mergeFrom((akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol other) {
if (other == akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.getDefaultInstance()) return this;
if (other.hasMessageType()) {
setMessageType(other.getMessageType());
}
if (other.hasActorUuid()) {
mergeActorUuid(other.getActorUuid());
}
if (other.hasActorAddress()) {
setActorAddress(other.getActorAddress());
}
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.cluster.ClusterProtocol.RemoteDaemonMessageType value = akka.cluster.ClusterProtocol.RemoteDaemonMessageType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
setMessageType(value);
}
break;
}
case 18: {
akka.cluster.ClusterProtocol.UuidProtocol.Builder subBuilder = akka.cluster.ClusterProtocol.UuidProtocol.newBuilder();
if (hasActorUuid()) {
subBuilder.mergeFrom(getActorUuid());
}
input.readMessage(subBuilder, extensionRegistry);
setActorUuid(subBuilder.buildPartial());
break;
}
case 26: {
setActorAddress(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.cluster.ClusterProtocol.RemoteDaemonMessageType getMessageType() {
return result.getMessageType();
}
public Builder setMessageType(akka.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.cluster.ClusterProtocol.RemoteDaemonMessageType.START;
return this;
}
// optional .UuidProtocol actorUuid = 2;
public boolean hasActorUuid() {
return result.hasActorUuid();
}
public akka.cluster.ClusterProtocol.UuidProtocol getActorUuid() {
return result.getActorUuid();
}
public Builder setActorUuid(akka.cluster.ClusterProtocol.UuidProtocol value) {
if (value == null) {
throw new NullPointerException();
}
result.hasActorUuid = true;
result.actorUuid_ = value;
return this;
}
public Builder setActorUuid(akka.cluster.ClusterProtocol.UuidProtocol.Builder builderForValue) {
result.hasActorUuid = true;
result.actorUuid_ = builderForValue.build();
return this;
}
public Builder mergeActorUuid(akka.cluster.ClusterProtocol.UuidProtocol value) {
if (result.hasActorUuid() &&
result.actorUuid_ != akka.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance()) {
result.actorUuid_ =
akka.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.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance();
return this;
}
// optional string actorAddress = 3;
public boolean hasActorAddress() {
return result.hasActorAddress();
}
public java.lang.String getActorAddress() {
return result.getActorAddress();
}
public Builder setActorAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasActorAddress = true;
result.actorAddress_ = value;
return this;
}
public Builder clearActorAddress() {
result.hasActorAddress = false;
result.actorAddress_ = getDefaultInstance().getActorAddress();
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.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.cluster.ClusterProtocol.internal_static_DurableMailboxMessageProtocol_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.ClusterProtocol.internal_static_DurableMailboxMessageProtocol_fieldAccessorTable;
}
// required string ownerActorAddress = 1;
public static final int OWNERACTORADDRESS_FIELD_NUMBER = 1;
private boolean hasOwnerActorAddress;
private java.lang.String ownerActorAddress_ = "";
public boolean hasOwnerActorAddress() { return hasOwnerActorAddress; }
public java.lang.String getOwnerActorAddress() { return ownerActorAddress_; }
// optional string senderActorAddress = 2;
public static final int SENDERACTORADDRESS_FIELD_NUMBER = 2;
private boolean hasSenderActorAddress;
private java.lang.String senderActorAddress_ = "";
public boolean hasSenderActorAddress() { return hasSenderActorAddress; }
public java.lang.String getSenderActorAddress() { return senderActorAddress_; }
// optional .UuidProtocol futureUuid = 3;
public static final int FUTUREUUID_FIELD_NUMBER = 3;
private boolean hasFutureUuid;
private akka.cluster.ClusterProtocol.UuidProtocol futureUuid_;
public boolean hasFutureUuid() { return hasFutureUuid; }
public akka.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.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance();
}
public final boolean isInitialized() {
if (!hasOwnerActorAddress) 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 (hasOwnerActorAddress()) {
output.writeString(1, getOwnerActorAddress());
}
if (hasSenderActorAddress()) {
output.writeString(2, getSenderActorAddress());
}
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 (hasOwnerActorAddress()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getOwnerActorAddress());
}
if (hasSenderActorAddress()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getSenderActorAddress());
}
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.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static akka.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.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static akka.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.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static akka.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.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.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.cluster.ClusterProtocol.DurableMailboxMessageProtocol parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static akka.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.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<Builder> {
private akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol result;
// Construct using akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol();
return builder;
}
protected akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol.getDescriptor();
}
public akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol getDefaultInstanceForType() {
return akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol) {
return mergeFrom((akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol other) {
if (other == akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol.getDefaultInstance()) return this;
if (other.hasOwnerActorAddress()) {
setOwnerActorAddress(other.getOwnerActorAddress());
}
if (other.hasSenderActorAddress()) {
setSenderActorAddress(other.getSenderActorAddress());
}
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: {
setOwnerActorAddress(input.readString());
break;
}
case 18: {
setSenderActorAddress(input.readString());
break;
}
case 26: {
akka.cluster.ClusterProtocol.UuidProtocol.Builder subBuilder = akka.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 ownerActorAddress = 1;
public boolean hasOwnerActorAddress() {
return result.hasOwnerActorAddress();
}
public java.lang.String getOwnerActorAddress() {
return result.getOwnerActorAddress();
}
public Builder setOwnerActorAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasOwnerActorAddress = true;
result.ownerActorAddress_ = value;
return this;
}
public Builder clearOwnerActorAddress() {
result.hasOwnerActorAddress = false;
result.ownerActorAddress_ = getDefaultInstance().getOwnerActorAddress();
return this;
}
// optional string senderActorAddress = 2;
public boolean hasSenderActorAddress() {
return result.hasSenderActorAddress();
}
public java.lang.String getSenderActorAddress() {
return result.getSenderActorAddress();
}
public Builder setSenderActorAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasSenderActorAddress = true;
result.senderActorAddress_ = value;
return this;
}
public Builder clearSenderActorAddress() {
result.hasSenderActorAddress = false;
result.senderActorAddress_ = getDefaultInstance().getSenderActorAddress();
return this;
}
// optional .UuidProtocol futureUuid = 3;
public boolean hasFutureUuid() {
return result.hasFutureUuid();
}
public akka.cluster.ClusterProtocol.UuidProtocol getFutureUuid() {
return result.getFutureUuid();
}
public Builder setFutureUuid(akka.cluster.ClusterProtocol.UuidProtocol value) {
if (value == null) {
throw new NullPointerException();
}
result.hasFutureUuid = true;
result.futureUuid_ = value;
return this;
}
public Builder setFutureUuid(akka.cluster.ClusterProtocol.UuidProtocol.Builder builderForValue) {
result.hasFutureUuid = true;
result.futureUuid_ = builderForValue.build();
return this;
}
public Builder mergeFutureUuid(akka.cluster.ClusterProtocol.UuidProtocol value) {
if (result.hasFutureUuid() &&
result.futureUuid_ != akka.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance()) {
result.futureUuid_ =
akka.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.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.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.cluster.ClusterProtocol.internal_static_UuidProtocol_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.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.cluster.ClusterProtocol.UuidProtocol parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static akka.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.cluster.ClusterProtocol.UuidProtocol parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static akka.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.cluster.ClusterProtocol.UuidProtocol parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static akka.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.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.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.cluster.ClusterProtocol.UuidProtocol parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static akka.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.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<Builder> {
private akka.cluster.ClusterProtocol.UuidProtocol result;
// Construct using akka.cluster.ClusterProtocol.UuidProtocol.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new akka.cluster.ClusterProtocol.UuidProtocol();
return builder;
}
protected akka.cluster.ClusterProtocol.UuidProtocol internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new akka.cluster.ClusterProtocol.UuidProtocol();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return akka.cluster.ClusterProtocol.UuidProtocol.getDescriptor();
}
public akka.cluster.ClusterProtocol.UuidProtocol getDefaultInstanceForType() {
return akka.cluster.ClusterProtocol.UuidProtocol.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public akka.cluster.ClusterProtocol.UuidProtocol build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private akka.cluster.ClusterProtocol.UuidProtocol buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public akka.cluster.ClusterProtocol.UuidProtocol buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
akka.cluster.ClusterProtocol.UuidProtocol returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof akka.cluster.ClusterProtocol.UuidProtocol) {
return mergeFrom((akka.cluster.ClusterProtocol.UuidProtocol)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(akka.cluster.ClusterProtocol.UuidProtocol other) {
if (other == akka.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.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\"\255\001\n\033RemoteDaemon" +
"MessageProtocol\022-\n\013messageType\030\001 \002(\0162\030.R" +
"emoteDaemonMessageType\022 \n\tactorUuid\030\002 \001(" +
"\0132\r.UuidProtocol\022\024\n\014actorAddress\030\003 \001(\t\022\026" +
"\n\016actorClassName\030\004 \001(\t\022\017\n\007payload\030\005 \001(\014\"" +
"\212\001\n\035DurableMailboxMessageProtocol\022\031\n\021own" +
"erActorAddress\030\001 \002(\t\022\032\n\022senderActorAddre" +
"ss\030\002 \001(\t\022!\n\nfutureUuid\030\003 \001(\0132\r.UuidProto" +
"col\022\017\n\007message\030\004 \002(\014\")\n\014UuidProtocol\022\014\n\004" +
"high\030\001 \002(\004\022\013\n\003low\030\002 \002(\004*\232\002\n\027RemoteDaemon",
"MessageType\022\t\n\005START\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\020MA" +
"KE_UNAVAILABLE\020\006\022\016\n\nDISCONNECT\020\007\022\r\n\tRECO" +
"NNECT\020\010\022\n\n\006RESIGN\020\t\022\031\n\025FAIL_OVER_CONNECT" +
"IONS\020\n\022\026\n\022FUNCTION_FUN0_UNIT\020\013\022\025\n\021FUNCTI" +
"ON_FUN0_ANY\020\014\022\032\n\026FUNCTION_FUN1_ARG_UNIT\020" +
"\r\022\031\n\025FUNCTION_FUN1_ARG_ANY\020\016B\020\n\014akka.clu" +
"sterH\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", "ActorAddress", "ActorClassName", "Payload", },
akka.cluster.ClusterProtocol.RemoteDaemonMessageProtocol.class,
akka.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[] { "OwnerActorAddress", "SenderActorAddress", "FutureUuid", "Message", },
akka.cluster.ClusterProtocol.DurableMailboxMessageProtocol.class,
akka.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.cluster.ClusterProtocol.UuidProtocol.class,
akka.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)
}