// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GetPersonalInfoMsg.proto
package protocol.Msg;
public final class GetPersonalInfoMsg {
private GetPersonalInfoMsg() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface GetPersonalInfoReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool userInfo = 1 [default = false];
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
boolean hasUserInfo();
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
boolean getUserInfo();
// optional bool friendInfo = 2 [default = false];
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
boolean hasFriendInfo();
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
boolean getFriendInfo();
// optional bool groupInfo = 3 [default = false];
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
boolean hasGroupInfo();
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
boolean getGroupInfo();
}
/**
* Protobuf type {@code protocol.GetPersonalInfoReq}
*/
public static final class GetPersonalInfoReq extends
com.google.protobuf.GeneratedMessage
implements GetPersonalInfoReqOrBuilder {
// Use GetPersonalInfoReq.newBuilder() to construct.
private GetPersonalInfoReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetPersonalInfoReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetPersonalInfoReq defaultInstance;
public static GetPersonalInfoReq getDefaultInstance() {
return defaultInstance;
}
public GetPersonalInfoReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetPersonalInfoReq(
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;
userInfo_ = input.readBool();
break;
}
case 16: {
bitField0_ |= 0x00000002;
friendInfo_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
groupInfo_ = input.readBool();
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.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.class, protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.Builder.class);
}
public static com.google.protobuf.Parser<GetPersonalInfoReq> PARSER =
new com.google.protobuf.AbstractParser<GetPersonalInfoReq>() {
public GetPersonalInfoReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetPersonalInfoReq(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<GetPersonalInfoReq> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool userInfo = 1 [default = false];
public static final int USERINFO_FIELD_NUMBER = 1;
private boolean userInfo_;
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
public boolean getUserInfo() {
return userInfo_;
}
// optional bool friendInfo = 2 [default = false];
public static final int FRIENDINFO_FIELD_NUMBER = 2;
private boolean friendInfo_;
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
public boolean hasFriendInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
public boolean getFriendInfo() {
return friendInfo_;
}
// optional bool groupInfo = 3 [default = false];
public static final int GROUPINFO_FIELD_NUMBER = 3;
private boolean groupInfo_;
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
public boolean hasGroupInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
public boolean getGroupInfo() {
return groupInfo_;
}
private void initFields() {
userInfo_ = false;
friendInfo_ = false;
groupInfo_ = false;
}
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.writeBool(1, userInfo_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, friendInfo_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, groupInfo_);
}
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
.computeBoolSize(1, userInfo_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, friendInfo_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, groupInfo_);
}
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.GetPersonalInfoMsg.GetPersonalInfoReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq 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.GetPersonalInfoMsg.GetPersonalInfoReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq 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.GetPersonalInfoMsg.GetPersonalInfoReq 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.GetPersonalInfoReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.class, protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.Builder.class);
}
// Construct using protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.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();
userInfo_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
friendInfo_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
groupInfo_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoReq_descriptor;
}
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq getDefaultInstanceForType() {
return protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.getDefaultInstance();
}
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq build() {
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq buildPartial() {
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq result = new protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.userInfo_ = userInfo_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.friendInfo_ = friendInfo_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.groupInfo_ = groupInfo_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq) {
return mergeFrom((protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq other) {
if (other == protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq.getDefaultInstance()) return this;
if (other.hasUserInfo()) {
setUserInfo(other.getUserInfo());
}
if (other.hasFriendInfo()) {
setFriendInfo(other.getFriendInfo());
}
if (other.hasGroupInfo()) {
setGroupInfo(other.getGroupInfo());
}
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.GetPersonalInfoMsg.GetPersonalInfoReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool userInfo = 1 [default = false];
private boolean userInfo_ ;
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
public boolean getUserInfo() {
return userInfo_;
}
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
public Builder setUserInfo(boolean value) {
bitField0_ |= 0x00000001;
userInfo_ = value;
onChanged();
return this;
}
/**
* <code>optional bool userInfo = 1 [default = false];</code>
*/
public Builder clearUserInfo() {
bitField0_ = (bitField0_ & ~0x00000001);
userInfo_ = false;
onChanged();
return this;
}
// optional bool friendInfo = 2 [default = false];
private boolean friendInfo_ ;
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
public boolean hasFriendInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
public boolean getFriendInfo() {
return friendInfo_;
}
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
public Builder setFriendInfo(boolean value) {
bitField0_ |= 0x00000002;
friendInfo_ = value;
onChanged();
return this;
}
/**
* <code>optional bool friendInfo = 2 [default = false];</code>
*/
public Builder clearFriendInfo() {
bitField0_ = (bitField0_ & ~0x00000002);
friendInfo_ = false;
onChanged();
return this;
}
// optional bool groupInfo = 3 [default = false];
private boolean groupInfo_ ;
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
public boolean hasGroupInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
public boolean getGroupInfo() {
return groupInfo_;
}
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
public Builder setGroupInfo(boolean value) {
bitField0_ |= 0x00000004;
groupInfo_ = value;
onChanged();
return this;
}
/**
* <code>optional bool groupInfo = 3 [default = false];</code>
*/
public Builder clearGroupInfo() {
bitField0_ = (bitField0_ & ~0x00000004);
groupInfo_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protocol.GetPersonalInfoReq)
}
static {
defaultInstance = new GetPersonalInfoReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protocol.GetPersonalInfoReq)
}
public interface GetPersonalInfoRspOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
boolean hasResultCode();
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode getResultCode();
// optional .protocol.UserItem userInfo = 2;
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
boolean hasUserInfo();
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
protocol.Data.UserData.UserItem getUserInfo();
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
protocol.Data.UserData.UserItemOrBuilder getUserInfoOrBuilder();
// repeated .protocol.UserItem friends = 3;
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
java.util.List<protocol.Data.UserData.UserItem>
getFriendsList();
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
protocol.Data.UserData.UserItem getFriends(int index);
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
int getFriendsCount();
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
java.util.List<? extends protocol.Data.UserData.UserItemOrBuilder>
getFriendsOrBuilderList();
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
protocol.Data.UserData.UserItemOrBuilder getFriendsOrBuilder(
int index);
// repeated .protocol.GroupItem groups = 4;
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
java.util.List<protocol.Data.GroupData.GroupItem>
getGroupsList();
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
protocol.Data.GroupData.GroupItem getGroups(int index);
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
int getGroupsCount();
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
java.util.List<? extends protocol.Data.GroupData.GroupItemOrBuilder>
getGroupsOrBuilderList();
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
protocol.Data.GroupData.GroupItemOrBuilder getGroupsOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.GetPersonalInfoRsp}
*/
public static final class GetPersonalInfoRsp extends
com.google.protobuf.GeneratedMessage
implements GetPersonalInfoRspOrBuilder {
// Use GetPersonalInfoRsp.newBuilder() to construct.
private GetPersonalInfoRsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetPersonalInfoRsp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetPersonalInfoRsp defaultInstance;
public static GetPersonalInfoRsp getDefaultInstance() {
return defaultInstance;
}
public GetPersonalInfoRsp getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetPersonalInfoRsp(
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.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode value = protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
resultCode_ = value;
}
break;
}
case 18: {
protocol.Data.UserData.UserItem.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = userInfo_.toBuilder();
}
userInfo_ = input.readMessage(protocol.Data.UserData.UserItem.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userInfo_);
userInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
friends_ = new java.util.ArrayList<protocol.Data.UserData.UserItem>();
mutable_bitField0_ |= 0x00000004;
}
friends_.add(input.readMessage(protocol.Data.UserData.UserItem.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
groups_ = new java.util.ArrayList<protocol.Data.GroupData.GroupItem>();
mutable_bitField0_ |= 0x00000008;
}
groups_.add(input.readMessage(protocol.Data.GroupData.GroupItem.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
friends_ = java.util.Collections.unmodifiableList(friends_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoRsp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.class, protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.Builder.class);
}
public static com.google.protobuf.Parser<GetPersonalInfoRsp> PARSER =
new com.google.protobuf.AbstractParser<GetPersonalInfoRsp>() {
public GetPersonalInfoRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetPersonalInfoRsp(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<GetPersonalInfoRsp> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code protocol.GetPersonalInfoRsp.ResultCode}
*/
public enum ResultCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>SUCCESS = 0;</code>
*
* <pre>
*�������û�
* </pre>
*/
SUCCESS(0, 0),
/**
* <code>FAIL = 1;</code>
*
* <pre>
*δ�������û�
* </pre>
*/
FAIL(1, 1),
;
/**
* <code>SUCCESS = 0;</code>
*
* <pre>
*�������û�
* </pre>
*/
public static final int SUCCESS_VALUE = 0;
/**
* <code>FAIL = 1;</code>
*
* <pre>
*δ�������û�
* </pre>
*/
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.GetPersonalInfoMsg.GetPersonalInfoRsp.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.GetPersonalInfoRsp.ResultCode)
}
private int bitField0_;
// required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;
public static final int RESULTCODE_FIELD_NUMBER = 1;
private protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode resultCode_;
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
public boolean hasResultCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode getResultCode() {
return resultCode_;
}
// optional .protocol.UserItem userInfo = 2;
public static final int USERINFO_FIELD_NUMBER = 2;
private protocol.Data.UserData.UserItem userInfo_;
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public protocol.Data.UserData.UserItem getUserInfo() {
return userInfo_;
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public protocol.Data.UserData.UserItemOrBuilder getUserInfoOrBuilder() {
return userInfo_;
}
// repeated .protocol.UserItem friends = 3;
public static final int FRIENDS_FIELD_NUMBER = 3;
private java.util.List<protocol.Data.UserData.UserItem> friends_;
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public java.util.List<protocol.Data.UserData.UserItem> getFriendsList() {
return friends_;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public java.util.List<? extends protocol.Data.UserData.UserItemOrBuilder>
getFriendsOrBuilderList() {
return friends_;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public int getFriendsCount() {
return friends_.size();
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItem getFriends(int index) {
return friends_.get(index);
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItemOrBuilder getFriendsOrBuilder(
int index) {
return friends_.get(index);
}
// repeated .protocol.GroupItem groups = 4;
public static final int GROUPS_FIELD_NUMBER = 4;
private java.util.List<protocol.Data.GroupData.GroupItem> groups_;
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public java.util.List<protocol.Data.GroupData.GroupItem> getGroupsList() {
return groups_;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public java.util.List<? extends protocol.Data.GroupData.GroupItemOrBuilder>
getGroupsOrBuilderList() {
return groups_;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public int getGroupsCount() {
return groups_.size();
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItem getGroups(int index) {
return groups_.get(index);
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItemOrBuilder getGroupsOrBuilder(
int index) {
return groups_.get(index);
}
private void initFields() {
resultCode_ = protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode.SUCCESS;
userInfo_ = protocol.Data.UserData.UserItem.getDefaultInstance();
friends_ = java.util.Collections.emptyList();
groups_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasResultCode()) {
memoizedIsInitialized = 0;
return false;
}
if (hasUserInfo()) {
if (!getUserInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getFriendsCount(); i++) {
if (!getFriends(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getGroupsCount(); i++) {
if (!getGroups(i).isInitialized()) {
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, userInfo_);
}
for (int i = 0; i < friends_.size(); i++) {
output.writeMessage(3, friends_.get(i));
}
for (int i = 0; i < groups_.size(); i++) {
output.writeMessage(4, groups_.get(i));
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, userInfo_);
}
for (int i = 0; i < friends_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, friends_.get(i));
}
for (int i = 0; i < groups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, groups_.get(i));
}
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.GetPersonalInfoMsg.GetPersonalInfoRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp 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.GetPersonalInfoMsg.GetPersonalInfoRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp 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.GetPersonalInfoMsg.GetPersonalInfoRsp 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.GetPersonalInfoRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoRsp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.class, protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.Builder.class);
}
// Construct using protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getUserInfoFieldBuilder();
getFriendsFieldBuilder();
getGroupsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
resultCode_ = protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode.SUCCESS;
bitField0_ = (bitField0_ & ~0x00000001);
if (userInfoBuilder_ == null) {
userInfo_ = protocol.Data.UserData.UserItem.getDefaultInstance();
} else {
userInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (friendsBuilder_ == null) {
friends_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
friendsBuilder_.clear();
}
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
groupsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protocol.Msg.GetPersonalInfoMsg.internal_static_protocol_GetPersonalInfoRsp_descriptor;
}
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp getDefaultInstanceForType() {
return protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.getDefaultInstance();
}
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp build() {
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp buildPartial() {
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp result = new protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.resultCode_ = resultCode_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (userInfoBuilder_ == null) {
result.userInfo_ = userInfo_;
} else {
result.userInfo_ = userInfoBuilder_.build();
}
if (friendsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
friends_ = java.util.Collections.unmodifiableList(friends_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.friends_ = friends_;
} else {
result.friends_ = friendsBuilder_.build();
}
if (groupsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.groups_ = groups_;
} else {
result.groups_ = groupsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp) {
return mergeFrom((protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp other) {
if (other == protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.getDefaultInstance()) return this;
if (other.hasResultCode()) {
setResultCode(other.getResultCode());
}
if (other.hasUserInfo()) {
mergeUserInfo(other.getUserInfo());
}
if (friendsBuilder_ == null) {
if (!other.friends_.isEmpty()) {
if (friends_.isEmpty()) {
friends_ = other.friends_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFriendsIsMutable();
friends_.addAll(other.friends_);
}
onChanged();
}
} else {
if (!other.friends_.isEmpty()) {
if (friendsBuilder_.isEmpty()) {
friendsBuilder_.dispose();
friendsBuilder_ = null;
friends_ = other.friends_;
bitField0_ = (bitField0_ & ~0x00000004);
friendsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFriendsFieldBuilder() : null;
} else {
friendsBuilder_.addAllMessages(other.friends_);
}
}
}
if (groupsBuilder_ == null) {
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
} else {
if (!other.groups_.isEmpty()) {
if (groupsBuilder_.isEmpty()) {
groupsBuilder_.dispose();
groupsBuilder_ = null;
groups_ = other.groups_;
bitField0_ = (bitField0_ & ~0x00000008);
groupsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getGroupsFieldBuilder() : null;
} else {
groupsBuilder_.addAllMessages(other.groups_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasResultCode()) {
return false;
}
if (hasUserInfo()) {
if (!getUserInfo().isInitialized()) {
return false;
}
}
for (int i = 0; i < getFriendsCount(); i++) {
if (!getFriends(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getGroupsCount(); i++) {
if (!getGroups(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;
private protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode resultCode_ = protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode.SUCCESS;
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
public boolean hasResultCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
public protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode getResultCode() {
return resultCode_;
}
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
public Builder setResultCode(protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
resultCode_ = value;
onChanged();
return this;
}
/**
* <code>required .protocol.GetPersonalInfoRsp.ResultCode resultCode = 1;</code>
*/
public Builder clearResultCode() {
bitField0_ = (bitField0_ & ~0x00000001);
resultCode_ = protocol.Msg.GetPersonalInfoMsg.GetPersonalInfoRsp.ResultCode.SUCCESS;
onChanged();
return this;
}
// optional .protocol.UserItem userInfo = 2;
private protocol.Data.UserData.UserItem userInfo_ = protocol.Data.UserData.UserItem.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protocol.Data.UserData.UserItem, protocol.Data.UserData.UserItem.Builder, protocol.Data.UserData.UserItemOrBuilder> userInfoBuilder_;
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public protocol.Data.UserData.UserItem getUserInfo() {
if (userInfoBuilder_ == null) {
return userInfo_;
} else {
return userInfoBuilder_.getMessage();
}
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public Builder setUserInfo(protocol.Data.UserData.UserItem value) {
if (userInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userInfo_ = value;
onChanged();
} else {
userInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public Builder setUserInfo(
protocol.Data.UserData.UserItem.Builder builderForValue) {
if (userInfoBuilder_ == null) {
userInfo_ = builderForValue.build();
onChanged();
} else {
userInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public Builder mergeUserInfo(protocol.Data.UserData.UserItem value) {
if (userInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
userInfo_ != protocol.Data.UserData.UserItem.getDefaultInstance()) {
userInfo_ =
protocol.Data.UserData.UserItem.newBuilder(userInfo_).mergeFrom(value).buildPartial();
} else {
userInfo_ = value;
}
onChanged();
} else {
userInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public Builder clearUserInfo() {
if (userInfoBuilder_ == null) {
userInfo_ = protocol.Data.UserData.UserItem.getDefaultInstance();
onChanged();
} else {
userInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public protocol.Data.UserData.UserItem.Builder getUserInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getUserInfoFieldBuilder().getBuilder();
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
public protocol.Data.UserData.UserItemOrBuilder getUserInfoOrBuilder() {
if (userInfoBuilder_ != null) {
return userInfoBuilder_.getMessageOrBuilder();
} else {
return userInfo_;
}
}
/**
* <code>optional .protocol.UserItem userInfo = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
protocol.Data.UserData.UserItem, protocol.Data.UserData.UserItem.Builder, protocol.Data.UserData.UserItemOrBuilder>
getUserInfoFieldBuilder() {
if (userInfoBuilder_ == null) {
userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protocol.Data.UserData.UserItem, protocol.Data.UserData.UserItem.Builder, protocol.Data.UserData.UserItemOrBuilder>(
userInfo_,
getParentForChildren(),
isClean());
userInfo_ = null;
}
return userInfoBuilder_;
}
// repeated .protocol.UserItem friends = 3;
private java.util.List<protocol.Data.UserData.UserItem> friends_ =
java.util.Collections.emptyList();
private void ensureFriendsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
friends_ = new java.util.ArrayList<protocol.Data.UserData.UserItem>(friends_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protocol.Data.UserData.UserItem, protocol.Data.UserData.UserItem.Builder, protocol.Data.UserData.UserItemOrBuilder> friendsBuilder_;
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public java.util.List<protocol.Data.UserData.UserItem> getFriendsList() {
if (friendsBuilder_ == null) {
return java.util.Collections.unmodifiableList(friends_);
} else {
return friendsBuilder_.getMessageList();
}
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public int getFriendsCount() {
if (friendsBuilder_ == null) {
return friends_.size();
} else {
return friendsBuilder_.getCount();
}
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItem getFriends(int index) {
if (friendsBuilder_ == null) {
return friends_.get(index);
} else {
return friendsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder setFriends(
int index, protocol.Data.UserData.UserItem value) {
if (friendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendsIsMutable();
friends_.set(index, value);
onChanged();
} else {
friendsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder setFriends(
int index, protocol.Data.UserData.UserItem.Builder builderForValue) {
if (friendsBuilder_ == null) {
ensureFriendsIsMutable();
friends_.set(index, builderForValue.build());
onChanged();
} else {
friendsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder addFriends(protocol.Data.UserData.UserItem value) {
if (friendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendsIsMutable();
friends_.add(value);
onChanged();
} else {
friendsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder addFriends(
int index, protocol.Data.UserData.UserItem value) {
if (friendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendsIsMutable();
friends_.add(index, value);
onChanged();
} else {
friendsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder addFriends(
protocol.Data.UserData.UserItem.Builder builderForValue) {
if (friendsBuilder_ == null) {
ensureFriendsIsMutable();
friends_.add(builderForValue.build());
onChanged();
} else {
friendsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder addFriends(
int index, protocol.Data.UserData.UserItem.Builder builderForValue) {
if (friendsBuilder_ == null) {
ensureFriendsIsMutable();
friends_.add(index, builderForValue.build());
onChanged();
} else {
friendsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder addAllFriends(
java.lang.Iterable<? extends protocol.Data.UserData.UserItem> values) {
if (friendsBuilder_ == null) {
ensureFriendsIsMutable();
super.addAll(values, friends_);
onChanged();
} else {
friendsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder clearFriends() {
if (friendsBuilder_ == null) {
friends_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
friendsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public Builder removeFriends(int index) {
if (friendsBuilder_ == null) {
ensureFriendsIsMutable();
friends_.remove(index);
onChanged();
} else {
friendsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItem.Builder getFriendsBuilder(
int index) {
return getFriendsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItemOrBuilder getFriendsOrBuilder(
int index) {
if (friendsBuilder_ == null) {
return friends_.get(index); } else {
return friendsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public java.util.List<? extends protocol.Data.UserData.UserItemOrBuilder>
getFriendsOrBuilderList() {
if (friendsBuilder_ != null) {
return friendsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(friends_);
}
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItem.Builder addFriendsBuilder() {
return getFriendsFieldBuilder().addBuilder(
protocol.Data.UserData.UserItem.getDefaultInstance());
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public protocol.Data.UserData.UserItem.Builder addFriendsBuilder(
int index) {
return getFriendsFieldBuilder().addBuilder(
index, protocol.Data.UserData.UserItem.getDefaultInstance());
}
/**
* <code>repeated .protocol.UserItem friends = 3;</code>
*/
public java.util.List<protocol.Data.UserData.UserItem.Builder>
getFriendsBuilderList() {
return getFriendsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
protocol.Data.UserData.UserItem, protocol.Data.UserData.UserItem.Builder, protocol.Data.UserData.UserItemOrBuilder>
getFriendsFieldBuilder() {
if (friendsBuilder_ == null) {
friendsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
protocol.Data.UserData.UserItem, protocol.Data.UserData.UserItem.Builder, protocol.Data.UserData.UserItemOrBuilder>(
friends_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
friends_ = null;
}
return friendsBuilder_;
}
// repeated .protocol.GroupItem groups = 4;
private java.util.List<protocol.Data.GroupData.GroupItem> groups_ =
java.util.Collections.emptyList();
private void ensureGroupsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
groups_ = new java.util.ArrayList<protocol.Data.GroupData.GroupItem>(groups_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protocol.Data.GroupData.GroupItem, protocol.Data.GroupData.GroupItem.Builder, protocol.Data.GroupData.GroupItemOrBuilder> groupsBuilder_;
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public java.util.List<protocol.Data.GroupData.GroupItem> getGroupsList() {
if (groupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(groups_);
} else {
return groupsBuilder_.getMessageList();
}
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public int getGroupsCount() {
if (groupsBuilder_ == null) {
return groups_.size();
} else {
return groupsBuilder_.getCount();
}
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItem getGroups(int index) {
if (groupsBuilder_ == null) {
return groups_.get(index);
} else {
return groupsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder setGroups(
int index, protocol.Data.GroupData.GroupItem value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.set(index, value);
onChanged();
} else {
groupsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder setGroups(
int index, protocol.Data.GroupData.GroupItem.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.set(index, builderForValue.build());
onChanged();
} else {
groupsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder addGroups(protocol.Data.GroupData.GroupItem value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(value);
onChanged();
} else {
groupsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder addGroups(
int index, protocol.Data.GroupData.GroupItem value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(index, value);
onChanged();
} else {
groupsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder addGroups(
protocol.Data.GroupData.GroupItem.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.add(builderForValue.build());
onChanged();
} else {
groupsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder addGroups(
int index, protocol.Data.GroupData.GroupItem.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.add(index, builderForValue.build());
onChanged();
} else {
groupsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder addAllGroups(
java.lang.Iterable<? extends protocol.Data.GroupData.GroupItem> values) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
super.addAll(values, groups_);
onChanged();
} else {
groupsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder clearGroups() {
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
groupsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public Builder removeGroups(int index) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.remove(index);
onChanged();
} else {
groupsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItem.Builder getGroupsBuilder(
int index) {
return getGroupsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItemOrBuilder getGroupsOrBuilder(
int index) {
if (groupsBuilder_ == null) {
return groups_.get(index); } else {
return groupsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public java.util.List<? extends protocol.Data.GroupData.GroupItemOrBuilder>
getGroupsOrBuilderList() {
if (groupsBuilder_ != null) {
return groupsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(groups_);
}
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItem.Builder addGroupsBuilder() {
return getGroupsFieldBuilder().addBuilder(
protocol.Data.GroupData.GroupItem.getDefaultInstance());
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public protocol.Data.GroupData.GroupItem.Builder addGroupsBuilder(
int index) {
return getGroupsFieldBuilder().addBuilder(
index, protocol.Data.GroupData.GroupItem.getDefaultInstance());
}
/**
* <code>repeated .protocol.GroupItem groups = 4;</code>
*/
public java.util.List<protocol.Data.GroupData.GroupItem.Builder>
getGroupsBuilderList() {
return getGroupsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
protocol.Data.GroupData.GroupItem, protocol.Data.GroupData.GroupItem.Builder, protocol.Data.GroupData.GroupItemOrBuilder>
getGroupsFieldBuilder() {
if (groupsBuilder_ == null) {
groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
protocol.Data.GroupData.GroupItem, protocol.Data.GroupData.GroupItem.Builder, protocol.Data.GroupData.GroupItemOrBuilder>(
groups_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
groups_ = null;
}
return groupsBuilder_;
}
// @@protoc_insertion_point(builder_scope:protocol.GetPersonalInfoRsp)
}
static {
defaultInstance = new GetPersonalInfoRsp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protocol.GetPersonalInfoRsp)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_GetPersonalInfoReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_protocol_GetPersonalInfoReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_GetPersonalInfoRsp_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_protocol_GetPersonalInfoRsp_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\030GetPersonalInfoMsg.proto\022\010protocol\032\016Us" +
"erData.proto\032\017GroupData.proto\"b\n\022GetPers" +
"onalInfoReq\022\027\n\010userInfo\030\001 \001(\010:\005false\022\031\n\n" +
"friendInfo\030\002 \001(\010:\005false\022\030\n\tgroupInfo\030\003 \001" +
"(\010:\005false\"\346\001\n\022GetPersonalInfoRsp\022;\n\nresu" +
"ltCode\030\001 \002(\0162\'.protocol.GetPersonalInfoR" +
"sp.ResultCode\022$\n\010userInfo\030\002 \001(\0132\022.protoc" +
"ol.UserItem\022#\n\007friends\030\003 \003(\0132\022.protocol." +
"UserItem\022#\n\006groups\030\004 \003(\0132\023.protocol.Grou" +
"pItem\"#\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_GetPersonalInfoReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protocol_GetPersonalInfoReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_protocol_GetPersonalInfoReq_descriptor,
new java.lang.String[] { "UserInfo", "FriendInfo", "GroupInfo", });
internal_static_protocol_GetPersonalInfoRsp_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_protocol_GetPersonalInfoRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_protocol_GetPersonalInfoRsp_descriptor,
new java.lang.String[] { "ResultCode", "UserInfo", "Friends", "Groups", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
protocol.Data.UserData.getDescriptor(),
protocol.Data.GroupData.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}