5133 lines
162 KiB
Java
Executable File
5133 lines
162 KiB
Java
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
// source: core/user.proto
|
||
|
||
package com.akaxin.proto.core;
|
||
|
||
public final class UserProto {
|
||
private UserProto() {}
|
||
public static void registerAllExtensions(
|
||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||
}
|
||
|
||
public static void registerAllExtensions(
|
||
com.google.protobuf.ExtensionRegistry registry) {
|
||
registerAllExtensions(
|
||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||
}
|
||
/**
|
||
* Protobuf enum {@code core.UserStatus}
|
||
*/
|
||
public enum UserStatus
|
||
implements com.google.protobuf.ProtocolMessageEnum {
|
||
/**
|
||
* <pre>
|
||
*正常用户
|
||
* </pre>
|
||
*
|
||
* <code>NORMAL = 0;</code>
|
||
*/
|
||
NORMAL(0),
|
||
/**
|
||
* <pre>
|
||
*禁封用户
|
||
* </pre>
|
||
*
|
||
* <code>SEALUP = 1;</code>
|
||
*/
|
||
SEALUP(1),
|
||
UNRECOGNIZED(-1),
|
||
;
|
||
|
||
/**
|
||
* <pre>
|
||
*正常用户
|
||
* </pre>
|
||
*
|
||
* <code>NORMAL = 0;</code>
|
||
*/
|
||
public static final int NORMAL_VALUE = 0;
|
||
/**
|
||
* <pre>
|
||
*禁封用户
|
||
* </pre>
|
||
*
|
||
* <code>SEALUP = 1;</code>
|
||
*/
|
||
public static final int SEALUP_VALUE = 1;
|
||
|
||
|
||
public final int getNumber() {
|
||
if (this == UNRECOGNIZED) {
|
||
throw new java.lang.IllegalArgumentException(
|
||
"Can't get the number of an unknown enum value.");
|
||
}
|
||
return value;
|
||
}
|
||
|
||
/**
|
||
* @deprecated Use {@link #forNumber(int)} instead.
|
||
*/
|
||
@java.lang.Deprecated
|
||
public static UserStatus valueOf(int value) {
|
||
return forNumber(value);
|
||
}
|
||
|
||
public static UserStatus forNumber(int value) {
|
||
switch (value) {
|
||
case 0: return NORMAL;
|
||
case 1: return SEALUP;
|
||
default: return null;
|
||
}
|
||
}
|
||
|
||
public static com.google.protobuf.Internal.EnumLiteMap<UserStatus>
|
||
internalGetValueMap() {
|
||
return internalValueMap;
|
||
}
|
||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||
UserStatus> internalValueMap =
|
||
new com.google.protobuf.Internal.EnumLiteMap<UserStatus>() {
|
||
public UserStatus findValueByNumber(int number) {
|
||
return UserStatus.forNumber(number);
|
||
}
|
||
};
|
||
|
||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||
getValueDescriptor() {
|
||
return getDescriptor().getValues().get(ordinal());
|
||
}
|
||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||
getDescriptorForType() {
|
||
return getDescriptor();
|
||
}
|
||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.getDescriptor().getEnumTypes().get(0);
|
||
}
|
||
|
||
private static final UserStatus[] VALUES = values();
|
||
|
||
public static UserStatus valueOf(
|
||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||
if (desc.getType() != getDescriptor()) {
|
||
throw new java.lang.IllegalArgumentException(
|
||
"EnumValueDescriptor is not for this type.");
|
||
}
|
||
if (desc.getIndex() == -1) {
|
||
return UNRECOGNIZED;
|
||
}
|
||
return VALUES[desc.getIndex()];
|
||
}
|
||
|
||
private final int value;
|
||
|
||
private UserStatus(int value) {
|
||
this.value = value;
|
||
}
|
||
|
||
// @@protoc_insertion_point(enum_scope:core.UserStatus)
|
||
}
|
||
|
||
/**
|
||
* <pre>
|
||
* 针对当前用户A来说,用户B和A之间的关系
|
||
* </pre>
|
||
*
|
||
* Protobuf enum {@code core.UserRelation}
|
||
*/
|
||
public enum UserRelation
|
||
implements com.google.protobuf.ProtocolMessageEnum {
|
||
/**
|
||
* <pre>
|
||
*用户无关系
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_NONE = 0;</code>
|
||
*/
|
||
RELATION_NONE(0),
|
||
/**
|
||
* <pre>
|
||
*用户之间为好友关系,AB互相为好友
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_FRIEND = 1;</code>
|
||
*/
|
||
RELATION_FRIEND(1),
|
||
/**
|
||
* <pre>
|
||
*A 关注 B(A添加B为好友,待B同意)
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_CARE = 2;</code>
|
||
*/
|
||
RELATION_CARE(2),
|
||
/**
|
||
* <pre>
|
||
*B 关注 A(B添加A为好友,待A同意)
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_FANS = 3;</code>
|
||
*/
|
||
RELATION_FANS(3),
|
||
UNRECOGNIZED(-1),
|
||
;
|
||
|
||
/**
|
||
* <pre>
|
||
*用户无关系
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_NONE = 0;</code>
|
||
*/
|
||
public static final int RELATION_NONE_VALUE = 0;
|
||
/**
|
||
* <pre>
|
||
*用户之间为好友关系,AB互相为好友
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_FRIEND = 1;</code>
|
||
*/
|
||
public static final int RELATION_FRIEND_VALUE = 1;
|
||
/**
|
||
* <pre>
|
||
*A 关注 B(A添加B为好友,待B同意)
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_CARE = 2;</code>
|
||
*/
|
||
public static final int RELATION_CARE_VALUE = 2;
|
||
/**
|
||
* <pre>
|
||
*B 关注 A(B添加A为好友,待A同意)
|
||
* </pre>
|
||
*
|
||
* <code>RELATION_FANS = 3;</code>
|
||
*/
|
||
public static final int RELATION_FANS_VALUE = 3;
|
||
|
||
|
||
public final int getNumber() {
|
||
if (this == UNRECOGNIZED) {
|
||
throw new java.lang.IllegalArgumentException(
|
||
"Can't get the number of an unknown enum value.");
|
||
}
|
||
return value;
|
||
}
|
||
|
||
/**
|
||
* @deprecated Use {@link #forNumber(int)} instead.
|
||
*/
|
||
@java.lang.Deprecated
|
||
public static UserRelation valueOf(int value) {
|
||
return forNumber(value);
|
||
}
|
||
|
||
public static UserRelation forNumber(int value) {
|
||
switch (value) {
|
||
case 0: return RELATION_NONE;
|
||
case 1: return RELATION_FRIEND;
|
||
case 2: return RELATION_CARE;
|
||
case 3: return RELATION_FANS;
|
||
default: return null;
|
||
}
|
||
}
|
||
|
||
public static com.google.protobuf.Internal.EnumLiteMap<UserRelation>
|
||
internalGetValueMap() {
|
||
return internalValueMap;
|
||
}
|
||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||
UserRelation> internalValueMap =
|
||
new com.google.protobuf.Internal.EnumLiteMap<UserRelation>() {
|
||
public UserRelation findValueByNumber(int number) {
|
||
return UserRelation.forNumber(number);
|
||
}
|
||
};
|
||
|
||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||
getValueDescriptor() {
|
||
return getDescriptor().getValues().get(ordinal());
|
||
}
|
||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||
getDescriptorForType() {
|
||
return getDescriptor();
|
||
}
|
||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.getDescriptor().getEnumTypes().get(1);
|
||
}
|
||
|
||
private static final UserRelation[] VALUES = values();
|
||
|
||
public static UserRelation valueOf(
|
||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||
if (desc.getType() != getDescriptor()) {
|
||
throw new java.lang.IllegalArgumentException(
|
||
"EnumValueDescriptor is not for this type.");
|
||
}
|
||
if (desc.getIndex() == -1) {
|
||
return UNRECOGNIZED;
|
||
}
|
||
return VALUES[desc.getIndex()];
|
||
}
|
||
|
||
private final int value;
|
||
|
||
private UserRelation(int value) {
|
||
this.value = value;
|
||
}
|
||
|
||
// @@protoc_insertion_point(enum_scope:core.UserRelation)
|
||
}
|
||
|
||
public interface UserProfileOrBuilder extends
|
||
// @@protoc_insertion_point(interface_extends:core.UserProfile)
|
||
com.google.protobuf.MessageOrBuilder {
|
||
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
java.lang.String getSiteUserId();
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getSiteUserIdBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
java.lang.String getUserName();
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUserNameBytes();
|
||
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
java.lang.String getUserPhoto();
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUserPhotoBytes();
|
||
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
java.lang.String getSelfIntroduce();
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getSelfIntroduceBytes();
|
||
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
int getUserStatusValue();
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.UserStatus getUserStatus();
|
||
|
||
/**
|
||
* <code>int64 register_time = 6;</code>
|
||
*/
|
||
long getRegisterTime();
|
||
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
java.lang.String getSiteLoginId();
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getSiteLoginIdBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
java.lang.String getNickName();
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getNickNameBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
java.lang.String getUsernameInLatin();
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUsernameInLatinBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
java.lang.String getUserIdPubk();
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUserIdPubkBytes();
|
||
}
|
||
/**
|
||
* <pre>
|
||
*获取用户的详细信息
|
||
* </pre>
|
||
*
|
||
* Protobuf type {@code core.UserProfile}
|
||
*/
|
||
public static final class UserProfile extends
|
||
com.google.protobuf.GeneratedMessageV3 implements
|
||
// @@protoc_insertion_point(message_implements:core.UserProfile)
|
||
UserProfileOrBuilder {
|
||
private static final long serialVersionUID = 0L;
|
||
// Use UserProfile.newBuilder() to construct.
|
||
private UserProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||
super(builder);
|
||
}
|
||
private UserProfile() {
|
||
siteUserId_ = "";
|
||
userName_ = "";
|
||
userPhoto_ = "";
|
||
selfIntroduce_ = "";
|
||
userStatus_ = 0;
|
||
registerTime_ = 0L;
|
||
siteLoginId_ = "";
|
||
nickName_ = "";
|
||
usernameInLatin_ = "";
|
||
userIdPubk_ = "";
|
||
}
|
||
|
||
@java.lang.Override
|
||
public final com.google.protobuf.UnknownFieldSet
|
||
getUnknownFields() {
|
||
return this.unknownFields;
|
||
}
|
||
private UserProfile(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
this();
|
||
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 (!parseUnknownFieldProto3(
|
||
input, unknownFields, extensionRegistry, tag)) {
|
||
done = true;
|
||
}
|
||
break;
|
||
}
|
||
case 10: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
siteUserId_ = s;
|
||
break;
|
||
}
|
||
case 18: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
userName_ = s;
|
||
break;
|
||
}
|
||
case 26: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
userPhoto_ = s;
|
||
break;
|
||
}
|
||
case 34: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
selfIntroduce_ = s;
|
||
break;
|
||
}
|
||
case 40: {
|
||
int rawValue = input.readEnum();
|
||
|
||
userStatus_ = rawValue;
|
||
break;
|
||
}
|
||
case 48: {
|
||
|
||
registerTime_ = input.readInt64();
|
||
break;
|
||
}
|
||
case 58: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
siteLoginId_ = s;
|
||
break;
|
||
}
|
||
case 66: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
nickName_ = s;
|
||
break;
|
||
}
|
||
case 74: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
usernameInLatin_ = s;
|
||
break;
|
||
}
|
||
case 82: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
userIdPubk_ = s;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
throw e.setUnfinishedMessage(this);
|
||
} catch (java.io.IOException e) {
|
||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||
e).setUnfinishedMessage(this);
|
||
} finally {
|
||
this.unknownFields = unknownFields.build();
|
||
makeExtensionsImmutable();
|
||
}
|
||
}
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.UserProfile.class, com.akaxin.proto.core.UserProto.UserProfile.Builder.class);
|
||
}
|
||
|
||
public static final int SITE_USER_ID_FIELD_NUMBER = 1;
|
||
private volatile java.lang.Object siteUserId_;
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public java.lang.String getSiteUserId() {
|
||
java.lang.Object ref = siteUserId_;
|
||
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();
|
||
siteUserId_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteUserIdBytes() {
|
||
java.lang.Object ref = siteUserId_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteUserId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USER_NAME_FIELD_NUMBER = 2;
|
||
private volatile java.lang.Object userName_;
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</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();
|
||
userName_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</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;
|
||
}
|
||
}
|
||
|
||
public static final int USER_PHOTO_FIELD_NUMBER = 3;
|
||
private volatile java.lang.Object userPhoto_;
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public java.lang.String getUserPhoto() {
|
||
java.lang.Object ref = userPhoto_;
|
||
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();
|
||
userPhoto_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUserPhotoBytes() {
|
||
java.lang.Object ref = userPhoto_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
userPhoto_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int SELF_INTRODUCE_FIELD_NUMBER = 4;
|
||
private volatile java.lang.Object selfIntroduce_;
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public java.lang.String getSelfIntroduce() {
|
||
java.lang.Object ref = selfIntroduce_;
|
||
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();
|
||
selfIntroduce_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSelfIntroduceBytes() {
|
||
java.lang.Object ref = selfIntroduce_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
selfIntroduce_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USER_STATUS_FIELD_NUMBER = 5;
|
||
private int userStatus_;
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public int getUserStatusValue() {
|
||
return userStatus_;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserStatus getUserStatus() {
|
||
com.akaxin.proto.core.UserProto.UserStatus result = com.akaxin.proto.core.UserProto.UserStatus.valueOf(userStatus_);
|
||
return result == null ? com.akaxin.proto.core.UserProto.UserStatus.UNRECOGNIZED : result;
|
||
}
|
||
|
||
public static final int REGISTER_TIME_FIELD_NUMBER = 6;
|
||
private long registerTime_;
|
||
/**
|
||
* <code>int64 register_time = 6;</code>
|
||
*/
|
||
public long getRegisterTime() {
|
||
return registerTime_;
|
||
}
|
||
|
||
public static final int SITE_LOGIN_ID_FIELD_NUMBER = 7;
|
||
private volatile java.lang.Object siteLoginId_;
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public java.lang.String getSiteLoginId() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
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();
|
||
siteLoginId_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteLoginIdBytes() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteLoginId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int NICK_NAME_FIELD_NUMBER = 8;
|
||
private volatile java.lang.Object nickName_;
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public java.lang.String getNickName() {
|
||
java.lang.Object ref = nickName_;
|
||
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();
|
||
nickName_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getNickNameBytes() {
|
||
java.lang.Object ref = nickName_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
nickName_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USERNAME_IN_LATIN_FIELD_NUMBER = 9;
|
||
private volatile java.lang.Object usernameInLatin_;
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public java.lang.String getUsernameInLatin() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
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();
|
||
usernameInLatin_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUsernameInLatinBytes() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
usernameInLatin_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USER_ID_PUBK_FIELD_NUMBER = 10;
|
||
private volatile java.lang.Object userIdPubk_;
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public java.lang.String getUserIdPubk() {
|
||
java.lang.Object ref = userIdPubk_;
|
||
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();
|
||
userIdPubk_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUserIdPubkBytes() {
|
||
java.lang.Object ref = userIdPubk_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
userIdPubk_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
private byte memoizedIsInitialized = -1;
|
||
public final boolean isInitialized() {
|
||
byte isInitialized = memoizedIsInitialized;
|
||
if (isInitialized == 1) return true;
|
||
if (isInitialized == 0) return false;
|
||
|
||
memoizedIsInitialized = 1;
|
||
return true;
|
||
}
|
||
|
||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||
throws java.io.IOException {
|
||
if (!getSiteUserIdBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteUserId_);
|
||
}
|
||
if (!getUserNameBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userName_);
|
||
}
|
||
if (!getUserPhotoBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userPhoto_);
|
||
}
|
||
if (!getSelfIntroduceBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, selfIntroduce_);
|
||
}
|
||
if (userStatus_ != com.akaxin.proto.core.UserProto.UserStatus.NORMAL.getNumber()) {
|
||
output.writeEnum(5, userStatus_);
|
||
}
|
||
if (registerTime_ != 0L) {
|
||
output.writeInt64(6, registerTime_);
|
||
}
|
||
if (!getSiteLoginIdBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, siteLoginId_);
|
||
}
|
||
if (!getNickNameBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, nickName_);
|
||
}
|
||
if (!getUsernameInLatinBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, usernameInLatin_);
|
||
}
|
||
if (!getUserIdPubkBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, userIdPubk_);
|
||
}
|
||
unknownFields.writeTo(output);
|
||
}
|
||
|
||
public int getSerializedSize() {
|
||
int size = memoizedSize;
|
||
if (size != -1) return size;
|
||
|
||
size = 0;
|
||
if (!getSiteUserIdBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteUserId_);
|
||
}
|
||
if (!getUserNameBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userName_);
|
||
}
|
||
if (!getUserPhotoBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userPhoto_);
|
||
}
|
||
if (!getSelfIntroduceBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, selfIntroduce_);
|
||
}
|
||
if (userStatus_ != com.akaxin.proto.core.UserProto.UserStatus.NORMAL.getNumber()) {
|
||
size += com.google.protobuf.CodedOutputStream
|
||
.computeEnumSize(5, userStatus_);
|
||
}
|
||
if (registerTime_ != 0L) {
|
||
size += com.google.protobuf.CodedOutputStream
|
||
.computeInt64Size(6, registerTime_);
|
||
}
|
||
if (!getSiteLoginIdBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, siteLoginId_);
|
||
}
|
||
if (!getNickNameBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, nickName_);
|
||
}
|
||
if (!getUsernameInLatinBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, usernameInLatin_);
|
||
}
|
||
if (!getUserIdPubkBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, userIdPubk_);
|
||
}
|
||
size += unknownFields.getSerializedSize();
|
||
memoizedSize = size;
|
||
return size;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public boolean equals(final java.lang.Object obj) {
|
||
if (obj == this) {
|
||
return true;
|
||
}
|
||
if (!(obj instanceof com.akaxin.proto.core.UserProto.UserProfile)) {
|
||
return super.equals(obj);
|
||
}
|
||
com.akaxin.proto.core.UserProto.UserProfile other = (com.akaxin.proto.core.UserProto.UserProfile) obj;
|
||
|
||
boolean result = true;
|
||
result = result && getSiteUserId()
|
||
.equals(other.getSiteUserId());
|
||
result = result && getUserName()
|
||
.equals(other.getUserName());
|
||
result = result && getUserPhoto()
|
||
.equals(other.getUserPhoto());
|
||
result = result && getSelfIntroduce()
|
||
.equals(other.getSelfIntroduce());
|
||
result = result && userStatus_ == other.userStatus_;
|
||
result = result && (getRegisterTime()
|
||
== other.getRegisterTime());
|
||
result = result && getSiteLoginId()
|
||
.equals(other.getSiteLoginId());
|
||
result = result && getNickName()
|
||
.equals(other.getNickName());
|
||
result = result && getUsernameInLatin()
|
||
.equals(other.getUsernameInLatin());
|
||
result = result && getUserIdPubk()
|
||
.equals(other.getUserIdPubk());
|
||
result = result && unknownFields.equals(other.unknownFields);
|
||
return result;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public int hashCode() {
|
||
if (memoizedHashCode != 0) {
|
||
return memoizedHashCode;
|
||
}
|
||
int hash = 41;
|
||
hash = (19 * hash) + getDescriptor().hashCode();
|
||
hash = (37 * hash) + SITE_USER_ID_FIELD_NUMBER;
|
||
hash = (53 * hash) + getSiteUserId().hashCode();
|
||
hash = (37 * hash) + USER_NAME_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUserName().hashCode();
|
||
hash = (37 * hash) + USER_PHOTO_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUserPhoto().hashCode();
|
||
hash = (37 * hash) + SELF_INTRODUCE_FIELD_NUMBER;
|
||
hash = (53 * hash) + getSelfIntroduce().hashCode();
|
||
hash = (37 * hash) + USER_STATUS_FIELD_NUMBER;
|
||
hash = (53 * hash) + userStatus_;
|
||
hash = (37 * hash) + REGISTER_TIME_FIELD_NUMBER;
|
||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||
getRegisterTime());
|
||
hash = (37 * hash) + SITE_LOGIN_ID_FIELD_NUMBER;
|
||
hash = (53 * hash) + getSiteLoginId().hashCode();
|
||
hash = (37 * hash) + NICK_NAME_FIELD_NUMBER;
|
||
hash = (53 * hash) + getNickName().hashCode();
|
||
hash = (37 * hash) + USERNAME_IN_LATIN_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUsernameInLatin().hashCode();
|
||
hash = (37 * hash) + USER_ID_PUBK_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUserIdPubk().hashCode();
|
||
hash = (29 * hash) + unknownFields.hashCode();
|
||
memoizedHashCode = hash;
|
||
return hash;
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
java.nio.ByteBuffer data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
java.nio.ByteBuffer data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
com.google.protobuf.ByteString data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
com.google.protobuf.ByteString data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(byte[] data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
byte[] data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseDelimitedFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseDelimitedFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
|
||
public Builder newBuilderForType() { return newBuilder(); }
|
||
public static Builder newBuilder() {
|
||
return DEFAULT_INSTANCE.toBuilder();
|
||
}
|
||
public static Builder newBuilder(com.akaxin.proto.core.UserProto.UserProfile prototype) {
|
||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||
}
|
||
public Builder toBuilder() {
|
||
return this == DEFAULT_INSTANCE
|
||
? new Builder() : new Builder().mergeFrom(this);
|
||
}
|
||
|
||
@java.lang.Override
|
||
protected Builder newBuilderForType(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
Builder builder = new Builder(parent);
|
||
return builder;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*获取用户的详细信息
|
||
* </pre>
|
||
*
|
||
* Protobuf type {@code core.UserProfile}
|
||
*/
|
||
public static final class Builder extends
|
||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||
// @@protoc_insertion_point(builder_implements:core.UserProfile)
|
||
com.akaxin.proto.core.UserProto.UserProfileOrBuilder {
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.UserProfile.class, com.akaxin.proto.core.UserProto.UserProfile.Builder.class);
|
||
}
|
||
|
||
// Construct using com.akaxin.proto.core.UserProto.UserProfile.newBuilder()
|
||
private Builder() {
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
|
||
private Builder(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
super(parent);
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
private void maybeForceBuilderInitialization() {
|
||
if (com.google.protobuf.GeneratedMessageV3
|
||
.alwaysUseFieldBuilders) {
|
||
}
|
||
}
|
||
public Builder clear() {
|
||
super.clear();
|
||
siteUserId_ = "";
|
||
|
||
userName_ = "";
|
||
|
||
userPhoto_ = "";
|
||
|
||
selfIntroduce_ = "";
|
||
|
||
userStatus_ = 0;
|
||
|
||
registerTime_ = 0L;
|
||
|
||
siteLoginId_ = "";
|
||
|
||
nickName_ = "";
|
||
|
||
usernameInLatin_ = "";
|
||
|
||
userIdPubk_ = "";
|
||
|
||
return this;
|
||
}
|
||
|
||
public com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptorForType() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserProfile_descriptor;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserProfile getDefaultInstanceForType() {
|
||
return com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance();
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserProfile build() {
|
||
com.akaxin.proto.core.UserProto.UserProfile result = buildPartial();
|
||
if (!result.isInitialized()) {
|
||
throw newUninitializedMessageException(result);
|
||
}
|
||
return result;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserProfile buildPartial() {
|
||
com.akaxin.proto.core.UserProto.UserProfile result = new com.akaxin.proto.core.UserProto.UserProfile(this);
|
||
result.siteUserId_ = siteUserId_;
|
||
result.userName_ = userName_;
|
||
result.userPhoto_ = userPhoto_;
|
||
result.selfIntroduce_ = selfIntroduce_;
|
||
result.userStatus_ = userStatus_;
|
||
result.registerTime_ = registerTime_;
|
||
result.siteLoginId_ = siteLoginId_;
|
||
result.nickName_ = nickName_;
|
||
result.usernameInLatin_ = usernameInLatin_;
|
||
result.userIdPubk_ = userIdPubk_;
|
||
onBuilt();
|
||
return result;
|
||
}
|
||
|
||
public Builder clone() {
|
||
return (Builder) super.clone();
|
||
}
|
||
public Builder setField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.setField(field, value);
|
||
}
|
||
public Builder clearField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||
return (Builder) super.clearField(field);
|
||
}
|
||
public Builder clearOneof(
|
||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||
return (Builder) super.clearOneof(oneof);
|
||
}
|
||
public Builder setRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
int index, java.lang.Object value) {
|
||
return (Builder) super.setRepeatedField(field, index, value);
|
||
}
|
||
public Builder addRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.addRepeatedField(field, value);
|
||
}
|
||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||
if (other instanceof com.akaxin.proto.core.UserProto.UserProfile) {
|
||
return mergeFrom((com.akaxin.proto.core.UserProto.UserProfile)other);
|
||
} else {
|
||
super.mergeFrom(other);
|
||
return this;
|
||
}
|
||
}
|
||
|
||
public Builder mergeFrom(com.akaxin.proto.core.UserProto.UserProfile other) {
|
||
if (other == com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance()) return this;
|
||
if (!other.getSiteUserId().isEmpty()) {
|
||
siteUserId_ = other.siteUserId_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUserName().isEmpty()) {
|
||
userName_ = other.userName_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUserPhoto().isEmpty()) {
|
||
userPhoto_ = other.userPhoto_;
|
||
onChanged();
|
||
}
|
||
if (!other.getSelfIntroduce().isEmpty()) {
|
||
selfIntroduce_ = other.selfIntroduce_;
|
||
onChanged();
|
||
}
|
||
if (other.userStatus_ != 0) {
|
||
setUserStatusValue(other.getUserStatusValue());
|
||
}
|
||
if (other.getRegisterTime() != 0L) {
|
||
setRegisterTime(other.getRegisterTime());
|
||
}
|
||
if (!other.getSiteLoginId().isEmpty()) {
|
||
siteLoginId_ = other.siteLoginId_;
|
||
onChanged();
|
||
}
|
||
if (!other.getNickName().isEmpty()) {
|
||
nickName_ = other.nickName_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUsernameInLatin().isEmpty()) {
|
||
usernameInLatin_ = other.usernameInLatin_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUserIdPubk().isEmpty()) {
|
||
userIdPubk_ = other.userIdPubk_;
|
||
onChanged();
|
||
}
|
||
this.mergeUnknownFields(other.unknownFields);
|
||
onChanged();
|
||
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 {
|
||
com.akaxin.proto.core.UserProto.UserProfile parsedMessage = null;
|
||
try {
|
||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
parsedMessage = (com.akaxin.proto.core.UserProto.UserProfile) e.getUnfinishedMessage();
|
||
throw e.unwrapIOException();
|
||
} finally {
|
||
if (parsedMessage != null) {
|
||
mergeFrom(parsedMessage);
|
||
}
|
||
}
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object siteUserId_ = "";
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public java.lang.String getSiteUserId() {
|
||
java.lang.Object ref = siteUserId_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
siteUserId_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteUserIdBytes() {
|
||
java.lang.Object ref = siteUserId_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteUserId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public Builder setSiteUserId(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
siteUserId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public Builder clearSiteUserId() {
|
||
|
||
siteUserId_ = getDefaultInstance().getSiteUserId();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public Builder setSiteUserIdBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
siteUserId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object userName_ = "";
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public java.lang.String getUserName() {
|
||
java.lang.Object ref = userName_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
userName_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</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;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public Builder setUserName(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public Builder clearUserName() {
|
||
|
||
userName_ = getDefaultInstance().getUserName();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public Builder setUserNameBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
userName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object userPhoto_ = "";
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public java.lang.String getUserPhoto() {
|
||
java.lang.Object ref = userPhoto_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
userPhoto_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUserPhotoBytes() {
|
||
java.lang.Object ref = userPhoto_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
userPhoto_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public Builder setUserPhoto(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userPhoto_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public Builder clearUserPhoto() {
|
||
|
||
userPhoto_ = getDefaultInstance().getUserPhoto();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public Builder setUserPhotoBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
userPhoto_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object selfIntroduce_ = "";
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public java.lang.String getSelfIntroduce() {
|
||
java.lang.Object ref = selfIntroduce_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
selfIntroduce_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSelfIntroduceBytes() {
|
||
java.lang.Object ref = selfIntroduce_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
selfIntroduce_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public Builder setSelfIntroduce(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
selfIntroduce_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public Builder clearSelfIntroduce() {
|
||
|
||
selfIntroduce_ = getDefaultInstance().getSelfIntroduce();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string self_introduce = 4;</code>
|
||
*/
|
||
public Builder setSelfIntroduceBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
selfIntroduce_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private int userStatus_ = 0;
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public int getUserStatusValue() {
|
||
return userStatus_;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public Builder setUserStatusValue(int value) {
|
||
userStatus_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserStatus getUserStatus() {
|
||
com.akaxin.proto.core.UserProto.UserStatus result = com.akaxin.proto.core.UserProto.UserStatus.valueOf(userStatus_);
|
||
return result == null ? com.akaxin.proto.core.UserProto.UserStatus.UNRECOGNIZED : result;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public Builder setUserStatus(com.akaxin.proto.core.UserProto.UserStatus value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userStatus_ = value.getNumber();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 5;</code>
|
||
*/
|
||
public Builder clearUserStatus() {
|
||
|
||
userStatus_ = 0;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private long registerTime_ ;
|
||
/**
|
||
* <code>int64 register_time = 6;</code>
|
||
*/
|
||
public long getRegisterTime() {
|
||
return registerTime_;
|
||
}
|
||
/**
|
||
* <code>int64 register_time = 6;</code>
|
||
*/
|
||
public Builder setRegisterTime(long value) {
|
||
|
||
registerTime_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>int64 register_time = 6;</code>
|
||
*/
|
||
public Builder clearRegisterTime() {
|
||
|
||
registerTime_ = 0L;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object siteLoginId_ = "";
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public java.lang.String getSiteLoginId() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
siteLoginId_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteLoginIdBytes() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteLoginId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public Builder setSiteLoginId(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
siteLoginId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public Builder clearSiteLoginId() {
|
||
|
||
siteLoginId_ = getDefaultInstance().getSiteLoginId();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一(例如使用:“卡号”表示)
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 7;</code>
|
||
*/
|
||
public Builder setSiteLoginIdBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
siteLoginId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object nickName_ = "";
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public java.lang.String getNickName() {
|
||
java.lang.Object ref = nickName_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
nickName_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getNickNameBytes() {
|
||
java.lang.Object ref = nickName_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
nickName_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public Builder setNickName(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
nickName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public Builder clearNickName() {
|
||
|
||
nickName_ = getDefaultInstance().getNickName();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 8;</code>
|
||
*/
|
||
public Builder setNickNameBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
nickName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object usernameInLatin_ = "";
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public java.lang.String getUsernameInLatin() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
usernameInLatin_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUsernameInLatinBytes() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
usernameInLatin_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public Builder setUsernameInLatin(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
usernameInLatin_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public Builder clearUsernameInLatin() {
|
||
|
||
usernameInLatin_ = getDefaultInstance().getUsernameInLatin();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*汉字转换拼音
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 9;</code>
|
||
*/
|
||
public Builder setUsernameInLatinBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
usernameInLatin_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object userIdPubk_ = "";
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public java.lang.String getUserIdPubk() {
|
||
java.lang.Object ref = userIdPubk_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
userIdPubk_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUserIdPubkBytes() {
|
||
java.lang.Object ref = userIdPubk_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
userIdPubk_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public Builder setUserIdPubk(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userIdPubk_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public Builder clearUserIdPubk() {
|
||
|
||
userIdPubk_ = getDefaultInstance().getUserIdPubk();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户公钥 SimpleUserProfile 不需要
|
||
* </pre>
|
||
*
|
||
* <code>string user_id_pubk = 10;</code>
|
||
*/
|
||
public Builder setUserIdPubkBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
userIdPubk_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
public final Builder setUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.setUnknownFieldsProto3(unknownFields);
|
||
}
|
||
|
||
public final Builder mergeUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.mergeUnknownFields(unknownFields);
|
||
}
|
||
|
||
|
||
// @@protoc_insertion_point(builder_scope:core.UserProfile)
|
||
}
|
||
|
||
// @@protoc_insertion_point(class_scope:core.UserProfile)
|
||
private static final com.akaxin.proto.core.UserProto.UserProfile DEFAULT_INSTANCE;
|
||
static {
|
||
DEFAULT_INSTANCE = new com.akaxin.proto.core.UserProto.UserProfile();
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.UserProfile getDefaultInstance() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
private static final com.google.protobuf.Parser<UserProfile>
|
||
PARSER = new com.google.protobuf.AbstractParser<UserProfile>() {
|
||
public UserProfile parsePartialFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return new UserProfile(input, extensionRegistry);
|
||
}
|
||
};
|
||
|
||
public static com.google.protobuf.Parser<UserProfile> parser() {
|
||
return PARSER;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public com.google.protobuf.Parser<UserProfile> getParserForType() {
|
||
return PARSER;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserProfile getDefaultInstanceForType() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
}
|
||
|
||
public interface SimpleUserProfileOrBuilder extends
|
||
// @@protoc_insertion_point(interface_extends:core.SimpleUserProfile)
|
||
com.google.protobuf.MessageOrBuilder {
|
||
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
java.lang.String getSiteUserId();
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getSiteUserIdBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
java.lang.String getUserName();
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUserNameBytes();
|
||
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
java.lang.String getUserPhoto();
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUserPhotoBytes();
|
||
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
int getUserStatusValue();
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.UserStatus getUserStatus();
|
||
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
java.lang.String getSiteLoginId();
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getSiteLoginIdBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
java.lang.String getNickName();
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getNickNameBytes();
|
||
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
java.lang.String getUsernameInLatin();
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getUsernameInLatinBytes();
|
||
}
|
||
/**
|
||
* <pre>
|
||
*获取用户的简单信息,一般用户展示列表等,例如用户好友列表
|
||
* </pre>
|
||
*
|
||
* Protobuf type {@code core.SimpleUserProfile}
|
||
*/
|
||
public static final class SimpleUserProfile extends
|
||
com.google.protobuf.GeneratedMessageV3 implements
|
||
// @@protoc_insertion_point(message_implements:core.SimpleUserProfile)
|
||
SimpleUserProfileOrBuilder {
|
||
private static final long serialVersionUID = 0L;
|
||
// Use SimpleUserProfile.newBuilder() to construct.
|
||
private SimpleUserProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||
super(builder);
|
||
}
|
||
private SimpleUserProfile() {
|
||
siteUserId_ = "";
|
||
userName_ = "";
|
||
userPhoto_ = "";
|
||
userStatus_ = 0;
|
||
siteLoginId_ = "";
|
||
nickName_ = "";
|
||
usernameInLatin_ = "";
|
||
}
|
||
|
||
@java.lang.Override
|
||
public final com.google.protobuf.UnknownFieldSet
|
||
getUnknownFields() {
|
||
return this.unknownFields;
|
||
}
|
||
private SimpleUserProfile(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
this();
|
||
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 (!parseUnknownFieldProto3(
|
||
input, unknownFields, extensionRegistry, tag)) {
|
||
done = true;
|
||
}
|
||
break;
|
||
}
|
||
case 10: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
siteUserId_ = s;
|
||
break;
|
||
}
|
||
case 18: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
userName_ = s;
|
||
break;
|
||
}
|
||
case 26: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
userPhoto_ = s;
|
||
break;
|
||
}
|
||
case 32: {
|
||
int rawValue = input.readEnum();
|
||
|
||
userStatus_ = rawValue;
|
||
break;
|
||
}
|
||
case 42: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
siteLoginId_ = s;
|
||
break;
|
||
}
|
||
case 50: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
nickName_ = s;
|
||
break;
|
||
}
|
||
case 58: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
usernameInLatin_ = s;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
throw e.setUnfinishedMessage(this);
|
||
} catch (java.io.IOException e) {
|
||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||
e).setUnfinishedMessage(this);
|
||
} finally {
|
||
this.unknownFields = unknownFields.build();
|
||
makeExtensionsImmutable();
|
||
}
|
||
}
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_SimpleUserProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_SimpleUserProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile.class, com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder.class);
|
||
}
|
||
|
||
public static final int SITE_USER_ID_FIELD_NUMBER = 1;
|
||
private volatile java.lang.Object siteUserId_;
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public java.lang.String getSiteUserId() {
|
||
java.lang.Object ref = siteUserId_;
|
||
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();
|
||
siteUserId_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteUserIdBytes() {
|
||
java.lang.Object ref = siteUserId_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteUserId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USER_NAME_FIELD_NUMBER = 2;
|
||
private volatile java.lang.Object userName_;
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</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();
|
||
userName_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</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;
|
||
}
|
||
}
|
||
|
||
public static final int USER_PHOTO_FIELD_NUMBER = 3;
|
||
private volatile java.lang.Object userPhoto_;
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public java.lang.String getUserPhoto() {
|
||
java.lang.Object ref = userPhoto_;
|
||
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();
|
||
userPhoto_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUserPhotoBytes() {
|
||
java.lang.Object ref = userPhoto_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
userPhoto_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USER_STATUS_FIELD_NUMBER = 4;
|
||
private int userStatus_;
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public int getUserStatusValue() {
|
||
return userStatus_;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserStatus getUserStatus() {
|
||
com.akaxin.proto.core.UserProto.UserStatus result = com.akaxin.proto.core.UserProto.UserStatus.valueOf(userStatus_);
|
||
return result == null ? com.akaxin.proto.core.UserProto.UserStatus.UNRECOGNIZED : result;
|
||
}
|
||
|
||
public static final int SITE_LOGIN_ID_FIELD_NUMBER = 5;
|
||
private volatile java.lang.Object siteLoginId_;
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public java.lang.String getSiteLoginId() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
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();
|
||
siteLoginId_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteLoginIdBytes() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteLoginId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int NICK_NAME_FIELD_NUMBER = 6;
|
||
private volatile java.lang.Object nickName_;
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public java.lang.String getNickName() {
|
||
java.lang.Object ref = nickName_;
|
||
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();
|
||
nickName_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getNickNameBytes() {
|
||
java.lang.Object ref = nickName_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
nickName_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
public static final int USERNAME_IN_LATIN_FIELD_NUMBER = 7;
|
||
private volatile java.lang.Object usernameInLatin_;
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public java.lang.String getUsernameInLatin() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
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();
|
||
usernameInLatin_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUsernameInLatinBytes() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
usernameInLatin_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
private byte memoizedIsInitialized = -1;
|
||
public final boolean isInitialized() {
|
||
byte isInitialized = memoizedIsInitialized;
|
||
if (isInitialized == 1) return true;
|
||
if (isInitialized == 0) return false;
|
||
|
||
memoizedIsInitialized = 1;
|
||
return true;
|
||
}
|
||
|
||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||
throws java.io.IOException {
|
||
if (!getSiteUserIdBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteUserId_);
|
||
}
|
||
if (!getUserNameBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userName_);
|
||
}
|
||
if (!getUserPhotoBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userPhoto_);
|
||
}
|
||
if (userStatus_ != com.akaxin.proto.core.UserProto.UserStatus.NORMAL.getNumber()) {
|
||
output.writeEnum(4, userStatus_);
|
||
}
|
||
if (!getSiteLoginIdBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, siteLoginId_);
|
||
}
|
||
if (!getNickNameBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nickName_);
|
||
}
|
||
if (!getUsernameInLatinBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, usernameInLatin_);
|
||
}
|
||
unknownFields.writeTo(output);
|
||
}
|
||
|
||
public int getSerializedSize() {
|
||
int size = memoizedSize;
|
||
if (size != -1) return size;
|
||
|
||
size = 0;
|
||
if (!getSiteUserIdBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteUserId_);
|
||
}
|
||
if (!getUserNameBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userName_);
|
||
}
|
||
if (!getUserPhotoBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userPhoto_);
|
||
}
|
||
if (userStatus_ != com.akaxin.proto.core.UserProto.UserStatus.NORMAL.getNumber()) {
|
||
size += com.google.protobuf.CodedOutputStream
|
||
.computeEnumSize(4, userStatus_);
|
||
}
|
||
if (!getSiteLoginIdBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, siteLoginId_);
|
||
}
|
||
if (!getNickNameBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, nickName_);
|
||
}
|
||
if (!getUsernameInLatinBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, usernameInLatin_);
|
||
}
|
||
size += unknownFields.getSerializedSize();
|
||
memoizedSize = size;
|
||
return size;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public boolean equals(final java.lang.Object obj) {
|
||
if (obj == this) {
|
||
return true;
|
||
}
|
||
if (!(obj instanceof com.akaxin.proto.core.UserProto.SimpleUserProfile)) {
|
||
return super.equals(obj);
|
||
}
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile other = (com.akaxin.proto.core.UserProto.SimpleUserProfile) obj;
|
||
|
||
boolean result = true;
|
||
result = result && getSiteUserId()
|
||
.equals(other.getSiteUserId());
|
||
result = result && getUserName()
|
||
.equals(other.getUserName());
|
||
result = result && getUserPhoto()
|
||
.equals(other.getUserPhoto());
|
||
result = result && userStatus_ == other.userStatus_;
|
||
result = result && getSiteLoginId()
|
||
.equals(other.getSiteLoginId());
|
||
result = result && getNickName()
|
||
.equals(other.getNickName());
|
||
result = result && getUsernameInLatin()
|
||
.equals(other.getUsernameInLatin());
|
||
result = result && unknownFields.equals(other.unknownFields);
|
||
return result;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public int hashCode() {
|
||
if (memoizedHashCode != 0) {
|
||
return memoizedHashCode;
|
||
}
|
||
int hash = 41;
|
||
hash = (19 * hash) + getDescriptor().hashCode();
|
||
hash = (37 * hash) + SITE_USER_ID_FIELD_NUMBER;
|
||
hash = (53 * hash) + getSiteUserId().hashCode();
|
||
hash = (37 * hash) + USER_NAME_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUserName().hashCode();
|
||
hash = (37 * hash) + USER_PHOTO_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUserPhoto().hashCode();
|
||
hash = (37 * hash) + USER_STATUS_FIELD_NUMBER;
|
||
hash = (53 * hash) + userStatus_;
|
||
hash = (37 * hash) + SITE_LOGIN_ID_FIELD_NUMBER;
|
||
hash = (53 * hash) + getSiteLoginId().hashCode();
|
||
hash = (37 * hash) + NICK_NAME_FIELD_NUMBER;
|
||
hash = (53 * hash) + getNickName().hashCode();
|
||
hash = (37 * hash) + USERNAME_IN_LATIN_FIELD_NUMBER;
|
||
hash = (53 * hash) + getUsernameInLatin().hashCode();
|
||
hash = (29 * hash) + unknownFields.hashCode();
|
||
memoizedHashCode = hash;
|
||
return hash;
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
java.nio.ByteBuffer data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
java.nio.ByteBuffer data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
com.google.protobuf.ByteString data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
com.google.protobuf.ByteString data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(byte[] data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
byte[] data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseDelimitedFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseDelimitedFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
|
||
public Builder newBuilderForType() { return newBuilder(); }
|
||
public static Builder newBuilder() {
|
||
return DEFAULT_INSTANCE.toBuilder();
|
||
}
|
||
public static Builder newBuilder(com.akaxin.proto.core.UserProto.SimpleUserProfile prototype) {
|
||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||
}
|
||
public Builder toBuilder() {
|
||
return this == DEFAULT_INSTANCE
|
||
? new Builder() : new Builder().mergeFrom(this);
|
||
}
|
||
|
||
@java.lang.Override
|
||
protected Builder newBuilderForType(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
Builder builder = new Builder(parent);
|
||
return builder;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*获取用户的简单信息,一般用户展示列表等,例如用户好友列表
|
||
* </pre>
|
||
*
|
||
* Protobuf type {@code core.SimpleUserProfile}
|
||
*/
|
||
public static final class Builder extends
|
||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||
// @@protoc_insertion_point(builder_implements:core.SimpleUserProfile)
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder {
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_SimpleUserProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_SimpleUserProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile.class, com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder.class);
|
||
}
|
||
|
||
// Construct using com.akaxin.proto.core.UserProto.SimpleUserProfile.newBuilder()
|
||
private Builder() {
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
|
||
private Builder(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
super(parent);
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
private void maybeForceBuilderInitialization() {
|
||
if (com.google.protobuf.GeneratedMessageV3
|
||
.alwaysUseFieldBuilders) {
|
||
}
|
||
}
|
||
public Builder clear() {
|
||
super.clear();
|
||
siteUserId_ = "";
|
||
|
||
userName_ = "";
|
||
|
||
userPhoto_ = "";
|
||
|
||
userStatus_ = 0;
|
||
|
||
siteLoginId_ = "";
|
||
|
||
nickName_ = "";
|
||
|
||
usernameInLatin_ = "";
|
||
|
||
return this;
|
||
}
|
||
|
||
public com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptorForType() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_SimpleUserProfile_descriptor;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile getDefaultInstanceForType() {
|
||
return com.akaxin.proto.core.UserProto.SimpleUserProfile.getDefaultInstance();
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile build() {
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile result = buildPartial();
|
||
if (!result.isInitialized()) {
|
||
throw newUninitializedMessageException(result);
|
||
}
|
||
return result;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile buildPartial() {
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile result = new com.akaxin.proto.core.UserProto.SimpleUserProfile(this);
|
||
result.siteUserId_ = siteUserId_;
|
||
result.userName_ = userName_;
|
||
result.userPhoto_ = userPhoto_;
|
||
result.userStatus_ = userStatus_;
|
||
result.siteLoginId_ = siteLoginId_;
|
||
result.nickName_ = nickName_;
|
||
result.usernameInLatin_ = usernameInLatin_;
|
||
onBuilt();
|
||
return result;
|
||
}
|
||
|
||
public Builder clone() {
|
||
return (Builder) super.clone();
|
||
}
|
||
public Builder setField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.setField(field, value);
|
||
}
|
||
public Builder clearField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||
return (Builder) super.clearField(field);
|
||
}
|
||
public Builder clearOneof(
|
||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||
return (Builder) super.clearOneof(oneof);
|
||
}
|
||
public Builder setRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
int index, java.lang.Object value) {
|
||
return (Builder) super.setRepeatedField(field, index, value);
|
||
}
|
||
public Builder addRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.addRepeatedField(field, value);
|
||
}
|
||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||
if (other instanceof com.akaxin.proto.core.UserProto.SimpleUserProfile) {
|
||
return mergeFrom((com.akaxin.proto.core.UserProto.SimpleUserProfile)other);
|
||
} else {
|
||
super.mergeFrom(other);
|
||
return this;
|
||
}
|
||
}
|
||
|
||
public Builder mergeFrom(com.akaxin.proto.core.UserProto.SimpleUserProfile other) {
|
||
if (other == com.akaxin.proto.core.UserProto.SimpleUserProfile.getDefaultInstance()) return this;
|
||
if (!other.getSiteUserId().isEmpty()) {
|
||
siteUserId_ = other.siteUserId_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUserName().isEmpty()) {
|
||
userName_ = other.userName_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUserPhoto().isEmpty()) {
|
||
userPhoto_ = other.userPhoto_;
|
||
onChanged();
|
||
}
|
||
if (other.userStatus_ != 0) {
|
||
setUserStatusValue(other.getUserStatusValue());
|
||
}
|
||
if (!other.getSiteLoginId().isEmpty()) {
|
||
siteLoginId_ = other.siteLoginId_;
|
||
onChanged();
|
||
}
|
||
if (!other.getNickName().isEmpty()) {
|
||
nickName_ = other.nickName_;
|
||
onChanged();
|
||
}
|
||
if (!other.getUsernameInLatin().isEmpty()) {
|
||
usernameInLatin_ = other.usernameInLatin_;
|
||
onChanged();
|
||
}
|
||
this.mergeUnknownFields(other.unknownFields);
|
||
onChanged();
|
||
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 {
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile parsedMessage = null;
|
||
try {
|
||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
parsedMessage = (com.akaxin.proto.core.UserProto.SimpleUserProfile) e.getUnfinishedMessage();
|
||
throw e.unwrapIOException();
|
||
} finally {
|
||
if (parsedMessage != null) {
|
||
mergeFrom(parsedMessage);
|
||
}
|
||
}
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object siteUserId_ = "";
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public java.lang.String getSiteUserId() {
|
||
java.lang.Object ref = siteUserId_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
siteUserId_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteUserIdBytes() {
|
||
java.lang.Object ref = siteUserId_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteUserId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public Builder setSiteUserId(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
siteUserId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public Builder clearSiteUserId() {
|
||
|
||
siteUserId_ = getDefaultInstance().getSiteUserId();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string site_user_id = 1;</code>
|
||
*/
|
||
public Builder setSiteUserIdBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
siteUserId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object userName_ = "";
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public java.lang.String getUserName() {
|
||
java.lang.Object ref = userName_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
userName_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</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;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public Builder setUserName(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public Builder clearUserName() {
|
||
|
||
userName_ = getDefaultInstance().getUserName();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*如果用户有备注,这里使用备注,如果没有使用昵称
|
||
* </pre>
|
||
*
|
||
* <code>string user_name = 2;</code>
|
||
*/
|
||
public Builder setUserNameBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
userName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object userPhoto_ = "";
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public java.lang.String getUserPhoto() {
|
||
java.lang.Object ref = userPhoto_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
userPhoto_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUserPhotoBytes() {
|
||
java.lang.Object ref = userPhoto_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
userPhoto_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public Builder setUserPhoto(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userPhoto_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public Builder clearUserPhoto() {
|
||
|
||
userPhoto_ = getDefaultInstance().getUserPhoto();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string user_photo = 3;</code>
|
||
*/
|
||
public Builder setUserPhotoBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
userPhoto_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private int userStatus_ = 0;
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public int getUserStatusValue() {
|
||
return userStatus_;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public Builder setUserStatusValue(int value) {
|
||
userStatus_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserStatus getUserStatus() {
|
||
com.akaxin.proto.core.UserProto.UserStatus result = com.akaxin.proto.core.UserProto.UserStatus.valueOf(userStatus_);
|
||
return result == null ? com.akaxin.proto.core.UserProto.UserStatus.UNRECOGNIZED : result;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public Builder setUserStatus(com.akaxin.proto.core.UserProto.UserStatus value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
userStatus_ = value.getNumber();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserStatus user_status = 4;</code>
|
||
*/
|
||
public Builder clearUserStatus() {
|
||
|
||
userStatus_ = 0;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object siteLoginId_ = "";
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public java.lang.String getSiteLoginId() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
siteLoginId_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getSiteLoginIdBytes() {
|
||
java.lang.Object ref = siteLoginId_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
siteLoginId_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public Builder setSiteLoginId(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
siteLoginId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public Builder clearSiteLoginId() {
|
||
|
||
siteLoginId_ = getDefaultInstance().getSiteLoginId();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户唯一登陆名,站点唯一
|
||
* </pre>
|
||
*
|
||
* <code>string site_login_id = 5;</code>
|
||
*/
|
||
public Builder setSiteLoginIdBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
siteLoginId_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object nickName_ = "";
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public java.lang.String getNickName() {
|
||
java.lang.Object ref = nickName_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
nickName_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getNickNameBytes() {
|
||
java.lang.Object ref = nickName_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
nickName_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public Builder setNickName(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
nickName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public Builder clearNickName() {
|
||
|
||
nickName_ = getDefaultInstance().getNickName();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户个人设置的昵称
|
||
* </pre>
|
||
*
|
||
* <code>string nick_name = 6;</code>
|
||
*/
|
||
public Builder setNickNameBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
nickName_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
|
||
private java.lang.Object usernameInLatin_ = "";
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public java.lang.String getUsernameInLatin() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
usernameInLatin_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getUsernameInLatinBytes() {
|
||
java.lang.Object ref = usernameInLatin_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
usernameInLatin_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public Builder setUsernameInLatin(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
usernameInLatin_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public Builder clearUsernameInLatin() {
|
||
|
||
usernameInLatin_ = getDefaultInstance().getUsernameInLatin();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*张三-> zhangsan
|
||
* </pre>
|
||
*
|
||
* <code>string username_in_latin = 7;</code>
|
||
*/
|
||
public Builder setUsernameInLatinBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
usernameInLatin_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
public final Builder setUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.setUnknownFieldsProto3(unknownFields);
|
||
}
|
||
|
||
public final Builder mergeUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.mergeUnknownFields(unknownFields);
|
||
}
|
||
|
||
|
||
// @@protoc_insertion_point(builder_scope:core.SimpleUserProfile)
|
||
}
|
||
|
||
// @@protoc_insertion_point(class_scope:core.SimpleUserProfile)
|
||
private static final com.akaxin.proto.core.UserProto.SimpleUserProfile DEFAULT_INSTANCE;
|
||
static {
|
||
DEFAULT_INSTANCE = new com.akaxin.proto.core.UserProto.SimpleUserProfile();
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.SimpleUserProfile getDefaultInstance() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
private static final com.google.protobuf.Parser<SimpleUserProfile>
|
||
PARSER = new com.google.protobuf.AbstractParser<SimpleUserProfile>() {
|
||
public SimpleUserProfile parsePartialFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return new SimpleUserProfile(input, extensionRegistry);
|
||
}
|
||
};
|
||
|
||
public static com.google.protobuf.Parser<SimpleUserProfile> parser() {
|
||
return PARSER;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public com.google.protobuf.Parser<SimpleUserProfile> getParserForType() {
|
||
return PARSER;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile getDefaultInstanceForType() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
}
|
||
|
||
public interface ApplyUserProfileOrBuilder extends
|
||
// @@protoc_insertion_point(interface_extends:core.ApplyUserProfile)
|
||
com.google.protobuf.MessageOrBuilder {
|
||
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
boolean hasApplyUser();
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.UserProfile getApplyUser();
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.UserProfileOrBuilder getApplyUserOrBuilder();
|
||
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
java.lang.String getApplyReason();
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
com.google.protobuf.ByteString
|
||
getApplyReasonBytes();
|
||
}
|
||
/**
|
||
* Protobuf type {@code core.ApplyUserProfile}
|
||
*/
|
||
public static final class ApplyUserProfile extends
|
||
com.google.protobuf.GeneratedMessageV3 implements
|
||
// @@protoc_insertion_point(message_implements:core.ApplyUserProfile)
|
||
ApplyUserProfileOrBuilder {
|
||
private static final long serialVersionUID = 0L;
|
||
// Use ApplyUserProfile.newBuilder() to construct.
|
||
private ApplyUserProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||
super(builder);
|
||
}
|
||
private ApplyUserProfile() {
|
||
applyReason_ = "";
|
||
}
|
||
|
||
@java.lang.Override
|
||
public final com.google.protobuf.UnknownFieldSet
|
||
getUnknownFields() {
|
||
return this.unknownFields;
|
||
}
|
||
private ApplyUserProfile(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
this();
|
||
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 (!parseUnknownFieldProto3(
|
||
input, unknownFields, extensionRegistry, tag)) {
|
||
done = true;
|
||
}
|
||
break;
|
||
}
|
||
case 10: {
|
||
com.akaxin.proto.core.UserProto.UserProfile.Builder subBuilder = null;
|
||
if (applyUser_ != null) {
|
||
subBuilder = applyUser_.toBuilder();
|
||
}
|
||
applyUser_ = input.readMessage(com.akaxin.proto.core.UserProto.UserProfile.parser(), extensionRegistry);
|
||
if (subBuilder != null) {
|
||
subBuilder.mergeFrom(applyUser_);
|
||
applyUser_ = subBuilder.buildPartial();
|
||
}
|
||
|
||
break;
|
||
}
|
||
case 18: {
|
||
java.lang.String s = input.readStringRequireUtf8();
|
||
|
||
applyReason_ = s;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
throw e.setUnfinishedMessage(this);
|
||
} catch (java.io.IOException e) {
|
||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||
e).setUnfinishedMessage(this);
|
||
} finally {
|
||
this.unknownFields = unknownFields.build();
|
||
makeExtensionsImmutable();
|
||
}
|
||
}
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_ApplyUserProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_ApplyUserProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfile.class, com.akaxin.proto.core.UserProto.ApplyUserProfile.Builder.class);
|
||
}
|
||
|
||
public static final int APPLYUSER_FIELD_NUMBER = 1;
|
||
private com.akaxin.proto.core.UserProto.UserProfile applyUser_;
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public boolean hasApplyUser() {
|
||
return applyUser_ != null;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserProfile getApplyUser() {
|
||
return applyUser_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : applyUser_;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getApplyUserOrBuilder() {
|
||
return getApplyUser();
|
||
}
|
||
|
||
public static final int APPLYREASON_FIELD_NUMBER = 2;
|
||
private volatile java.lang.Object applyReason_;
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public java.lang.String getApplyReason() {
|
||
java.lang.Object ref = applyReason_;
|
||
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();
|
||
applyReason_ = s;
|
||
return s;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getApplyReasonBytes() {
|
||
java.lang.Object ref = applyReason_;
|
||
if (ref instanceof java.lang.String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
applyReason_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
|
||
private byte memoizedIsInitialized = -1;
|
||
public final boolean isInitialized() {
|
||
byte isInitialized = memoizedIsInitialized;
|
||
if (isInitialized == 1) return true;
|
||
if (isInitialized == 0) return false;
|
||
|
||
memoizedIsInitialized = 1;
|
||
return true;
|
||
}
|
||
|
||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||
throws java.io.IOException {
|
||
if (applyUser_ != null) {
|
||
output.writeMessage(1, getApplyUser());
|
||
}
|
||
if (!getApplyReasonBytes().isEmpty()) {
|
||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applyReason_);
|
||
}
|
||
unknownFields.writeTo(output);
|
||
}
|
||
|
||
public int getSerializedSize() {
|
||
int size = memoizedSize;
|
||
if (size != -1) return size;
|
||
|
||
size = 0;
|
||
if (applyUser_ != null) {
|
||
size += com.google.protobuf.CodedOutputStream
|
||
.computeMessageSize(1, getApplyUser());
|
||
}
|
||
if (!getApplyReasonBytes().isEmpty()) {
|
||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applyReason_);
|
||
}
|
||
size += unknownFields.getSerializedSize();
|
||
memoizedSize = size;
|
||
return size;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public boolean equals(final java.lang.Object obj) {
|
||
if (obj == this) {
|
||
return true;
|
||
}
|
||
if (!(obj instanceof com.akaxin.proto.core.UserProto.ApplyUserProfile)) {
|
||
return super.equals(obj);
|
||
}
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfile other = (com.akaxin.proto.core.UserProto.ApplyUserProfile) obj;
|
||
|
||
boolean result = true;
|
||
result = result && (hasApplyUser() == other.hasApplyUser());
|
||
if (hasApplyUser()) {
|
||
result = result && getApplyUser()
|
||
.equals(other.getApplyUser());
|
||
}
|
||
result = result && getApplyReason()
|
||
.equals(other.getApplyReason());
|
||
result = result && unknownFields.equals(other.unknownFields);
|
||
return result;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public int hashCode() {
|
||
if (memoizedHashCode != 0) {
|
||
return memoizedHashCode;
|
||
}
|
||
int hash = 41;
|
||
hash = (19 * hash) + getDescriptor().hashCode();
|
||
if (hasApplyUser()) {
|
||
hash = (37 * hash) + APPLYUSER_FIELD_NUMBER;
|
||
hash = (53 * hash) + getApplyUser().hashCode();
|
||
}
|
||
hash = (37 * hash) + APPLYREASON_FIELD_NUMBER;
|
||
hash = (53 * hash) + getApplyReason().hashCode();
|
||
hash = (29 * hash) + unknownFields.hashCode();
|
||
memoizedHashCode = hash;
|
||
return hash;
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
java.nio.ByteBuffer data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
java.nio.ByteBuffer data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
com.google.protobuf.ByteString data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
com.google.protobuf.ByteString data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(byte[] data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
byte[] data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseDelimitedFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseDelimitedFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
|
||
public Builder newBuilderForType() { return newBuilder(); }
|
||
public static Builder newBuilder() {
|
||
return DEFAULT_INSTANCE.toBuilder();
|
||
}
|
||
public static Builder newBuilder(com.akaxin.proto.core.UserProto.ApplyUserProfile prototype) {
|
||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||
}
|
||
public Builder toBuilder() {
|
||
return this == DEFAULT_INSTANCE
|
||
? new Builder() : new Builder().mergeFrom(this);
|
||
}
|
||
|
||
@java.lang.Override
|
||
protected Builder newBuilderForType(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
Builder builder = new Builder(parent);
|
||
return builder;
|
||
}
|
||
/**
|
||
* Protobuf type {@code core.ApplyUserProfile}
|
||
*/
|
||
public static final class Builder extends
|
||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||
// @@protoc_insertion_point(builder_implements:core.ApplyUserProfile)
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfileOrBuilder {
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_ApplyUserProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_ApplyUserProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfile.class, com.akaxin.proto.core.UserProto.ApplyUserProfile.Builder.class);
|
||
}
|
||
|
||
// Construct using com.akaxin.proto.core.UserProto.ApplyUserProfile.newBuilder()
|
||
private Builder() {
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
|
||
private Builder(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
super(parent);
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
private void maybeForceBuilderInitialization() {
|
||
if (com.google.protobuf.GeneratedMessageV3
|
||
.alwaysUseFieldBuilders) {
|
||
}
|
||
}
|
||
public Builder clear() {
|
||
super.clear();
|
||
if (applyUserBuilder_ == null) {
|
||
applyUser_ = null;
|
||
} else {
|
||
applyUser_ = null;
|
||
applyUserBuilder_ = null;
|
||
}
|
||
applyReason_ = "";
|
||
|
||
return this;
|
||
}
|
||
|
||
public com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptorForType() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_ApplyUserProfile_descriptor;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.ApplyUserProfile getDefaultInstanceForType() {
|
||
return com.akaxin.proto.core.UserProto.ApplyUserProfile.getDefaultInstance();
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.ApplyUserProfile build() {
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfile result = buildPartial();
|
||
if (!result.isInitialized()) {
|
||
throw newUninitializedMessageException(result);
|
||
}
|
||
return result;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.ApplyUserProfile buildPartial() {
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfile result = new com.akaxin.proto.core.UserProto.ApplyUserProfile(this);
|
||
if (applyUserBuilder_ == null) {
|
||
result.applyUser_ = applyUser_;
|
||
} else {
|
||
result.applyUser_ = applyUserBuilder_.build();
|
||
}
|
||
result.applyReason_ = applyReason_;
|
||
onBuilt();
|
||
return result;
|
||
}
|
||
|
||
public Builder clone() {
|
||
return (Builder) super.clone();
|
||
}
|
||
public Builder setField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.setField(field, value);
|
||
}
|
||
public Builder clearField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||
return (Builder) super.clearField(field);
|
||
}
|
||
public Builder clearOneof(
|
||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||
return (Builder) super.clearOneof(oneof);
|
||
}
|
||
public Builder setRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
int index, java.lang.Object value) {
|
||
return (Builder) super.setRepeatedField(field, index, value);
|
||
}
|
||
public Builder addRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.addRepeatedField(field, value);
|
||
}
|
||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||
if (other instanceof com.akaxin.proto.core.UserProto.ApplyUserProfile) {
|
||
return mergeFrom((com.akaxin.proto.core.UserProto.ApplyUserProfile)other);
|
||
} else {
|
||
super.mergeFrom(other);
|
||
return this;
|
||
}
|
||
}
|
||
|
||
public Builder mergeFrom(com.akaxin.proto.core.UserProto.ApplyUserProfile other) {
|
||
if (other == com.akaxin.proto.core.UserProto.ApplyUserProfile.getDefaultInstance()) return this;
|
||
if (other.hasApplyUser()) {
|
||
mergeApplyUser(other.getApplyUser());
|
||
}
|
||
if (!other.getApplyReason().isEmpty()) {
|
||
applyReason_ = other.applyReason_;
|
||
onChanged();
|
||
}
|
||
this.mergeUnknownFields(other.unknownFields);
|
||
onChanged();
|
||
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 {
|
||
com.akaxin.proto.core.UserProto.ApplyUserProfile parsedMessage = null;
|
||
try {
|
||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
parsedMessage = (com.akaxin.proto.core.UserProto.ApplyUserProfile) e.getUnfinishedMessage();
|
||
throw e.unwrapIOException();
|
||
} finally {
|
||
if (parsedMessage != null) {
|
||
mergeFrom(parsedMessage);
|
||
}
|
||
}
|
||
return this;
|
||
}
|
||
|
||
private com.akaxin.proto.core.UserProto.UserProfile applyUser_ = null;
|
||
private com.google.protobuf.SingleFieldBuilderV3<
|
||
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder> applyUserBuilder_;
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public boolean hasApplyUser() {
|
||
return applyUserBuilder_ != null || applyUser_ != null;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserProfile getApplyUser() {
|
||
if (applyUserBuilder_ == null) {
|
||
return applyUser_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : applyUser_;
|
||
} else {
|
||
return applyUserBuilder_.getMessage();
|
||
}
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public Builder setApplyUser(com.akaxin.proto.core.UserProto.UserProfile value) {
|
||
if (applyUserBuilder_ == null) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
applyUser_ = value;
|
||
onChanged();
|
||
} else {
|
||
applyUserBuilder_.setMessage(value);
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public Builder setApplyUser(
|
||
com.akaxin.proto.core.UserProto.UserProfile.Builder builderForValue) {
|
||
if (applyUserBuilder_ == null) {
|
||
applyUser_ = builderForValue.build();
|
||
onChanged();
|
||
} else {
|
||
applyUserBuilder_.setMessage(builderForValue.build());
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public Builder mergeApplyUser(com.akaxin.proto.core.UserProto.UserProfile value) {
|
||
if (applyUserBuilder_ == null) {
|
||
if (applyUser_ != null) {
|
||
applyUser_ =
|
||
com.akaxin.proto.core.UserProto.UserProfile.newBuilder(applyUser_).mergeFrom(value).buildPartial();
|
||
} else {
|
||
applyUser_ = value;
|
||
}
|
||
onChanged();
|
||
} else {
|
||
applyUserBuilder_.mergeFrom(value);
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public Builder clearApplyUser() {
|
||
if (applyUserBuilder_ == null) {
|
||
applyUser_ = null;
|
||
onChanged();
|
||
} else {
|
||
applyUser_ = null;
|
||
applyUserBuilder_ = null;
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserProfile.Builder getApplyUserBuilder() {
|
||
|
||
onChanged();
|
||
return getApplyUserFieldBuilder().getBuilder();
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getApplyUserOrBuilder() {
|
||
if (applyUserBuilder_ != null) {
|
||
return applyUserBuilder_.getMessageOrBuilder();
|
||
} else {
|
||
return applyUser_ == null ?
|
||
com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : applyUser_;
|
||
}
|
||
}
|
||
/**
|
||
* <code>.core.UserProfile applyUser = 1;</code>
|
||
*/
|
||
private com.google.protobuf.SingleFieldBuilderV3<
|
||
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder>
|
||
getApplyUserFieldBuilder() {
|
||
if (applyUserBuilder_ == null) {
|
||
applyUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder>(
|
||
getApplyUser(),
|
||
getParentForChildren(),
|
||
isClean());
|
||
applyUser_ = null;
|
||
}
|
||
return applyUserBuilder_;
|
||
}
|
||
|
||
private java.lang.Object applyReason_ = "";
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public java.lang.String getApplyReason() {
|
||
java.lang.Object ref = applyReason_;
|
||
if (!(ref instanceof java.lang.String)) {
|
||
com.google.protobuf.ByteString bs =
|
||
(com.google.protobuf.ByteString) ref;
|
||
java.lang.String s = bs.toStringUtf8();
|
||
applyReason_ = s;
|
||
return s;
|
||
} else {
|
||
return (java.lang.String) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public com.google.protobuf.ByteString
|
||
getApplyReasonBytes() {
|
||
java.lang.Object ref = applyReason_;
|
||
if (ref instanceof String) {
|
||
com.google.protobuf.ByteString b =
|
||
com.google.protobuf.ByteString.copyFromUtf8(
|
||
(java.lang.String) ref);
|
||
applyReason_ = b;
|
||
return b;
|
||
} else {
|
||
return (com.google.protobuf.ByteString) ref;
|
||
}
|
||
}
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public Builder setApplyReason(
|
||
java.lang.String value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
applyReason_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public Builder clearApplyReason() {
|
||
|
||
applyReason_ = getDefaultInstance().getApplyReason();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <code>string applyReason = 2;</code>
|
||
*/
|
||
public Builder setApplyReasonBytes(
|
||
com.google.protobuf.ByteString value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
checkByteStringIsUtf8(value);
|
||
|
||
applyReason_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
public final Builder setUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.setUnknownFieldsProto3(unknownFields);
|
||
}
|
||
|
||
public final Builder mergeUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.mergeUnknownFields(unknownFields);
|
||
}
|
||
|
||
|
||
// @@protoc_insertion_point(builder_scope:core.ApplyUserProfile)
|
||
}
|
||
|
||
// @@protoc_insertion_point(class_scope:core.ApplyUserProfile)
|
||
private static final com.akaxin.proto.core.UserProto.ApplyUserProfile DEFAULT_INSTANCE;
|
||
static {
|
||
DEFAULT_INSTANCE = new com.akaxin.proto.core.UserProto.ApplyUserProfile();
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.ApplyUserProfile getDefaultInstance() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
private static final com.google.protobuf.Parser<ApplyUserProfile>
|
||
PARSER = new com.google.protobuf.AbstractParser<ApplyUserProfile>() {
|
||
public ApplyUserProfile parsePartialFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return new ApplyUserProfile(input, extensionRegistry);
|
||
}
|
||
};
|
||
|
||
public static com.google.protobuf.Parser<ApplyUserProfile> parser() {
|
||
return PARSER;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public com.google.protobuf.Parser<ApplyUserProfile> getParserForType() {
|
||
return PARSER;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.ApplyUserProfile getDefaultInstanceForType() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
}
|
||
|
||
public interface UserRelationProfileOrBuilder extends
|
||
// @@protoc_insertion_point(interface_extends:core.UserRelationProfile)
|
||
com.google.protobuf.MessageOrBuilder {
|
||
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
boolean hasProfile();
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile getProfile();
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder getProfileOrBuilder();
|
||
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
int getRelationValue();
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
com.akaxin.proto.core.UserProto.UserRelation getRelation();
|
||
}
|
||
/**
|
||
* Protobuf type {@code core.UserRelationProfile}
|
||
*/
|
||
public static final class UserRelationProfile extends
|
||
com.google.protobuf.GeneratedMessageV3 implements
|
||
// @@protoc_insertion_point(message_implements:core.UserRelationProfile)
|
||
UserRelationProfileOrBuilder {
|
||
private static final long serialVersionUID = 0L;
|
||
// Use UserRelationProfile.newBuilder() to construct.
|
||
private UserRelationProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||
super(builder);
|
||
}
|
||
private UserRelationProfile() {
|
||
relation_ = 0;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public final com.google.protobuf.UnknownFieldSet
|
||
getUnknownFields() {
|
||
return this.unknownFields;
|
||
}
|
||
private UserRelationProfile(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
this();
|
||
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 (!parseUnknownFieldProto3(
|
||
input, unknownFields, extensionRegistry, tag)) {
|
||
done = true;
|
||
}
|
||
break;
|
||
}
|
||
case 10: {
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder subBuilder = null;
|
||
if (profile_ != null) {
|
||
subBuilder = profile_.toBuilder();
|
||
}
|
||
profile_ = input.readMessage(com.akaxin.proto.core.UserProto.SimpleUserProfile.parser(), extensionRegistry);
|
||
if (subBuilder != null) {
|
||
subBuilder.mergeFrom(profile_);
|
||
profile_ = subBuilder.buildPartial();
|
||
}
|
||
|
||
break;
|
||
}
|
||
case 16: {
|
||
int rawValue = input.readEnum();
|
||
|
||
relation_ = rawValue;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
throw e.setUnfinishedMessage(this);
|
||
} catch (java.io.IOException e) {
|
||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||
e).setUnfinishedMessage(this);
|
||
} finally {
|
||
this.unknownFields = unknownFields.build();
|
||
makeExtensionsImmutable();
|
||
}
|
||
}
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserRelationProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserRelationProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.UserRelationProfile.class, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder.class);
|
||
}
|
||
|
||
public static final int PROFILE_FIELD_NUMBER = 1;
|
||
private com.akaxin.proto.core.UserProto.SimpleUserProfile profile_;
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public boolean hasProfile() {
|
||
return profile_ != null;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile getProfile() {
|
||
return profile_ == null ? com.akaxin.proto.core.UserProto.SimpleUserProfile.getDefaultInstance() : profile_;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder getProfileOrBuilder() {
|
||
return getProfile();
|
||
}
|
||
|
||
public static final int RELATION_FIELD_NUMBER = 2;
|
||
private int relation_;
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public int getRelationValue() {
|
||
return relation_;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserRelation getRelation() {
|
||
com.akaxin.proto.core.UserProto.UserRelation result = com.akaxin.proto.core.UserProto.UserRelation.valueOf(relation_);
|
||
return result == null ? com.akaxin.proto.core.UserProto.UserRelation.UNRECOGNIZED : result;
|
||
}
|
||
|
||
private byte memoizedIsInitialized = -1;
|
||
public final boolean isInitialized() {
|
||
byte isInitialized = memoizedIsInitialized;
|
||
if (isInitialized == 1) return true;
|
||
if (isInitialized == 0) return false;
|
||
|
||
memoizedIsInitialized = 1;
|
||
return true;
|
||
}
|
||
|
||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||
throws java.io.IOException {
|
||
if (profile_ != null) {
|
||
output.writeMessage(1, getProfile());
|
||
}
|
||
if (relation_ != com.akaxin.proto.core.UserProto.UserRelation.RELATION_NONE.getNumber()) {
|
||
output.writeEnum(2, relation_);
|
||
}
|
||
unknownFields.writeTo(output);
|
||
}
|
||
|
||
public int getSerializedSize() {
|
||
int size = memoizedSize;
|
||
if (size != -1) return size;
|
||
|
||
size = 0;
|
||
if (profile_ != null) {
|
||
size += com.google.protobuf.CodedOutputStream
|
||
.computeMessageSize(1, getProfile());
|
||
}
|
||
if (relation_ != com.akaxin.proto.core.UserProto.UserRelation.RELATION_NONE.getNumber()) {
|
||
size += com.google.protobuf.CodedOutputStream
|
||
.computeEnumSize(2, relation_);
|
||
}
|
||
size += unknownFields.getSerializedSize();
|
||
memoizedSize = size;
|
||
return size;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public boolean equals(final java.lang.Object obj) {
|
||
if (obj == this) {
|
||
return true;
|
||
}
|
||
if (!(obj instanceof com.akaxin.proto.core.UserProto.UserRelationProfile)) {
|
||
return super.equals(obj);
|
||
}
|
||
com.akaxin.proto.core.UserProto.UserRelationProfile other = (com.akaxin.proto.core.UserProto.UserRelationProfile) obj;
|
||
|
||
boolean result = true;
|
||
result = result && (hasProfile() == other.hasProfile());
|
||
if (hasProfile()) {
|
||
result = result && getProfile()
|
||
.equals(other.getProfile());
|
||
}
|
||
result = result && relation_ == other.relation_;
|
||
result = result && unknownFields.equals(other.unknownFields);
|
||
return result;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public int hashCode() {
|
||
if (memoizedHashCode != 0) {
|
||
return memoizedHashCode;
|
||
}
|
||
int hash = 41;
|
||
hash = (19 * hash) + getDescriptor().hashCode();
|
||
if (hasProfile()) {
|
||
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
|
||
hash = (53 * hash) + getProfile().hashCode();
|
||
}
|
||
hash = (37 * hash) + RELATION_FIELD_NUMBER;
|
||
hash = (53 * hash) + relation_;
|
||
hash = (29 * hash) + unknownFields.hashCode();
|
||
memoizedHashCode = hash;
|
||
return hash;
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
java.nio.ByteBuffer data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
java.nio.ByteBuffer data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
com.google.protobuf.ByteString data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
com.google.protobuf.ByteString data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(byte[] data)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
byte[] data,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return PARSER.parseFrom(data, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseDelimitedFrom(java.io.InputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseDelimitedFrom(
|
||
java.io.InputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input);
|
||
}
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile parseFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws java.io.IOException {
|
||
return com.google.protobuf.GeneratedMessageV3
|
||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||
}
|
||
|
||
public Builder newBuilderForType() { return newBuilder(); }
|
||
public static Builder newBuilder() {
|
||
return DEFAULT_INSTANCE.toBuilder();
|
||
}
|
||
public static Builder newBuilder(com.akaxin.proto.core.UserProto.UserRelationProfile prototype) {
|
||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||
}
|
||
public Builder toBuilder() {
|
||
return this == DEFAULT_INSTANCE
|
||
? new Builder() : new Builder().mergeFrom(this);
|
||
}
|
||
|
||
@java.lang.Override
|
||
protected Builder newBuilderForType(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
Builder builder = new Builder(parent);
|
||
return builder;
|
||
}
|
||
/**
|
||
* Protobuf type {@code core.UserRelationProfile}
|
||
*/
|
||
public static final class Builder extends
|
||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||
// @@protoc_insertion_point(builder_implements:core.UserRelationProfile)
|
||
com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder {
|
||
public static final com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptor() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserRelationProfile_descriptor;
|
||
}
|
||
|
||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internalGetFieldAccessorTable() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserRelationProfile_fieldAccessorTable
|
||
.ensureFieldAccessorsInitialized(
|
||
com.akaxin.proto.core.UserProto.UserRelationProfile.class, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder.class);
|
||
}
|
||
|
||
// Construct using com.akaxin.proto.core.UserProto.UserRelationProfile.newBuilder()
|
||
private Builder() {
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
|
||
private Builder(
|
||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||
super(parent);
|
||
maybeForceBuilderInitialization();
|
||
}
|
||
private void maybeForceBuilderInitialization() {
|
||
if (com.google.protobuf.GeneratedMessageV3
|
||
.alwaysUseFieldBuilders) {
|
||
}
|
||
}
|
||
public Builder clear() {
|
||
super.clear();
|
||
if (profileBuilder_ == null) {
|
||
profile_ = null;
|
||
} else {
|
||
profile_ = null;
|
||
profileBuilder_ = null;
|
||
}
|
||
relation_ = 0;
|
||
|
||
return this;
|
||
}
|
||
|
||
public com.google.protobuf.Descriptors.Descriptor
|
||
getDescriptorForType() {
|
||
return com.akaxin.proto.core.UserProto.internal_static_core_UserRelationProfile_descriptor;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserRelationProfile getDefaultInstanceForType() {
|
||
return com.akaxin.proto.core.UserProto.UserRelationProfile.getDefaultInstance();
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserRelationProfile build() {
|
||
com.akaxin.proto.core.UserProto.UserRelationProfile result = buildPartial();
|
||
if (!result.isInitialized()) {
|
||
throw newUninitializedMessageException(result);
|
||
}
|
||
return result;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserRelationProfile buildPartial() {
|
||
com.akaxin.proto.core.UserProto.UserRelationProfile result = new com.akaxin.proto.core.UserProto.UserRelationProfile(this);
|
||
if (profileBuilder_ == null) {
|
||
result.profile_ = profile_;
|
||
} else {
|
||
result.profile_ = profileBuilder_.build();
|
||
}
|
||
result.relation_ = relation_;
|
||
onBuilt();
|
||
return result;
|
||
}
|
||
|
||
public Builder clone() {
|
||
return (Builder) super.clone();
|
||
}
|
||
public Builder setField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.setField(field, value);
|
||
}
|
||
public Builder clearField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||
return (Builder) super.clearField(field);
|
||
}
|
||
public Builder clearOneof(
|
||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||
return (Builder) super.clearOneof(oneof);
|
||
}
|
||
public Builder setRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
int index, java.lang.Object value) {
|
||
return (Builder) super.setRepeatedField(field, index, value);
|
||
}
|
||
public Builder addRepeatedField(
|
||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||
java.lang.Object value) {
|
||
return (Builder) super.addRepeatedField(field, value);
|
||
}
|
||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||
if (other instanceof com.akaxin.proto.core.UserProto.UserRelationProfile) {
|
||
return mergeFrom((com.akaxin.proto.core.UserProto.UserRelationProfile)other);
|
||
} else {
|
||
super.mergeFrom(other);
|
||
return this;
|
||
}
|
||
}
|
||
|
||
public Builder mergeFrom(com.akaxin.proto.core.UserProto.UserRelationProfile other) {
|
||
if (other == com.akaxin.proto.core.UserProto.UserRelationProfile.getDefaultInstance()) return this;
|
||
if (other.hasProfile()) {
|
||
mergeProfile(other.getProfile());
|
||
}
|
||
if (other.relation_ != 0) {
|
||
setRelationValue(other.getRelationValue());
|
||
}
|
||
this.mergeUnknownFields(other.unknownFields);
|
||
onChanged();
|
||
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 {
|
||
com.akaxin.proto.core.UserProto.UserRelationProfile parsedMessage = null;
|
||
try {
|
||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||
parsedMessage = (com.akaxin.proto.core.UserProto.UserRelationProfile) e.getUnfinishedMessage();
|
||
throw e.unwrapIOException();
|
||
} finally {
|
||
if (parsedMessage != null) {
|
||
mergeFrom(parsedMessage);
|
||
}
|
||
}
|
||
return this;
|
||
}
|
||
|
||
private com.akaxin.proto.core.UserProto.SimpleUserProfile profile_ = null;
|
||
private com.google.protobuf.SingleFieldBuilderV3<
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile, com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder, com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder> profileBuilder_;
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public boolean hasProfile() {
|
||
return profileBuilder_ != null || profile_ != null;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile getProfile() {
|
||
if (profileBuilder_ == null) {
|
||
return profile_ == null ? com.akaxin.proto.core.UserProto.SimpleUserProfile.getDefaultInstance() : profile_;
|
||
} else {
|
||
return profileBuilder_.getMessage();
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public Builder setProfile(com.akaxin.proto.core.UserProto.SimpleUserProfile value) {
|
||
if (profileBuilder_ == null) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
profile_ = value;
|
||
onChanged();
|
||
} else {
|
||
profileBuilder_.setMessage(value);
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public Builder setProfile(
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder builderForValue) {
|
||
if (profileBuilder_ == null) {
|
||
profile_ = builderForValue.build();
|
||
onChanged();
|
||
} else {
|
||
profileBuilder_.setMessage(builderForValue.build());
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public Builder mergeProfile(com.akaxin.proto.core.UserProto.SimpleUserProfile value) {
|
||
if (profileBuilder_ == null) {
|
||
if (profile_ != null) {
|
||
profile_ =
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile.newBuilder(profile_).mergeFrom(value).buildPartial();
|
||
} else {
|
||
profile_ = value;
|
||
}
|
||
onChanged();
|
||
} else {
|
||
profileBuilder_.mergeFrom(value);
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public Builder clearProfile() {
|
||
if (profileBuilder_ == null) {
|
||
profile_ = null;
|
||
onChanged();
|
||
} else {
|
||
profile_ = null;
|
||
profileBuilder_ = null;
|
||
}
|
||
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder getProfileBuilder() {
|
||
|
||
onChanged();
|
||
return getProfileFieldBuilder().getBuilder();
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder getProfileOrBuilder() {
|
||
if (profileBuilder_ != null) {
|
||
return profileBuilder_.getMessageOrBuilder();
|
||
} else {
|
||
return profile_ == null ?
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile.getDefaultInstance() : profile_;
|
||
}
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户的个人资料
|
||
* </pre>
|
||
*
|
||
* <code>.core.SimpleUserProfile profile = 1;</code>
|
||
*/
|
||
private com.google.protobuf.SingleFieldBuilderV3<
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile, com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder, com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder>
|
||
getProfileFieldBuilder() {
|
||
if (profileBuilder_ == null) {
|
||
profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||
com.akaxin.proto.core.UserProto.SimpleUserProfile, com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder, com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder>(
|
||
getProfile(),
|
||
getParentForChildren(),
|
||
isClean());
|
||
profile_ = null;
|
||
}
|
||
return profileBuilder_;
|
||
}
|
||
|
||
private int relation_ = 0;
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public int getRelationValue() {
|
||
return relation_;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public Builder setRelationValue(int value) {
|
||
relation_ = value;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public com.akaxin.proto.core.UserProto.UserRelation getRelation() {
|
||
com.akaxin.proto.core.UserProto.UserRelation result = com.akaxin.proto.core.UserProto.UserRelation.valueOf(relation_);
|
||
return result == null ? com.akaxin.proto.core.UserProto.UserRelation.UNRECOGNIZED : result;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public Builder setRelation(com.akaxin.proto.core.UserProto.UserRelation value) {
|
||
if (value == null) {
|
||
throw new NullPointerException();
|
||
}
|
||
|
||
relation_ = value.getNumber();
|
||
onChanged();
|
||
return this;
|
||
}
|
||
/**
|
||
* <pre>
|
||
*用户A与B的关系
|
||
* </pre>
|
||
*
|
||
* <code>.core.UserRelation relation = 2;</code>
|
||
*/
|
||
public Builder clearRelation() {
|
||
|
||
relation_ = 0;
|
||
onChanged();
|
||
return this;
|
||
}
|
||
public final Builder setUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.setUnknownFieldsProto3(unknownFields);
|
||
}
|
||
|
||
public final Builder mergeUnknownFields(
|
||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||
return super.mergeUnknownFields(unknownFields);
|
||
}
|
||
|
||
|
||
// @@protoc_insertion_point(builder_scope:core.UserRelationProfile)
|
||
}
|
||
|
||
// @@protoc_insertion_point(class_scope:core.UserRelationProfile)
|
||
private static final com.akaxin.proto.core.UserProto.UserRelationProfile DEFAULT_INSTANCE;
|
||
static {
|
||
DEFAULT_INSTANCE = new com.akaxin.proto.core.UserProto.UserRelationProfile();
|
||
}
|
||
|
||
public static com.akaxin.proto.core.UserProto.UserRelationProfile getDefaultInstance() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
private static final com.google.protobuf.Parser<UserRelationProfile>
|
||
PARSER = new com.google.protobuf.AbstractParser<UserRelationProfile>() {
|
||
public UserRelationProfile parsePartialFrom(
|
||
com.google.protobuf.CodedInputStream input,
|
||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||
return new UserRelationProfile(input, extensionRegistry);
|
||
}
|
||
};
|
||
|
||
public static com.google.protobuf.Parser<UserRelationProfile> parser() {
|
||
return PARSER;
|
||
}
|
||
|
||
@java.lang.Override
|
||
public com.google.protobuf.Parser<UserRelationProfile> getParserForType() {
|
||
return PARSER;
|
||
}
|
||
|
||
public com.akaxin.proto.core.UserProto.UserRelationProfile getDefaultInstanceForType() {
|
||
return DEFAULT_INSTANCE;
|
||
}
|
||
|
||
}
|
||
|
||
private static final com.google.protobuf.Descriptors.Descriptor
|
||
internal_static_core_UserProfile_descriptor;
|
||
private static final
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internal_static_core_UserProfile_fieldAccessorTable;
|
||
private static final com.google.protobuf.Descriptors.Descriptor
|
||
internal_static_core_SimpleUserProfile_descriptor;
|
||
private static final
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internal_static_core_SimpleUserProfile_fieldAccessorTable;
|
||
private static final com.google.protobuf.Descriptors.Descriptor
|
||
internal_static_core_ApplyUserProfile_descriptor;
|
||
private static final
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internal_static_core_ApplyUserProfile_fieldAccessorTable;
|
||
private static final com.google.protobuf.Descriptors.Descriptor
|
||
internal_static_core_UserRelationProfile_descriptor;
|
||
private static final
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||
internal_static_core_UserRelationProfile_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\017core/user.proto\022\004core\"\373\001\n\013UserProfile\022" +
|
||
"\024\n\014site_user_id\030\001 \001(\t\022\021\n\tuser_name\030\002 \001(\t" +
|
||
"\022\022\n\nuser_photo\030\003 \001(\t\022\026\n\016self_introduce\030\004" +
|
||
" \001(\t\022%\n\013user_status\030\005 \001(\0162\020.core.UserSta" +
|
||
"tus\022\025\n\rregister_time\030\006 \001(\003\022\025\n\rsite_login" +
|
||
"_id\030\007 \001(\t\022\021\n\tnick_name\030\010 \001(\t\022\031\n\021username" +
|
||
"_in_latin\030\t \001(\t\022\024\n\014user_id_pubk\030\n \001(\t\"\274\001" +
|
||
"\n\021SimpleUserProfile\022\024\n\014site_user_id\030\001 \001(" +
|
||
"\t\022\021\n\tuser_name\030\002 \001(\t\022\022\n\nuser_photo\030\003 \001(\t" +
|
||
"\022%\n\013user_status\030\004 \001(\0162\020.core.UserStatus\022",
|
||
"\025\n\rsite_login_id\030\005 \001(\t\022\021\n\tnick_name\030\006 \001(" +
|
||
"\t\022\031\n\021username_in_latin\030\007 \001(\t\"M\n\020ApplyUse" +
|
||
"rProfile\022$\n\tapplyUser\030\001 \001(\0132\021.core.UserP" +
|
||
"rofile\022\023\n\013applyReason\030\002 \001(\t\"e\n\023UserRelat" +
|
||
"ionProfile\022(\n\007profile\030\001 \001(\0132\027.core.Simpl" +
|
||
"eUserProfile\022$\n\010relation\030\002 \001(\0162\022.core.Us" +
|
||
"erRelation*$\n\nUserStatus\022\n\n\006NORMAL\020\000\022\n\n\006" +
|
||
"SEALUP\020\001*\\\n\014UserRelation\022\021\n\rRELATION_NON" +
|
||
"E\020\000\022\023\n\017RELATION_FRIEND\020\001\022\021\n\rRELATION_CAR" +
|
||
"E\020\002\022\021\n\rRELATION_FANS\020\003B\"\n\025com.akaxin.pro",
|
||
"to.coreB\tUserProtob\006proto3"
|
||
};
|
||
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;
|
||
return null;
|
||
}
|
||
};
|
||
com.google.protobuf.Descriptors.FileDescriptor
|
||
.internalBuildGeneratedFileFrom(descriptorData,
|
||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||
}, assigner);
|
||
internal_static_core_UserProfile_descriptor =
|
||
getDescriptor().getMessageTypes().get(0);
|
||
internal_static_core_UserProfile_fieldAccessorTable = new
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||
internal_static_core_UserProfile_descriptor,
|
||
new java.lang.String[] { "SiteUserId", "UserName", "UserPhoto", "SelfIntroduce", "UserStatus", "RegisterTime", "SiteLoginId", "NickName", "UsernameInLatin", "UserIdPubk", });
|
||
internal_static_core_SimpleUserProfile_descriptor =
|
||
getDescriptor().getMessageTypes().get(1);
|
||
internal_static_core_SimpleUserProfile_fieldAccessorTable = new
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||
internal_static_core_SimpleUserProfile_descriptor,
|
||
new java.lang.String[] { "SiteUserId", "UserName", "UserPhoto", "UserStatus", "SiteLoginId", "NickName", "UsernameInLatin", });
|
||
internal_static_core_ApplyUserProfile_descriptor =
|
||
getDescriptor().getMessageTypes().get(2);
|
||
internal_static_core_ApplyUserProfile_fieldAccessorTable = new
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||
internal_static_core_ApplyUserProfile_descriptor,
|
||
new java.lang.String[] { "ApplyUser", "ApplyReason", });
|
||
internal_static_core_UserRelationProfile_descriptor =
|
||
getDescriptor().getMessageTypes().get(3);
|
||
internal_static_core_UserRelationProfile_fieldAccessorTable = new
|
||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||
internal_static_core_UserRelationProfile_descriptor,
|
||
new java.lang.String[] { "Profile", "Relation", });
|
||
}
|
||
|
||
// @@protoc_insertion_point(outer_class_scope)
|
||
}
|