// Generated by the protocol buffer compiler. DO NOT EDIT! // source: KeepAliveMsg.proto package protocol.Msg; public final class KeepAliveMsg { private KeepAliveMsg() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface KeepAliveSyncPacketOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 a = 1; /** * <code>optional int32 a = 1;</code> */ boolean hasA(); /** * <code>optional int32 a = 1;</code> */ int getA(); // optional bool b = 2; /** * <code>optional bool b = 2;</code> */ boolean hasB(); /** * <code>optional bool b = 2;</code> */ boolean getB(); // optional string c = 3; /** * <code>optional string c = 3;</code> */ boolean hasC(); /** * <code>optional string c = 3;</code> */ java.lang.String getC(); /** * <code>optional string c = 3;</code> */ com.google.protobuf.ByteString getCBytes(); } /** * Protobuf type {@code protocol.KeepAliveSyncPacket} */ public static final class KeepAliveSyncPacket extends com.google.protobuf.GeneratedMessage implements KeepAliveSyncPacketOrBuilder { // Use KeepAliveSyncPacket.newBuilder() to construct. private KeepAliveSyncPacket(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private KeepAliveSyncPacket(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final KeepAliveSyncPacket defaultInstance; public static KeepAliveSyncPacket getDefaultInstance() { return defaultInstance; } public KeepAliveSyncPacket getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeepAliveSyncPacket( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; b_ = input.readBool(); break; } case 26: { bitField0_ |= 0x00000004; c_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.KeepAliveMsg.internal_static_protocol_KeepAliveSyncPacket_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.KeepAliveMsg.internal_static_protocol_KeepAliveSyncPacket_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.class, protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.Builder.class); } public static com.google.protobuf.Parser<KeepAliveSyncPacket> PARSER = new com.google.protobuf.AbstractParser<KeepAliveSyncPacket>() { public KeepAliveSyncPacket parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeepAliveSyncPacket(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<KeepAliveSyncPacket> getParserForType() { return PARSER; } private int bitField0_; // optional int32 a = 1; public static final int A_FIELD_NUMBER = 1; private int a_; /** * <code>optional int32 a = 1;</code> */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 a = 1;</code> */ public int getA() { return a_; } // optional bool b = 2; public static final int B_FIELD_NUMBER = 2; private boolean b_; /** * <code>optional bool b = 2;</code> */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool b = 2;</code> */ public boolean getB() { return b_; } // optional string c = 3; public static final int C_FIELD_NUMBER = 3; private java.lang.Object c_; /** * <code>optional string c = 3;</code> */ public boolean hasC() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string c = 3;</code> */ public java.lang.String getC() { java.lang.Object ref = c_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { c_ = s; } return s; } } /** * <code>optional string c = 3;</code> */ public com.google.protobuf.ByteString getCBytes() { java.lang.Object ref = c_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); c_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { a_ = 0; b_ = false; c_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, b_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getCBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, b_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getCBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protocol.KeepAliveSyncPacket} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Msg.KeepAliveMsg.KeepAliveSyncPacketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.KeepAliveMsg.internal_static_protocol_KeepAliveSyncPacket_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.KeepAliveMsg.internal_static_protocol_KeepAliveSyncPacket_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.class, protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.Builder.class); } // Construct using protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); b_ = false; bitField0_ = (bitField0_ & ~0x00000002); c_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Msg.KeepAliveMsg.internal_static_protocol_KeepAliveSyncPacket_descriptor; } public protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket getDefaultInstanceForType() { return protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.getDefaultInstance(); } public protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket build() { protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket buildPartial() { protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket result = new protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.b_ = b_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.c_ = c_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket) { return mergeFrom((protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket other) { if (other == protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasB()) { setB(other.getB()); } if (other.hasC()) { bitField0_ |= 0x00000004; c_ = other.c_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Msg.KeepAliveMsg.KeepAliveSyncPacket) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 a = 1; private int a_ ; /** * <code>optional int32 a = 1;</code> */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 a = 1;</code> */ public int getA() { return a_; } /** * <code>optional int32 a = 1;</code> */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * <code>optional int32 a = 1;</code> */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // optional bool b = 2; private boolean b_ ; /** * <code>optional bool b = 2;</code> */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool b = 2;</code> */ public boolean getB() { return b_; } /** * <code>optional bool b = 2;</code> */ public Builder setB(boolean value) { bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } /** * <code>optional bool b = 2;</code> */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000002); b_ = false; onChanged(); return this; } // optional string c = 3; private java.lang.Object c_ = ""; /** * <code>optional string c = 3;</code> */ public boolean hasC() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string c = 3;</code> */ public java.lang.String getC() { java.lang.Object ref = c_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); c_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string c = 3;</code> */ public com.google.protobuf.ByteString getCBytes() { java.lang.Object ref = c_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); c_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string c = 3;</code> */ public Builder setC( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; c_ = value; onChanged(); return this; } /** * <code>optional string c = 3;</code> */ public Builder clearC() { bitField0_ = (bitField0_ & ~0x00000004); c_ = getDefaultInstance().getC(); onChanged(); return this; } /** * <code>optional string c = 3;</code> */ public Builder setCBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; c_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protocol.KeepAliveSyncPacket) } static { defaultInstance = new KeepAliveSyncPacket(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.KeepAliveSyncPacket) } private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_KeepAliveSyncPacket_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_KeepAliveSyncPacket_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\022KeepAliveMsg.proto\022\010protocol\"6\n\023KeepAl" + "iveSyncPacket\022\t\n\001a\030\001 \001(\005\022\t\n\001b\030\002 \001(\010\022\t\n\001c" + "\030\003 \001(\tB\016\n\014protocol.Msg" }; 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_protocol_KeepAliveSyncPacket_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_KeepAliveSyncPacket_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_KeepAliveSyncPacket_descriptor, new java.lang.String[] { "A", "B", "C", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }