// 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 { /** *
*正常用户 ** *
NORMAL = 0;
*/
NORMAL(0),
/**
* *禁封用户 ** *
SEALUP = 1;
*/
SEALUP(1),
UNRECOGNIZED(-1),
;
/**
* *正常用户 ** *
NORMAL = 0;
*/
public static final int NORMAL_VALUE = 0;
/**
* *禁封用户 ** *
SEALUP = 1;
*/
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* 针对当前用户A来说,用户B和A之间的关系 ** * Protobuf enum {@code core.UserRelation} */ public enum UserRelation implements com.google.protobuf.ProtocolMessageEnum { /** *
*用户无关系 ** *
RELATION_NONE = 0;
*/
RELATION_NONE(0),
/**
* *用户之间为好友关系,AB互相为好友 ** *
RELATION_FRIEND = 1;
*/
RELATION_FRIEND(1),
/**
* *A 关注 B(A添加B为好友,待B同意) ** *
RELATION_CARE = 2;
*/
RELATION_CARE(2),
/**
* *B 关注 A(B添加A为好友,待A同意) ** *
RELATION_FANS = 3;
*/
RELATION_FANS(3),
UNRECOGNIZED(-1),
;
/**
* *用户无关系 ** *
RELATION_NONE = 0;
*/
public static final int RELATION_NONE_VALUE = 0;
/**
* *用户之间为好友关系,AB互相为好友 ** *
RELATION_FRIEND = 1;
*/
public static final int RELATION_FRIEND_VALUE = 1;
/**
* *A 关注 B(A添加B为好友,待B同意) ** *
RELATION_CARE = 2;
*/
public static final int RELATION_CARE_VALUE = 2;
/**
* *B 关注 A(B添加A为好友,待A同意) ** *
RELATION_FANS = 3;
*/
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.EnumLiteMapstring site_user_id = 1;
*/
java.lang.String getSiteUserId();
/**
* string site_user_id = 1;
*/
com.google.protobuf.ByteString
getSiteUserIdBytes();
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
java.lang.String getUserName();
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
com.google.protobuf.ByteString
getUserNameBytes();
/**
* string user_photo = 3;
*/
java.lang.String getUserPhoto();
/**
* string user_photo = 3;
*/
com.google.protobuf.ByteString
getUserPhotoBytes();
/**
* string self_introduce = 4;
*/
java.lang.String getSelfIntroduce();
/**
* string self_introduce = 4;
*/
com.google.protobuf.ByteString
getSelfIntroduceBytes();
/**
* .core.UserStatus user_status = 5;
*/
int getUserStatusValue();
/**
* .core.UserStatus user_status = 5;
*/
com.akaxin.proto.core.UserProto.UserStatus getUserStatus();
/**
* int64 register_time = 6;
*/
long getRegisterTime();
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
java.lang.String getSiteLoginId();
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
com.google.protobuf.ByteString
getSiteLoginIdBytes();
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
java.lang.String getNickName();
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
com.google.protobuf.ByteString
getNickNameBytes();
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
java.lang.String getUsernameInLatin();
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
com.google.protobuf.ByteString
getUsernameInLatinBytes();
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
java.lang.String getUserIdPubk();
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
com.google.protobuf.ByteString
getUserIdPubkBytes();
}
/**
* *获取用户的详细信息 ** * 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_; /** *
string site_user_id = 1;
*/
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;
}
}
/**
* string site_user_id = 1;
*/
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_;
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
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;
}
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
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_;
/**
* string user_photo = 3;
*/
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;
}
}
/**
* string user_photo = 3;
*/
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_;
/**
* string self_introduce = 4;
*/
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;
}
}
/**
* string self_introduce = 4;
*/
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_;
/**
* .core.UserStatus user_status = 5;
*/
public int getUserStatusValue() {
return userStatus_;
}
/**
* .core.UserStatus user_status = 5;
*/
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_;
/**
* int64 register_time = 6;
*/
public long getRegisterTime() {
return registerTime_;
}
public static final int SITE_LOGIN_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object siteLoginId_;
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
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;
}
}
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
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_;
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
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;
}
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
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_;
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
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;
}
}
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
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_;
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
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;
}
}
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
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;
}
/**
* *获取用户的详细信息 ** * Protobuf type {@code core.UserProfile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
string site_user_id = 1;
*/
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;
}
}
/**
* string site_user_id = 1;
*/
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;
}
}
/**
* string site_user_id = 1;
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* string site_user_id = 1;
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* string site_user_id = 1;
*/
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_ = "";
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
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;
}
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
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;
}
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
public Builder setUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userName_ = value;
onChanged();
return this;
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
public Builder clearUserName() {
userName_ = getDefaultInstance().getUserName();
onChanged();
return this;
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称,修改个人profile昵称,直接把昵称复制这里 ** *
string user_name = 2;
*/
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_ = "";
/**
* string user_photo = 3;
*/
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;
}
}
/**
* string user_photo = 3;
*/
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;
}
}
/**
* string user_photo = 3;
*/
public Builder setUserPhoto(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userPhoto_ = value;
onChanged();
return this;
}
/**
* string user_photo = 3;
*/
public Builder clearUserPhoto() {
userPhoto_ = getDefaultInstance().getUserPhoto();
onChanged();
return this;
}
/**
* string user_photo = 3;
*/
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_ = "";
/**
* string self_introduce = 4;
*/
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;
}
}
/**
* string self_introduce = 4;
*/
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;
}
}
/**
* string self_introduce = 4;
*/
public Builder setSelfIntroduce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
selfIntroduce_ = value;
onChanged();
return this;
}
/**
* string self_introduce = 4;
*/
public Builder clearSelfIntroduce() {
selfIntroduce_ = getDefaultInstance().getSelfIntroduce();
onChanged();
return this;
}
/**
* string self_introduce = 4;
*/
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;
/**
* .core.UserStatus user_status = 5;
*/
public int getUserStatusValue() {
return userStatus_;
}
/**
* .core.UserStatus user_status = 5;
*/
public Builder setUserStatusValue(int value) {
userStatus_ = value;
onChanged();
return this;
}
/**
* .core.UserStatus user_status = 5;
*/
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;
}
/**
* .core.UserStatus user_status = 5;
*/
public Builder setUserStatus(com.akaxin.proto.core.UserProto.UserStatus value) {
if (value == null) {
throw new NullPointerException();
}
userStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .core.UserStatus user_status = 5;
*/
public Builder clearUserStatus() {
userStatus_ = 0;
onChanged();
return this;
}
private long registerTime_ ;
/**
* int64 register_time = 6;
*/
public long getRegisterTime() {
return registerTime_;
}
/**
* int64 register_time = 6;
*/
public Builder setRegisterTime(long value) {
registerTime_ = value;
onChanged();
return this;
}
/**
* int64 register_time = 6;
*/
public Builder clearRegisterTime() {
registerTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object siteLoginId_ = "";
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
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;
}
}
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
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;
}
}
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
public Builder setSiteLoginId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteLoginId_ = value;
onChanged();
return this;
}
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
public Builder clearSiteLoginId() {
siteLoginId_ = getDefaultInstance().getSiteLoginId();
onChanged();
return this;
}
/**
* *用户唯一登陆名,站点唯一(例如使用:“卡号”表示) ** *
string site_login_id = 7;
*/
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_ = "";
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
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;
}
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
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;
}
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
public Builder setNickName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickName_ = value;
onChanged();
return this;
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
public Builder clearNickName() {
nickName_ = getDefaultInstance().getNickName();
onChanged();
return this;
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 8;
*/
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_ = "";
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
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;
}
}
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
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;
}
}
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
public Builder setUsernameInLatin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
usernameInLatin_ = value;
onChanged();
return this;
}
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
public Builder clearUsernameInLatin() {
usernameInLatin_ = getDefaultInstance().getUsernameInLatin();
onChanged();
return this;
}
/**
* *汉字转换拼音 ** *
string username_in_latin = 9;
*/
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_ = "";
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
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;
}
}
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
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;
}
}
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
public Builder setUserIdPubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdPubk_ = value;
onChanged();
return this;
}
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
public Builder clearUserIdPubk() {
userIdPubk_ = getDefaultInstance().getUserIdPubk();
onChanged();
return this;
}
/**
* *用户公钥 SimpleUserProfile 不需要 ** *
string user_id_pubk = 10;
*/
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.Parserstring site_user_id = 1;
*/
java.lang.String getSiteUserId();
/**
* string site_user_id = 1;
*/
com.google.protobuf.ByteString
getSiteUserIdBytes();
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
java.lang.String getUserName();
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
com.google.protobuf.ByteString
getUserNameBytes();
/**
* string user_photo = 3;
*/
java.lang.String getUserPhoto();
/**
* string user_photo = 3;
*/
com.google.protobuf.ByteString
getUserPhotoBytes();
/**
* .core.UserStatus user_status = 4;
*/
int getUserStatusValue();
/**
* .core.UserStatus user_status = 4;
*/
com.akaxin.proto.core.UserProto.UserStatus getUserStatus();
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
java.lang.String getSiteLoginId();
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
com.google.protobuf.ByteString
getSiteLoginIdBytes();
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
java.lang.String getNickName();
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
com.google.protobuf.ByteString
getNickNameBytes();
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
java.lang.String getUsernameInLatin();
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
com.google.protobuf.ByteString
getUsernameInLatinBytes();
}
/**
* *获取用户的简单信息,一般用户展示列表等,例如用户好友列表 ** * 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_; /** *
string site_user_id = 1;
*/
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;
}
}
/**
* string site_user_id = 1;
*/
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_;
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
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;
}
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
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_;
/**
* string user_photo = 3;
*/
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;
}
}
/**
* string user_photo = 3;
*/
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_;
/**
* .core.UserStatus user_status = 4;
*/
public int getUserStatusValue() {
return userStatus_;
}
/**
* .core.UserStatus user_status = 4;
*/
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_;
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
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;
}
}
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
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_;
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
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;
}
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
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_;
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
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;
}
}
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
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;
}
/**
* *获取用户的简单信息,一般用户展示列表等,例如用户好友列表 ** * Protobuf type {@code core.SimpleUserProfile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
string site_user_id = 1;
*/
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;
}
}
/**
* string site_user_id = 1;
*/
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;
}
}
/**
* string site_user_id = 1;
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* string site_user_id = 1;
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* string site_user_id = 1;
*/
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_ = "";
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
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;
}
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
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;
}
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
public Builder setUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userName_ = value;
onChanged();
return this;
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
public Builder clearUserName() {
userName_ = getDefaultInstance().getUserName();
onChanged();
return this;
}
/**
* *如果用户有备注,这里使用备注,如果没有使用昵称 ** *
string user_name = 2;
*/
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_ = "";
/**
* string user_photo = 3;
*/
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;
}
}
/**
* string user_photo = 3;
*/
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;
}
}
/**
* string user_photo = 3;
*/
public Builder setUserPhoto(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userPhoto_ = value;
onChanged();
return this;
}
/**
* string user_photo = 3;
*/
public Builder clearUserPhoto() {
userPhoto_ = getDefaultInstance().getUserPhoto();
onChanged();
return this;
}
/**
* string user_photo = 3;
*/
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;
/**
* .core.UserStatus user_status = 4;
*/
public int getUserStatusValue() {
return userStatus_;
}
/**
* .core.UserStatus user_status = 4;
*/
public Builder setUserStatusValue(int value) {
userStatus_ = value;
onChanged();
return this;
}
/**
* .core.UserStatus user_status = 4;
*/
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;
}
/**
* .core.UserStatus user_status = 4;
*/
public Builder setUserStatus(com.akaxin.proto.core.UserProto.UserStatus value) {
if (value == null) {
throw new NullPointerException();
}
userStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .core.UserStatus user_status = 4;
*/
public Builder clearUserStatus() {
userStatus_ = 0;
onChanged();
return this;
}
private java.lang.Object siteLoginId_ = "";
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
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;
}
}
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
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;
}
}
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
public Builder setSiteLoginId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteLoginId_ = value;
onChanged();
return this;
}
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
public Builder clearSiteLoginId() {
siteLoginId_ = getDefaultInstance().getSiteLoginId();
onChanged();
return this;
}
/**
* *用户唯一登陆名,站点唯一 ** *
string site_login_id = 5;
*/
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_ = "";
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
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;
}
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
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;
}
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
public Builder setNickName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickName_ = value;
onChanged();
return this;
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
public Builder clearNickName() {
nickName_ = getDefaultInstance().getNickName();
onChanged();
return this;
}
/**
* *用户个人设置的昵称 ** *
string nick_name = 6;
*/
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_ = "";
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
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;
}
}
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
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;
}
}
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
public Builder setUsernameInLatin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
usernameInLatin_ = value;
onChanged();
return this;
}
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
public Builder clearUsernameInLatin() {
usernameInLatin_ = getDefaultInstance().getUsernameInLatin();
onChanged();
return this;
}
/**
* *张三-> zhangsan ** *
string username_in_latin = 7;
*/
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.core.UserProfile applyUser = 1;
*/
boolean hasApplyUser();
/**
* .core.UserProfile applyUser = 1;
*/
com.akaxin.proto.core.UserProto.UserProfile getApplyUser();
/**
* .core.UserProfile applyUser = 1;
*/
com.akaxin.proto.core.UserProto.UserProfileOrBuilder getApplyUserOrBuilder();
/**
* string applyReason = 2;
*/
java.lang.String getApplyReason();
/**
* string applyReason = 2;
*/
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_;
/**
* .core.UserProfile applyUser = 1;
*/
public boolean hasApplyUser() {
return applyUser_ != null;
}
/**
* .core.UserProfile applyUser = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfile getApplyUser() {
return applyUser_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : applyUser_;
}
/**
* .core.UserProfile applyUser = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getApplyUserOrBuilder() {
return getApplyUser();
}
public static final int APPLYREASON_FIELD_NUMBER = 2;
private volatile java.lang.Object applyReason_;
/**
* string applyReason = 2;
*/
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;
}
}
/**
* string applyReason = 2;
*/
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.core.UserProfile applyUser = 1;
*/
public boolean hasApplyUser() {
return applyUserBuilder_ != null || applyUser_ != null;
}
/**
* .core.UserProfile applyUser = 1;
*/
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();
}
}
/**
* .core.UserProfile applyUser = 1;
*/
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;
}
/**
* .core.UserProfile applyUser = 1;
*/
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;
}
/**
* .core.UserProfile applyUser = 1;
*/
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;
}
/**
* .core.UserProfile applyUser = 1;
*/
public Builder clearApplyUser() {
if (applyUserBuilder_ == null) {
applyUser_ = null;
onChanged();
} else {
applyUser_ = null;
applyUserBuilder_ = null;
}
return this;
}
/**
* .core.UserProfile applyUser = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfile.Builder getApplyUserBuilder() {
onChanged();
return getApplyUserFieldBuilder().getBuilder();
}
/**
* .core.UserProfile applyUser = 1;
*/
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_;
}
}
/**
* .core.UserProfile applyUser = 1;
*/
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_ = "";
/**
* string applyReason = 2;
*/
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;
}
}
/**
* string applyReason = 2;
*/
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;
}
}
/**
* string applyReason = 2;
*/
public Builder setApplyReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
applyReason_ = value;
onChanged();
return this;
}
/**
* string applyReason = 2;
*/
public Builder clearApplyReason() {
applyReason_ = getDefaultInstance().getApplyReason();
onChanged();
return this;
}
/**
* string applyReason = 2;
*/
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*用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
boolean hasProfile();
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
com.akaxin.proto.core.UserProto.SimpleUserProfile getProfile();
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder getProfileOrBuilder();
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
int getRelationValue();
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
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_;
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
public boolean hasProfile() {
return profile_ != null;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.SimpleUserProfile getProfile() {
return profile_ == null ? com.akaxin.proto.core.UserProto.SimpleUserProfile.getDefaultInstance() : profile_;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.SimpleUserProfileOrBuilder getProfileOrBuilder() {
return getProfile();
}
public static final int RELATION_FIELD_NUMBER = 2;
private int relation_;
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
public int getRelationValue() {
return relation_;
}
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
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*用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
public boolean hasProfile() {
return profileBuilder_ != null || profile_ != null;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
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();
}
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
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;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
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;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
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;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
profile_ = null;
onChanged();
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.SimpleUserProfile.Builder getProfileBuilder() {
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
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_;
}
}
/**
* *用户的个人资料 ** *
.core.SimpleUserProfile profile = 1;
*/
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;
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
public int getRelationValue() {
return relation_;
}
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
public Builder setRelationValue(int value) {
relation_ = value;
onChanged();
return this;
}
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
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;
}
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
public Builder setRelation(com.akaxin.proto.core.UserProto.UserRelation value) {
if (value == null) {
throw new NullPointerException();
}
relation_ = value.getNumber();
onChanged();
return this;
}
/**
* *用户A与B的关系 ** *
.core.UserRelation relation = 2;
*/
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