2011-09-09 13:46:36 +02:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
|
// source: ProtobufProtocol.proto
|
|
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
package akka.remote;
|
|
|
|
|
|
|
|
|
|
import com.google.protobuf.AbstractMessage;
|
2011-09-09 13:46:36 +02:00
|
|
|
|
|
|
|
|
public final class ProtobufProtocol {
|
|
|
|
|
private ProtobufProtocol() {}
|
|
|
|
|
public static void registerAllExtensions(
|
|
|
|
|
com.google.protobuf.ExtensionRegistry registry) {
|
|
|
|
|
}
|
|
|
|
|
public interface MyMessageOrBuilder
|
|
|
|
|
extends com.google.protobuf.MessageOrBuilder {
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required uint64 id = 1;
|
|
|
|
|
boolean hasId();
|
|
|
|
|
long getId();
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required string name = 2;
|
|
|
|
|
boolean hasName();
|
|
|
|
|
String getName();
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required bool status = 3;
|
|
|
|
|
boolean hasStatus();
|
|
|
|
|
boolean getStatus();
|
|
|
|
|
}
|
|
|
|
|
public static final class MyMessage extends
|
|
|
|
|
com.google.protobuf.GeneratedMessage
|
|
|
|
|
implements MyMessageOrBuilder {
|
|
|
|
|
// Use MyMessage.newBuilder() to construct.
|
|
|
|
|
private MyMessage(Builder builder) {
|
|
|
|
|
super(builder);
|
|
|
|
|
}
|
|
|
|
|
private MyMessage(boolean noInit) {}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private static final MyMessage defaultInstance;
|
|
|
|
|
public static MyMessage getDefaultInstance() {
|
|
|
|
|
return defaultInstance;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public MyMessage getDefaultInstanceForType() {
|
|
|
|
|
return defaultInstance;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
|
getDescriptor() {
|
2012-09-17 12:54:08 +02:00
|
|
|
return ProtobufProtocol.internal_static_akka_actor_MyMessage_descriptor;
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
|
|
|
internalGetFieldAccessorTable() {
|
2012-09-17 12:54:08 +02:00
|
|
|
return ProtobufProtocol.internal_static_akka_actor_MyMessage_fieldAccessorTable;
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private int bitField0_;
|
|
|
|
|
// required uint64 id = 1;
|
|
|
|
|
public static final int ID_FIELD_NUMBER = 1;
|
|
|
|
|
private long id_;
|
|
|
|
|
public boolean hasId() {
|
|
|
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
|
|
|
}
|
|
|
|
|
public long getId() {
|
|
|
|
|
return id_;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required string name = 2;
|
|
|
|
|
public static final int NAME_FIELD_NUMBER = 2;
|
|
|
|
|
private java.lang.Object name_;
|
|
|
|
|
public boolean hasName() {
|
|
|
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
|
|
|
}
|
|
|
|
|
public String getName() {
|
|
|
|
|
java.lang.Object ref = name_;
|
|
|
|
|
if (ref instanceof String) {
|
|
|
|
|
return (String) ref;
|
|
|
|
|
} else {
|
2011-10-28 15:55:15 +02:00
|
|
|
com.google.protobuf.ByteString bs =
|
2011-09-09 13:46:36 +02:00
|
|
|
(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) {
|
2011-10-28 15:55:15 +02:00
|
|
|
com.google.protobuf.ByteString b =
|
2011-09-09 13:46:36 +02:00
|
|
|
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
|
|
|
|
|
name_ = b;
|
|
|
|
|
return b;
|
|
|
|
|
} else {
|
|
|
|
|
return (com.google.protobuf.ByteString) ref;
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required bool status = 3;
|
|
|
|
|
public static final int STATUS_FIELD_NUMBER = 3;
|
|
|
|
|
private boolean status_;
|
|
|
|
|
public boolean hasStatus() {
|
|
|
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
|
|
|
}
|
|
|
|
|
public boolean getStatus() {
|
|
|
|
|
return status_;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private void initFields() {
|
|
|
|
|
id_ = 0L;
|
|
|
|
|
name_ = "";
|
|
|
|
|
status_ = false;
|
|
|
|
|
}
|
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
|
|
|
public final boolean isInitialized() {
|
|
|
|
|
byte isInitialized = memoizedIsInitialized;
|
|
|
|
|
if (isInitialized != -1) return isInitialized == 1;
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
if (!hasId()) {
|
|
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!hasName()) {
|
|
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!hasStatus()) {
|
|
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
memoizedIsInitialized = 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
|
|
|
throws java.io.IOException {
|
|
|
|
|
getSerializedSize();
|
|
|
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
|
output.writeUInt64(1, id_);
|
|
|
|
|
}
|
|
|
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
|
|
|
output.writeBytes(2, getNameBytes());
|
|
|
|
|
}
|
|
|
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
|
|
output.writeBool(3, status_);
|
|
|
|
|
}
|
|
|
|
|
getUnknownFields().writeTo(output);
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private int memoizedSerializedSize = -1;
|
|
|
|
|
public int getSerializedSize() {
|
|
|
|
|
int size = memoizedSerializedSize;
|
|
|
|
|
if (size != -1) return size;
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
size = 0;
|
|
|
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
|
|
.computeUInt64Size(1, id_);
|
|
|
|
|
}
|
|
|
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
|
|
.computeBytesSize(2, getNameBytes());
|
|
|
|
|
}
|
|
|
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
|
|
.computeBoolSize(3, status_);
|
|
|
|
|
}
|
|
|
|
|
size += getUnknownFields().getSerializedSize();
|
|
|
|
|
memoizedSerializedSize = size;
|
|
|
|
|
return size;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
|
@java.lang.Override
|
|
|
|
|
protected java.lang.Object writeReplace()
|
|
|
|
|
throws java.io.ObjectStreamException {
|
|
|
|
|
return super.writeReplace();
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
com.google.protobuf.ByteString data)
|
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
|
return newBuilder().mergeFrom(data).buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
com.google.protobuf.ByteString data,
|
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
|
return newBuilder().mergeFrom(data, extensionRegistry)
|
|
|
|
|
.buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(byte[] data)
|
2011-09-09 13:46:36 +02:00
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
|
return newBuilder().mergeFrom(data).buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
byte[] data,
|
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
|
return newBuilder().mergeFrom(data, extensionRegistry)
|
|
|
|
|
.buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(java.io.InputStream input)
|
2011-09-09 13:46:36 +02:00
|
|
|
throws java.io.IOException {
|
|
|
|
|
return newBuilder().mergeFrom(input).buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
java.io.InputStream input,
|
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
|
throws java.io.IOException {
|
|
|
|
|
return newBuilder().mergeFrom(input, extensionRegistry)
|
|
|
|
|
.buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseDelimitedFrom(java.io.InputStream input)
|
2011-09-09 13:46:36 +02:00
|
|
|
throws java.io.IOException {
|
|
|
|
|
Builder builder = newBuilder();
|
|
|
|
|
if (builder.mergeDelimitedFrom(input)) {
|
|
|
|
|
return builder.buildParsed();
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseDelimitedFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
com.google.protobuf.CodedInputStream input)
|
|
|
|
|
throws java.io.IOException {
|
|
|
|
|
return newBuilder().mergeFrom(input).buildParsed();
|
|
|
|
|
}
|
2012-09-17 12:54:08 +02:00
|
|
|
public static ProtobufProtocol.MyMessage parseFrom(
|
2011-09-09 13:46:36 +02:00
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
|
throws java.io.IOException {
|
|
|
|
|
return newBuilder().mergeFrom(input, extensionRegistry)
|
|
|
|
|
.buildParsed();
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public static Builder newBuilder() { return Builder.create(); }
|
|
|
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
2012-09-17 12:54:08 +02:00
|
|
|
public static Builder newBuilder(ProtobufProtocol.MyMessage prototype) {
|
2011-09-09 13:46:36 +02:00
|
|
|
return newBuilder().mergeFrom(prototype);
|
|
|
|
|
}
|
|
|
|
|
public Builder toBuilder() { return newBuilder(this); }
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
@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<Builder>
|
2012-09-17 12:54:08 +02:00
|
|
|
implements ProtobufProtocol.MyMessageOrBuilder {
|
2011-09-09 13:46:36 +02:00
|
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
|
getDescriptor() {
|
2012-09-17 12:54:08 +02:00
|
|
|
return ProtobufProtocol.internal_static_akka_actor_MyMessage_descriptor;
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
|
|
|
internalGetFieldAccessorTable() {
|
2012-09-17 12:54:08 +02:00
|
|
|
return ProtobufProtocol.internal_static_akka_actor_MyMessage_fieldAccessorTable;
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// Construct using akka.actor.ProtobufProtocol.MyMessage.newBuilder()
|
|
|
|
|
private Builder() {
|
|
|
|
|
maybeForceBuilderInitialization();
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-11-08 19:10:07 +01:00
|
|
|
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
2011-09-09 13:46:36 +02:00
|
|
|
super(parent);
|
|
|
|
|
maybeForceBuilderInitialization();
|
|
|
|
|
}
|
|
|
|
|
private void maybeForceBuilderInitialization() {
|
|
|
|
|
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private static Builder create() {
|
|
|
|
|
return new Builder();
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public Builder clear() {
|
|
|
|
|
super.clear();
|
|
|
|
|
id_ = 0L;
|
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
|
|
name_ = "";
|
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
|
|
|
status_ = false;
|
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
|
|
|
return this;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public Builder clone() {
|
|
|
|
|
return create().mergeFrom(buildPartial());
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
|
|
|
getDescriptorForType() {
|
2012-09-17 12:54:08 +02:00
|
|
|
return ProtobufProtocol.MyMessage.getDescriptor();
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
public ProtobufProtocol.MyMessage getDefaultInstanceForType() {
|
|
|
|
|
return ProtobufProtocol.MyMessage.getDefaultInstance();
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
public ProtobufProtocol.MyMessage build() {
|
|
|
|
|
ProtobufProtocol.MyMessage result = buildPartial();
|
2011-09-09 13:46:36 +02:00
|
|
|
if (!result.isInitialized()) {
|
2012-09-17 12:54:08 +02:00
|
|
|
throw AbstractMessage.Builder.newUninitializedMessageException(result);
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
private ProtobufProtocol.MyMessage buildParsed()
|
2011-09-09 13:46:36 +02:00
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
2012-09-17 12:54:08 +02:00
|
|
|
ProtobufProtocol.MyMessage result = buildPartial();
|
2011-09-09 13:46:36 +02:00
|
|
|
if (!result.isInitialized()) {
|
2012-09-17 12:54:08 +02:00
|
|
|
throw AbstractMessage.Builder.newUninitializedMessageException(
|
|
|
|
|
result).asInvalidProtocolBufferException();
|
2011-09-09 13:46:36 +02:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
public ProtobufProtocol.MyMessage buildPartial() {
|
|
|
|
|
ProtobufProtocol.MyMessage result = new ProtobufProtocol.MyMessage(this);
|
2011-09-09 13:46:36 +02:00
|
|
|
int from_bitField0_ = bitField0_;
|
|
|
|
|
int to_bitField0_ = 0;
|
|
|
|
|
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
|
to_bitField0_ |= 0x00000001;
|
|
|
|
|
}
|
|
|
|
|
result.id_ = id_;
|
|
|
|
|
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
|
|
|
to_bitField0_ |= 0x00000002;
|
|
|
|
|
}
|
|
|
|
|
result.name_ = name_;
|
|
|
|
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
|
|
to_bitField0_ |= 0x00000004;
|
|
|
|
|
}
|
|
|
|
|
result.status_ = status_;
|
|
|
|
|
result.bitField0_ = to_bitField0_;
|
|
|
|
|
onBuilt();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
2012-09-17 12:54:08 +02:00
|
|
|
if (other instanceof ProtobufProtocol.MyMessage) {
|
|
|
|
|
return mergeFrom((ProtobufProtocol.MyMessage)other);
|
2011-09-09 13:46:36 +02:00
|
|
|
} else {
|
|
|
|
|
super.mergeFrom(other);
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2012-09-17 12:54:08 +02:00
|
|
|
public Builder mergeFrom(ProtobufProtocol.MyMessage other) {
|
|
|
|
|
if (other == ProtobufProtocol.MyMessage.getDefaultInstance()) return this;
|
2011-09-09 13:46:36 +02:00
|
|
|
if (other.hasId()) {
|
|
|
|
|
setId(other.getId());
|
|
|
|
|
}
|
|
|
|
|
if (other.hasName()) {
|
|
|
|
|
setName(other.getName());
|
|
|
|
|
}
|
|
|
|
|
if (other.hasStatus()) {
|
|
|
|
|
setStatus(other.getStatus());
|
|
|
|
|
}
|
|
|
|
|
this.mergeUnknownFields(other.getUnknownFields());
|
|
|
|
|
return this;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public final boolean isInitialized() {
|
|
|
|
|
if (!hasId()) {
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!hasName()) {
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!hasStatus()) {
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
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: {
|
|
|
|
|
bitField0_ |= 0x00000001;
|
|
|
|
|
id_ = input.readUInt64();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 18: {
|
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
|
name_ = input.readBytes();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 24: {
|
|
|
|
|
bitField0_ |= 0x00000004;
|
|
|
|
|
status_ = input.readBool();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private int bitField0_;
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required uint64 id = 1;
|
|
|
|
|
private long id_ ;
|
|
|
|
|
public boolean hasId() {
|
|
|
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
|
|
|
}
|
|
|
|
|
public long getId() {
|
|
|
|
|
return id_;
|
|
|
|
|
}
|
|
|
|
|
public Builder setId(long value) {
|
|
|
|
|
bitField0_ |= 0x00000001;
|
|
|
|
|
id_ = value;
|
|
|
|
|
onChanged();
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
public Builder clearId() {
|
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
|
|
id_ = 0L;
|
|
|
|
|
onChanged();
|
|
|
|
|
return this;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required string name = 2;
|
|
|
|
|
private java.lang.Object name_ = "";
|
|
|
|
|
public boolean hasName() {
|
|
|
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
|
|
|
}
|
|
|
|
|
public String getName() {
|
|
|
|
|
java.lang.Object ref = name_;
|
|
|
|
|
if (!(ref instanceof String)) {
|
|
|
|
|
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
|
|
|
|
|
name_ = s;
|
|
|
|
|
return s;
|
|
|
|
|
} else {
|
|
|
|
|
return (String) ref;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public Builder setName(String value) {
|
|
|
|
|
if (value == null) {
|
|
|
|
|
throw new NullPointerException();
|
|
|
|
|
}
|
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
|
name_ = value;
|
|
|
|
|
onChanged();
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
public Builder clearName() {
|
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
|
|
|
name_ = getDefaultInstance().getName();
|
|
|
|
|
onChanged();
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
void setName(com.google.protobuf.ByteString value) {
|
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
|
name_ = value;
|
|
|
|
|
onChanged();
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// required bool status = 3;
|
|
|
|
|
private boolean status_ ;
|
|
|
|
|
public boolean hasStatus() {
|
|
|
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
|
|
|
}
|
|
|
|
|
public boolean getStatus() {
|
|
|
|
|
return status_;
|
|
|
|
|
}
|
|
|
|
|
public Builder setStatus(boolean value) {
|
|
|
|
|
bitField0_ |= 0x00000004;
|
|
|
|
|
status_ = value;
|
|
|
|
|
onChanged();
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
public Builder clearStatus() {
|
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
|
|
|
status_ = false;
|
|
|
|
|
onChanged();
|
|
|
|
|
return this;
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// @@protoc_insertion_point(builder_scope:akka.actor.MyMessage)
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
static {
|
|
|
|
|
defaultInstance = new MyMessage(true);
|
|
|
|
|
defaultInstance.initFields();
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// @@protoc_insertion_point(class_scope:akka.actor.MyMessage)
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
private static com.google.protobuf.Descriptors.Descriptor
|
|
|
|
|
internal_static_akka_actor_MyMessage_descriptor;
|
|
|
|
|
private static
|
|
|
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
|
|
|
internal_static_akka_actor_MyMessage_fieldAccessorTable;
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
|
|
|
getDescriptor() {
|
|
|
|
|
return descriptor;
|
|
|
|
|
}
|
|
|
|
|
private static com.google.protobuf.Descriptors.FileDescriptor
|
|
|
|
|
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"
|
|
|
|
|
};
|
|
|
|
|
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 =
|
|
|
|
|
getDescriptor().getMessageTypes().get(0);
|
|
|
|
|
internal_static_akka_actor_MyMessage_fieldAccessorTable = new
|
|
|
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
|
|
|
|
internal_static_akka_actor_MyMessage_descriptor,
|
|
|
|
|
new java.lang.String[] { "Id", "Name", "Status", },
|
2012-09-17 12:54:08 +02:00
|
|
|
ProtobufProtocol.MyMessage.class,
|
|
|
|
|
ProtobufProtocol.MyMessage.Builder.class);
|
2011-09-09 13:46:36 +02:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
com.google.protobuf.Descriptors.FileDescriptor
|
|
|
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
|
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
|
|
|
}, assigner);
|
|
|
|
|
}
|
2011-10-28 15:55:15 +02:00
|
|
|
|
2011-09-09 13:46:36 +02:00
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
|
|
|
}
|