// Generated by the protocol buffer compiler. DO NOT EDIT! // source: PersonalSettingsMsg.proto package protocol.Msg; public final class PersonalSettingsMsg { private PersonalSettingsMsg() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface PersonalSettingsReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string userName = 1; /** * <code>optional string userName = 1;</code> */ boolean hasUserName(); /** * <code>optional string userName = 1;</code> */ java.lang.String getUserName(); /** * <code>optional string userName = 1;</code> */ com.google.protobuf.ByteString getUserNameBytes(); // optional string userPassword = 2; /** * <code>optional string userPassword = 2;</code> */ boolean hasUserPassword(); /** * <code>optional string userPassword = 2;</code> */ java.lang.String getUserPassword(); /** * <code>optional string userPassword = 2;</code> */ com.google.protobuf.ByteString getUserPasswordBytes(); // optional int32 headIndex = 3; /** * <code>optional int32 headIndex = 3;</code> */ boolean hasHeadIndex(); /** * <code>optional int32 headIndex = 3;</code> */ int getHeadIndex(); } /** * Protobuf type {@code protocol.PersonalSettingsReq} */ public static final class PersonalSettingsReq extends com.google.protobuf.GeneratedMessage implements PersonalSettingsReqOrBuilder { // Use PersonalSettingsReq.newBuilder() to construct. private PersonalSettingsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PersonalSettingsReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PersonalSettingsReq defaultInstance; public static PersonalSettingsReq getDefaultInstance() { return defaultInstance; } public PersonalSettingsReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersonalSettingsReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; userName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; userPassword_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; headIndex_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.class, protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.Builder.class); } public static com.google.protobuf.Parser<PersonalSettingsReq> PARSER = new com.google.protobuf.AbstractParser<PersonalSettingsReq>() { public PersonalSettingsReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersonalSettingsReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PersonalSettingsReq> getParserForType() { return PARSER; } private int bitField0_; // optional string userName = 1; public static final int USERNAME_FIELD_NUMBER = 1; private java.lang.Object userName_; /** * <code>optional string userName = 1;</code> */ public boolean hasUserName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string userName = 1;</code> */ public java.lang.String getUserName() { java.lang.Object ref = userName_; 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()) { userName_ = s; } return s; } } /** * <code>optional string userName = 1;</code> */ public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string userPassword = 2; public static final int USERPASSWORD_FIELD_NUMBER = 2; private java.lang.Object userPassword_; /** * <code>optional string userPassword = 2;</code> */ public boolean hasUserPassword() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string userPassword = 2;</code> */ public java.lang.String getUserPassword() { java.lang.Object ref = userPassword_; 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()) { userPassword_ = s; } return s; } } /** * <code>optional string userPassword = 2;</code> */ public com.google.protobuf.ByteString getUserPasswordBytes() { java.lang.Object ref = userPassword_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userPassword_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 headIndex = 3; public static final int HEADINDEX_FIELD_NUMBER = 3; private int headIndex_; /** * <code>optional int32 headIndex = 3;</code> */ public boolean hasHeadIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 headIndex = 3;</code> */ public int getHeadIndex() { return headIndex_; } private void initFields() { userName_ = ""; userPassword_ = ""; headIndex_ = 0; } 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.writeBytes(1, getUserNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getUserPasswordBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, headIndex_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getUserNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getUserPasswordBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, headIndex_); } 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.PersonalSettingsMsg.PersonalSettingsReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq 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.PersonalSettingsMsg.PersonalSettingsReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq 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.PersonalSettingsMsg.PersonalSettingsReq 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.PersonalSettingsReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Msg.PersonalSettingsMsg.PersonalSettingsReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.class, protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.Builder.class); } // Construct using protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.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(); userName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); userPassword_ = ""; bitField0_ = (bitField0_ & ~0x00000002); headIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsReq_descriptor; } public protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq getDefaultInstanceForType() { return protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.getDefaultInstance(); } public protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq build() { protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq buildPartial() { protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq result = new protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userName_ = userName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.userPassword_ = userPassword_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.headIndex_ = headIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq) { return mergeFrom((protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq other) { if (other == protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq.getDefaultInstance()) return this; if (other.hasUserName()) { bitField0_ |= 0x00000001; userName_ = other.userName_; onChanged(); } if (other.hasUserPassword()) { bitField0_ |= 0x00000002; userPassword_ = other.userPassword_; onChanged(); } if (other.hasHeadIndex()) { setHeadIndex(other.getHeadIndex()); } 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.PersonalSettingsMsg.PersonalSettingsReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Msg.PersonalSettingsMsg.PersonalSettingsReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string userName = 1; private java.lang.Object userName_ = ""; /** * <code>optional string userName = 1;</code> */ public boolean hasUserName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string userName = 1;</code> */ public java.lang.String getUserName() { java.lang.Object ref = userName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string userName = 1;</code> */ public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string userName = 1;</code> */ public Builder setUserName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userName_ = value; onChanged(); return this; } /** * <code>optional string userName = 1;</code> */ public Builder clearUserName() { bitField0_ = (bitField0_ & ~0x00000001); userName_ = getDefaultInstance().getUserName(); onChanged(); return this; } /** * <code>optional string userName = 1;</code> */ public Builder setUserNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userName_ = value; onChanged(); return this; } // optional string userPassword = 2; private java.lang.Object userPassword_ = ""; /** * <code>optional string userPassword = 2;</code> */ public boolean hasUserPassword() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string userPassword = 2;</code> */ public java.lang.String getUserPassword() { java.lang.Object ref = userPassword_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userPassword_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string userPassword = 2;</code> */ public com.google.protobuf.ByteString getUserPasswordBytes() { java.lang.Object ref = userPassword_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userPassword_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string userPassword = 2;</code> */ public Builder setUserPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userPassword_ = value; onChanged(); return this; } /** * <code>optional string userPassword = 2;</code> */ public Builder clearUserPassword() { bitField0_ = (bitField0_ & ~0x00000002); userPassword_ = getDefaultInstance().getUserPassword(); onChanged(); return this; } /** * <code>optional string userPassword = 2;</code> */ public Builder setUserPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userPassword_ = value; onChanged(); return this; } // optional int32 headIndex = 3; private int headIndex_ ; /** * <code>optional int32 headIndex = 3;</code> */ public boolean hasHeadIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 headIndex = 3;</code> */ public int getHeadIndex() { return headIndex_; } /** * <code>optional int32 headIndex = 3;</code> */ public Builder setHeadIndex(int value) { bitField0_ |= 0x00000004; headIndex_ = value; onChanged(); return this; } /** * <code>optional int32 headIndex = 3;</code> */ public Builder clearHeadIndex() { bitField0_ = (bitField0_ & ~0x00000004); headIndex_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protocol.PersonalSettingsReq) } static { defaultInstance = new PersonalSettingsReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.PersonalSettingsReq) } public interface PersonalSettingsRspOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1; /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ boolean hasResultCode(); /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode getResultCode(); } /** * Protobuf type {@code protocol.PersonalSettingsRsp} */ public static final class PersonalSettingsRsp extends com.google.protobuf.GeneratedMessage implements PersonalSettingsRspOrBuilder { // Use PersonalSettingsRsp.newBuilder() to construct. private PersonalSettingsRsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PersonalSettingsRsp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PersonalSettingsRsp defaultInstance; public static PersonalSettingsRsp getDefaultInstance() { return defaultInstance; } public PersonalSettingsRsp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersonalSettingsRsp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode value = protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; resultCode_ = value; } 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.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsRsp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.class, protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.Builder.class); } public static com.google.protobuf.Parser<PersonalSettingsRsp> PARSER = new com.google.protobuf.AbstractParser<PersonalSettingsRsp>() { public PersonalSettingsRsp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersonalSettingsRsp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PersonalSettingsRsp> getParserForType() { return PARSER; } /** * Protobuf enum {@code protocol.PersonalSettingsRsp.ResultCode} */ public enum ResultCode implements com.google.protobuf.ProtocolMessageEnum { /** * <code>SUCCESS = 0;</code> */ SUCCESS(0, 0), /** * <code>FAIL = 1;</code> */ FAIL(1, 1), ; /** * <code>SUCCESS = 0;</code> */ public static final int SUCCESS_VALUE = 0; /** * <code>FAIL = 1;</code> */ public static final int FAIL_VALUE = 1; public final int getNumber() { return value; } public static ResultCode valueOf(int value) { switch (value) { case 0: return SUCCESS; case 1: return FAIL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ResultCode> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ResultCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ResultCode>() { public ResultCode findValueByNumber(int number) { return ResultCode.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 protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.getDescriptor().getEnumTypes().get(0); } private static final ResultCode[] VALUES = values(); public static ResultCode 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 ResultCode(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.PersonalSettingsRsp.ResultCode) } private int bitField0_; // required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1; public static final int RESULTCODE_FIELD_NUMBER = 1; private protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode resultCode_; /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ public boolean hasResultCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ public protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode getResultCode() { return resultCode_; } private void initFields() { resultCode_ = protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode.SUCCESS; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasResultCode()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, resultCode_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, resultCode_.getNumber()); } 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.PersonalSettingsMsg.PersonalSettingsRsp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp 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.PersonalSettingsMsg.PersonalSettingsRsp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp 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.PersonalSettingsMsg.PersonalSettingsRsp 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.PersonalSettingsRsp} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Msg.PersonalSettingsMsg.PersonalSettingsRspOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsRsp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.class, protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.Builder.class); } // Construct using protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.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(); resultCode_ = protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode.SUCCESS; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Msg.PersonalSettingsMsg.internal_static_protocol_PersonalSettingsRsp_descriptor; } public protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp getDefaultInstanceForType() { return protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.getDefaultInstance(); } public protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp build() { protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp buildPartial() { protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp result = new protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.resultCode_ = resultCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp) { return mergeFrom((protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp other) { if (other == protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.getDefaultInstance()) return this; if (other.hasResultCode()) { setResultCode(other.getResultCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasResultCode()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1; private protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode resultCode_ = protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode.SUCCESS; /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ public boolean hasResultCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ public protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode getResultCode() { return resultCode_; } /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ public Builder setResultCode(protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resultCode_ = value; onChanged(); return this; } /** * <code>required .protocol.PersonalSettingsRsp.ResultCode resultCode = 1;</code> */ public Builder clearResultCode() { bitField0_ = (bitField0_ & ~0x00000001); resultCode_ = protocol.Msg.PersonalSettingsMsg.PersonalSettingsRsp.ResultCode.SUCCESS; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protocol.PersonalSettingsRsp) } static { defaultInstance = new PersonalSettingsRsp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.PersonalSettingsRsp) } private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PersonalSettingsReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_PersonalSettingsReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PersonalSettingsRsp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_PersonalSettingsRsp_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\031PersonalSettingsMsg.proto\022\010protocol\"P\n" + "\023PersonalSettingsReq\022\020\n\010userName\030\001 \001(\t\022\024" + "\n\014userPassword\030\002 \001(\t\022\021\n\theadIndex\030\003 \001(\005\"" + "x\n\023PersonalSettingsRsp\022<\n\nresultCode\030\001 \002" + "(\0162(.protocol.PersonalSettingsRsp.Result" + "Code\"#\n\nResultCode\022\013\n\007SUCCESS\020\000\022\010\n\004FAIL\020" + "\001B\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_PersonalSettingsReq_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_PersonalSettingsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_PersonalSettingsReq_descriptor, new java.lang.String[] { "UserName", "UserPassword", "HeadIndex", }); internal_static_protocol_PersonalSettingsRsp_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_PersonalSettingsRsp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_PersonalSettingsRsp_descriptor, new java.lang.String[] { "ResultCode", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }