mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-20 10:55:08 +01:00
2836 lines
93 KiB
Java
2836 lines
93 KiB
Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: SocialDetail.proto
|
|
|
|
package emu.grasscutter.net.proto;
|
|
|
|
public final class SocialDetailOuterClass {
|
|
private SocialDetailOuterClass() {}
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistryLite registry) {
|
|
}
|
|
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistry registry) {
|
|
registerAllExtensions(
|
|
(com.google.protobuf.ExtensionRegistryLite) registry);
|
|
}
|
|
public interface SocialDetailOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:SocialDetail)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <code>uint32 uid = 1;</code>
|
|
* @return The uid.
|
|
*/
|
|
int getUid();
|
|
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return The nickname.
|
|
*/
|
|
java.lang.String getNickname();
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return The bytes for nickname.
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getNicknameBytes();
|
|
|
|
/**
|
|
* <code>uint32 level = 3;</code>
|
|
* @return The level.
|
|
*/
|
|
int getLevel();
|
|
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return The signature.
|
|
*/
|
|
java.lang.String getSignature();
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return The bytes for signature.
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getSignatureBytes();
|
|
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
* @return Whether the birthday field is set.
|
|
*/
|
|
boolean hasBirthday();
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
* @return The birthday.
|
|
*/
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday();
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder();
|
|
|
|
/**
|
|
* <code>uint32 worldLevel = 7;</code>
|
|
* @return The worldLevel.
|
|
*/
|
|
int getWorldLevel();
|
|
|
|
/**
|
|
* <code>uint32 unk1 = 9;</code>
|
|
* @return The unk1.
|
|
*/
|
|
int getUnk1();
|
|
|
|
/**
|
|
* <pre>
|
|
*FriendOnlineState onlineState = 10;
|
|
*bool isMpModeAvailable = 10;
|
|
* </pre>
|
|
*
|
|
* <code>bool isFriend = 11;</code>
|
|
* @return The isFriend.
|
|
*/
|
|
boolean getIsFriend();
|
|
|
|
/**
|
|
* <code>uint32 unk3 = 12;</code>
|
|
* @return The unk3.
|
|
*/
|
|
int getUnk3();
|
|
|
|
/**
|
|
* <code>uint32 lastActiveTime = 13;</code>
|
|
* @return The lastActiveTime.
|
|
*/
|
|
int getLastActiveTime();
|
|
|
|
/**
|
|
* <code>uint32 nameCardId = 14;</code>
|
|
* @return The nameCardId.
|
|
*/
|
|
int getNameCardId();
|
|
|
|
/**
|
|
* <code>bool isInBlacklist = 15;</code>
|
|
* @return The isInBlacklist.
|
|
*/
|
|
boolean getIsInBlacklist();
|
|
|
|
/**
|
|
* <code>bool isChatNoDisturb = 16;</code>
|
|
* @return The isChatNoDisturb.
|
|
*/
|
|
boolean getIsChatNoDisturb();
|
|
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return The remarkName.
|
|
*/
|
|
java.lang.String getRemarkName();
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return The bytes for remarkName.
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getRemarkNameBytes();
|
|
|
|
/**
|
|
* <code>uint32 finishAchievementNum = 18;</code>
|
|
* @return The finishAchievementNum.
|
|
*/
|
|
int getFinishAchievementNum();
|
|
|
|
/**
|
|
* <code>uint32 towerFloorIndex = 19;</code>
|
|
* @return The towerFloorIndex.
|
|
*/
|
|
int getTowerFloorIndex();
|
|
|
|
/**
|
|
* <code>uint32 towerLevelIndex = 20;</code>
|
|
* @return The towerLevelIndex.
|
|
*/
|
|
int getTowerLevelIndex();
|
|
|
|
/**
|
|
* <code>bool isShowAvatar = 21;</code>
|
|
* @return The isShowAvatar.
|
|
*/
|
|
boolean getIsShowAvatar();
|
|
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>
|
|
getShowAvatarInfoListList();
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index);
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
int getShowAvatarInfoListCount();
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>
|
|
getShowAvatarInfoListOrBuilderList();
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder(
|
|
int index);
|
|
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return The enum numeric value on the wire for friendEnterHomeOption.
|
|
*/
|
|
int getFriendEnterHomeOptionValue();
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return The friendEnterHomeOption.
|
|
*/
|
|
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption();
|
|
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
* @return Whether the avatar field is set.
|
|
*/
|
|
boolean hasAvatar();
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
* @return The avatar.
|
|
*/
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar();
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder();
|
|
}
|
|
/**
|
|
* Protobuf type {@code SocialDetail}
|
|
*/
|
|
public static final class SocialDetail extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:SocialDetail)
|
|
SocialDetailOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use SocialDetail.newBuilder() to construct.
|
|
private SocialDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private SocialDetail() {
|
|
nickname_ = "";
|
|
signature_ = "";
|
|
remarkName_ = "";
|
|
showAvatarInfoList_ = java.util.Collections.emptyList();
|
|
friendEnterHomeOption_ = 0;
|
|
}
|
|
|
|
@java.lang.Override
|
|
@SuppressWarnings({"unused"})
|
|
protected java.lang.Object newInstance(
|
|
UnusedPrivateParameter unused) {
|
|
return new SocialDetail();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private SocialDetail(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
if (extensionRegistry == null) {
|
|
throw new java.lang.NullPointerException();
|
|
}
|
|
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;
|
|
case 8: {
|
|
|
|
uid_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
nickname_ = s;
|
|
break;
|
|
}
|
|
case 24: {
|
|
|
|
level_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 42: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
signature_ = s;
|
|
break;
|
|
}
|
|
case 50: {
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder subBuilder = null;
|
|
if (birthday_ != null) {
|
|
subBuilder = birthday_.toBuilder();
|
|
}
|
|
birthday_ = input.readMessage(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.parser(), extensionRegistry);
|
|
if (subBuilder != null) {
|
|
subBuilder.mergeFrom(birthday_);
|
|
birthday_ = subBuilder.buildPartial();
|
|
}
|
|
|
|
break;
|
|
}
|
|
case 56: {
|
|
|
|
worldLevel_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
|
|
unk1_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 88: {
|
|
|
|
isFriend_ = input.readBool();
|
|
break;
|
|
}
|
|
case 96: {
|
|
|
|
unk3_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
|
|
lastActiveTime_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
|
|
nameCardId_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
|
|
isInBlacklist_ = input.readBool();
|
|
break;
|
|
}
|
|
case 128: {
|
|
|
|
isChatNoDisturb_ = input.readBool();
|
|
break;
|
|
}
|
|
case 138: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
remarkName_ = s;
|
|
break;
|
|
}
|
|
case 144: {
|
|
|
|
finishAchievementNum_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 152: {
|
|
|
|
towerFloorIndex_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 160: {
|
|
|
|
towerLevelIndex_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 168: {
|
|
|
|
isShowAvatar_ = input.readBool();
|
|
break;
|
|
}
|
|
case 178: {
|
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
|
showAvatarInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>();
|
|
mutable_bitField0_ |= 0x00000001;
|
|
}
|
|
showAvatarInfoList_.add(
|
|
input.readMessage(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.parser(), extensionRegistry));
|
|
break;
|
|
}
|
|
case 184: {
|
|
int rawValue = input.readEnum();
|
|
|
|
friendEnterHomeOption_ = rawValue;
|
|
break;
|
|
}
|
|
case 202: {
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder subBuilder = null;
|
|
if (avatar_ != null) {
|
|
subBuilder = avatar_.toBuilder();
|
|
}
|
|
avatar_ = input.readMessage(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.parser(), extensionRegistry);
|
|
if (subBuilder != null) {
|
|
subBuilder.mergeFrom(avatar_);
|
|
avatar_ = subBuilder.buildPartial();
|
|
}
|
|
|
|
break;
|
|
}
|
|
default: {
|
|
if (!parseUnknownField(
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
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 {
|
|
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
|
showAvatarInfoList_ = java.util.Collections.unmodifiableList(showAvatarInfoList_);
|
|
}
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.class, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder.class);
|
|
}
|
|
|
|
public static final int UID_FIELD_NUMBER = 1;
|
|
private int uid_;
|
|
/**
|
|
* <code>uint32 uid = 1;</code>
|
|
* @return The uid.
|
|
*/
|
|
@java.lang.Override
|
|
public int getUid() {
|
|
return uid_;
|
|
}
|
|
|
|
public static final int NICKNAME_FIELD_NUMBER = 2;
|
|
private volatile java.lang.Object nickname_;
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return The nickname.
|
|
*/
|
|
@java.lang.Override
|
|
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;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return The bytes for nickname.
|
|
*/
|
|
@java.lang.Override
|
|
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 LEVEL_FIELD_NUMBER = 3;
|
|
private int level_;
|
|
/**
|
|
* <code>uint32 level = 3;</code>
|
|
* @return The level.
|
|
*/
|
|
@java.lang.Override
|
|
public int getLevel() {
|
|
return level_;
|
|
}
|
|
|
|
public static final int SIGNATURE_FIELD_NUMBER = 5;
|
|
private volatile java.lang.Object signature_;
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return The signature.
|
|
*/
|
|
@java.lang.Override
|
|
public java.lang.String getSignature() {
|
|
java.lang.Object ref = signature_;
|
|
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();
|
|
signature_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return The bytes for signature.
|
|
*/
|
|
@java.lang.Override
|
|
public com.google.protobuf.ByteString
|
|
getSignatureBytes() {
|
|
java.lang.Object ref = signature_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
signature_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
public static final int BIRTHDAY_FIELD_NUMBER = 6;
|
|
private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_;
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
* @return Whether the birthday field is set.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean hasBirthday() {
|
|
return birthday_ != null;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
* @return The birthday.
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() {
|
|
return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() {
|
|
return getBirthday();
|
|
}
|
|
|
|
public static final int WORLDLEVEL_FIELD_NUMBER = 7;
|
|
private int worldLevel_;
|
|
/**
|
|
* <code>uint32 worldLevel = 7;</code>
|
|
* @return The worldLevel.
|
|
*/
|
|
@java.lang.Override
|
|
public int getWorldLevel() {
|
|
return worldLevel_;
|
|
}
|
|
|
|
public static final int UNK1_FIELD_NUMBER = 9;
|
|
private int unk1_;
|
|
/**
|
|
* <code>uint32 unk1 = 9;</code>
|
|
* @return The unk1.
|
|
*/
|
|
@java.lang.Override
|
|
public int getUnk1() {
|
|
return unk1_;
|
|
}
|
|
|
|
public static final int ISFRIEND_FIELD_NUMBER = 11;
|
|
private boolean isFriend_;
|
|
/**
|
|
* <pre>
|
|
*FriendOnlineState onlineState = 10;
|
|
*bool isMpModeAvailable = 10;
|
|
* </pre>
|
|
*
|
|
* <code>bool isFriend = 11;</code>
|
|
* @return The isFriend.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsFriend() {
|
|
return isFriend_;
|
|
}
|
|
|
|
public static final int UNK3_FIELD_NUMBER = 12;
|
|
private int unk3_;
|
|
/**
|
|
* <code>uint32 unk3 = 12;</code>
|
|
* @return The unk3.
|
|
*/
|
|
@java.lang.Override
|
|
public int getUnk3() {
|
|
return unk3_;
|
|
}
|
|
|
|
public static final int LASTACTIVETIME_FIELD_NUMBER = 13;
|
|
private int lastActiveTime_;
|
|
/**
|
|
* <code>uint32 lastActiveTime = 13;</code>
|
|
* @return The lastActiveTime.
|
|
*/
|
|
@java.lang.Override
|
|
public int getLastActiveTime() {
|
|
return lastActiveTime_;
|
|
}
|
|
|
|
public static final int NAMECARDID_FIELD_NUMBER = 14;
|
|
private int nameCardId_;
|
|
/**
|
|
* <code>uint32 nameCardId = 14;</code>
|
|
* @return The nameCardId.
|
|
*/
|
|
@java.lang.Override
|
|
public int getNameCardId() {
|
|
return nameCardId_;
|
|
}
|
|
|
|
public static final int ISINBLACKLIST_FIELD_NUMBER = 15;
|
|
private boolean isInBlacklist_;
|
|
/**
|
|
* <code>bool isInBlacklist = 15;</code>
|
|
* @return The isInBlacklist.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsInBlacklist() {
|
|
return isInBlacklist_;
|
|
}
|
|
|
|
public static final int ISCHATNODISTURB_FIELD_NUMBER = 16;
|
|
private boolean isChatNoDisturb_;
|
|
/**
|
|
* <code>bool isChatNoDisturb = 16;</code>
|
|
* @return The isChatNoDisturb.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsChatNoDisturb() {
|
|
return isChatNoDisturb_;
|
|
}
|
|
|
|
public static final int REMARKNAME_FIELD_NUMBER = 17;
|
|
private volatile java.lang.Object remarkName_;
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return The remarkName.
|
|
*/
|
|
@java.lang.Override
|
|
public java.lang.String getRemarkName() {
|
|
java.lang.Object ref = remarkName_;
|
|
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();
|
|
remarkName_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return The bytes for remarkName.
|
|
*/
|
|
@java.lang.Override
|
|
public com.google.protobuf.ByteString
|
|
getRemarkNameBytes() {
|
|
java.lang.Object ref = remarkName_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
remarkName_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
public static final int FINISHACHIEVEMENTNUM_FIELD_NUMBER = 18;
|
|
private int finishAchievementNum_;
|
|
/**
|
|
* <code>uint32 finishAchievementNum = 18;</code>
|
|
* @return The finishAchievementNum.
|
|
*/
|
|
@java.lang.Override
|
|
public int getFinishAchievementNum() {
|
|
return finishAchievementNum_;
|
|
}
|
|
|
|
public static final int TOWERFLOORINDEX_FIELD_NUMBER = 19;
|
|
private int towerFloorIndex_;
|
|
/**
|
|
* <code>uint32 towerFloorIndex = 19;</code>
|
|
* @return The towerFloorIndex.
|
|
*/
|
|
@java.lang.Override
|
|
public int getTowerFloorIndex() {
|
|
return towerFloorIndex_;
|
|
}
|
|
|
|
public static final int TOWERLEVELINDEX_FIELD_NUMBER = 20;
|
|
private int towerLevelIndex_;
|
|
/**
|
|
* <code>uint32 towerLevelIndex = 20;</code>
|
|
* @return The towerLevelIndex.
|
|
*/
|
|
@java.lang.Override
|
|
public int getTowerLevelIndex() {
|
|
return towerLevelIndex_;
|
|
}
|
|
|
|
public static final int ISSHOWAVATAR_FIELD_NUMBER = 21;
|
|
private boolean isShowAvatar_;
|
|
/**
|
|
* <code>bool isShowAvatar = 21;</code>
|
|
* @return The isShowAvatar.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsShowAvatar() {
|
|
return isShowAvatar_;
|
|
}
|
|
|
|
public static final int SHOWAVATARINFOLIST_FIELD_NUMBER = 22;
|
|
private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_;
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() {
|
|
return showAvatarInfoList_;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>
|
|
getShowAvatarInfoListOrBuilderList() {
|
|
return showAvatarInfoList_;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public int getShowAvatarInfoListCount() {
|
|
return showAvatarInfoList_.size();
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) {
|
|
return showAvatarInfoList_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder(
|
|
int index) {
|
|
return showAvatarInfoList_.get(index);
|
|
}
|
|
|
|
public static final int FRIENDENTERHOMEOPTION_FIELD_NUMBER = 23;
|
|
private int friendEnterHomeOption_;
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return The enum numeric value on the wire for friendEnterHomeOption.
|
|
*/
|
|
@java.lang.Override public int getFriendEnterHomeOptionValue() {
|
|
return friendEnterHomeOption_;
|
|
}
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return The friendEnterHomeOption.
|
|
*/
|
|
@java.lang.Override public emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption() {
|
|
@SuppressWarnings("deprecation")
|
|
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption result = emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.valueOf(friendEnterHomeOption_);
|
|
return result == null ? emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.UNRECOGNIZED : result;
|
|
}
|
|
|
|
public static final int AVATAR_FIELD_NUMBER = 25;
|
|
private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_;
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
* @return Whether the avatar field is set.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean hasAvatar() {
|
|
return avatar_ != null;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
* @return The avatar.
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() {
|
|
return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() {
|
|
return getAvatar();
|
|
}
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
@java.lang.Override
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized == 1) return true;
|
|
if (isInitialized == 0) return false;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
if (uid_ != 0) {
|
|
output.writeUInt32(1, uid_);
|
|
}
|
|
if (!getNicknameBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_);
|
|
}
|
|
if (level_ != 0) {
|
|
output.writeUInt32(3, level_);
|
|
}
|
|
if (!getSignatureBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signature_);
|
|
}
|
|
if (birthday_ != null) {
|
|
output.writeMessage(6, getBirthday());
|
|
}
|
|
if (worldLevel_ != 0) {
|
|
output.writeUInt32(7, worldLevel_);
|
|
}
|
|
if (unk1_ != 0) {
|
|
output.writeUInt32(9, unk1_);
|
|
}
|
|
if (isFriend_ != false) {
|
|
output.writeBool(11, isFriend_);
|
|
}
|
|
if (unk3_ != 0) {
|
|
output.writeUInt32(12, unk3_);
|
|
}
|
|
if (lastActiveTime_ != 0) {
|
|
output.writeUInt32(13, lastActiveTime_);
|
|
}
|
|
if (nameCardId_ != 0) {
|
|
output.writeUInt32(14, nameCardId_);
|
|
}
|
|
if (isInBlacklist_ != false) {
|
|
output.writeBool(15, isInBlacklist_);
|
|
}
|
|
if (isChatNoDisturb_ != false) {
|
|
output.writeBool(16, isChatNoDisturb_);
|
|
}
|
|
if (!getRemarkNameBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, remarkName_);
|
|
}
|
|
if (finishAchievementNum_ != 0) {
|
|
output.writeUInt32(18, finishAchievementNum_);
|
|
}
|
|
if (towerFloorIndex_ != 0) {
|
|
output.writeUInt32(19, towerFloorIndex_);
|
|
}
|
|
if (towerLevelIndex_ != 0) {
|
|
output.writeUInt32(20, towerLevelIndex_);
|
|
}
|
|
if (isShowAvatar_ != false) {
|
|
output.writeBool(21, isShowAvatar_);
|
|
}
|
|
for (int i = 0; i < showAvatarInfoList_.size(); i++) {
|
|
output.writeMessage(22, showAvatarInfoList_.get(i));
|
|
}
|
|
if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.NeedConfirm.getNumber()) {
|
|
output.writeEnum(23, friendEnterHomeOption_);
|
|
}
|
|
if (avatar_ != null) {
|
|
output.writeMessage(25, getAvatar());
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (uid_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(1, uid_);
|
|
}
|
|
if (!getNicknameBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_);
|
|
}
|
|
if (level_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(3, level_);
|
|
}
|
|
if (!getSignatureBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signature_);
|
|
}
|
|
if (birthday_ != null) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(6, getBirthday());
|
|
}
|
|
if (worldLevel_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(7, worldLevel_);
|
|
}
|
|
if (unk1_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(9, unk1_);
|
|
}
|
|
if (isFriend_ != false) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeBoolSize(11, isFriend_);
|
|
}
|
|
if (unk3_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(12, unk3_);
|
|
}
|
|
if (lastActiveTime_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(13, lastActiveTime_);
|
|
}
|
|
if (nameCardId_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(14, nameCardId_);
|
|
}
|
|
if (isInBlacklist_ != false) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeBoolSize(15, isInBlacklist_);
|
|
}
|
|
if (isChatNoDisturb_ != false) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeBoolSize(16, isChatNoDisturb_);
|
|
}
|
|
if (!getRemarkNameBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, remarkName_);
|
|
}
|
|
if (finishAchievementNum_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(18, finishAchievementNum_);
|
|
}
|
|
if (towerFloorIndex_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(19, towerFloorIndex_);
|
|
}
|
|
if (towerLevelIndex_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(20, towerLevelIndex_);
|
|
}
|
|
if (isShowAvatar_ != false) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeBoolSize(21, isShowAvatar_);
|
|
}
|
|
for (int i = 0; i < showAvatarInfoList_.size(); i++) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(22, showAvatarInfoList_.get(i));
|
|
}
|
|
if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.NeedConfirm.getNumber()) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeEnumSize(23, friendEnterHomeOption_);
|
|
}
|
|
if (avatar_ != null) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(25, getAvatar());
|
|
}
|
|
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 emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail)) {
|
|
return super.equals(obj);
|
|
}
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail other = (emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail) obj;
|
|
|
|
if (getUid()
|
|
!= other.getUid()) return false;
|
|
if (!getNickname()
|
|
.equals(other.getNickname())) return false;
|
|
if (getLevel()
|
|
!= other.getLevel()) return false;
|
|
if (!getSignature()
|
|
.equals(other.getSignature())) return false;
|
|
if (hasBirthday() != other.hasBirthday()) return false;
|
|
if (hasBirthday()) {
|
|
if (!getBirthday()
|
|
.equals(other.getBirthday())) return false;
|
|
}
|
|
if (getWorldLevel()
|
|
!= other.getWorldLevel()) return false;
|
|
if (getUnk1()
|
|
!= other.getUnk1()) return false;
|
|
if (getIsFriend()
|
|
!= other.getIsFriend()) return false;
|
|
if (getUnk3()
|
|
!= other.getUnk3()) return false;
|
|
if (getLastActiveTime()
|
|
!= other.getLastActiveTime()) return false;
|
|
if (getNameCardId()
|
|
!= other.getNameCardId()) return false;
|
|
if (getIsInBlacklist()
|
|
!= other.getIsInBlacklist()) return false;
|
|
if (getIsChatNoDisturb()
|
|
!= other.getIsChatNoDisturb()) return false;
|
|
if (!getRemarkName()
|
|
.equals(other.getRemarkName())) return false;
|
|
if (getFinishAchievementNum()
|
|
!= other.getFinishAchievementNum()) return false;
|
|
if (getTowerFloorIndex()
|
|
!= other.getTowerFloorIndex()) return false;
|
|
if (getTowerLevelIndex()
|
|
!= other.getTowerLevelIndex()) return false;
|
|
if (getIsShowAvatar()
|
|
!= other.getIsShowAvatar()) return false;
|
|
if (!getShowAvatarInfoListList()
|
|
.equals(other.getShowAvatarInfoListList())) return false;
|
|
if (friendEnterHomeOption_ != other.friendEnterHomeOption_) return false;
|
|
if (hasAvatar() != other.hasAvatar()) return false;
|
|
if (hasAvatar()) {
|
|
if (!getAvatar()
|
|
.equals(other.getAvatar())) return false;
|
|
}
|
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int hashCode() {
|
|
if (memoizedHashCode != 0) {
|
|
return memoizedHashCode;
|
|
}
|
|
int hash = 41;
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
hash = (37 * hash) + UID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getUid();
|
|
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
|
|
hash = (53 * hash) + getNickname().hashCode();
|
|
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
|
|
hash = (53 * hash) + getLevel();
|
|
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
|
|
hash = (53 * hash) + getSignature().hashCode();
|
|
if (hasBirthday()) {
|
|
hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER;
|
|
hash = (53 * hash) + getBirthday().hashCode();
|
|
}
|
|
hash = (37 * hash) + WORLDLEVEL_FIELD_NUMBER;
|
|
hash = (53 * hash) + getWorldLevel();
|
|
hash = (37 * hash) + UNK1_FIELD_NUMBER;
|
|
hash = (53 * hash) + getUnk1();
|
|
hash = (37 * hash) + ISFRIEND_FIELD_NUMBER;
|
|
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
|
getIsFriend());
|
|
hash = (37 * hash) + UNK3_FIELD_NUMBER;
|
|
hash = (53 * hash) + getUnk3();
|
|
hash = (37 * hash) + LASTACTIVETIME_FIELD_NUMBER;
|
|
hash = (53 * hash) + getLastActiveTime();
|
|
hash = (37 * hash) + NAMECARDID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getNameCardId();
|
|
hash = (37 * hash) + ISINBLACKLIST_FIELD_NUMBER;
|
|
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
|
getIsInBlacklist());
|
|
hash = (37 * hash) + ISCHATNODISTURB_FIELD_NUMBER;
|
|
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
|
getIsChatNoDisturb());
|
|
hash = (37 * hash) + REMARKNAME_FIELD_NUMBER;
|
|
hash = (53 * hash) + getRemarkName().hashCode();
|
|
hash = (37 * hash) + FINISHACHIEVEMENTNUM_FIELD_NUMBER;
|
|
hash = (53 * hash) + getFinishAchievementNum();
|
|
hash = (37 * hash) + TOWERFLOORINDEX_FIELD_NUMBER;
|
|
hash = (53 * hash) + getTowerFloorIndex();
|
|
hash = (37 * hash) + TOWERLEVELINDEX_FIELD_NUMBER;
|
|
hash = (53 * hash) + getTowerLevelIndex();
|
|
hash = (37 * hash) + ISSHOWAVATAR_FIELD_NUMBER;
|
|
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
|
getIsShowAvatar());
|
|
if (getShowAvatarInfoListCount() > 0) {
|
|
hash = (37 * hash) + SHOWAVATARINFOLIST_FIELD_NUMBER;
|
|
hash = (53 * hash) + getShowAvatarInfoListList().hashCode();
|
|
}
|
|
hash = (37 * hash) + FRIENDENTERHOMEOPTION_FIELD_NUMBER;
|
|
hash = (53 * hash) + friendEnterHomeOption_;
|
|
if (hasAvatar()) {
|
|
hash = (37 * hash) + AVATAR_FIELD_NUMBER;
|
|
hash = (53 * hash) + getAvatar().hashCode();
|
|
}
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
java.nio.ByteBuffer data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail 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 emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail 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 emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder() {
|
|
return DEFAULT_INSTANCE.toBuilder();
|
|
}
|
|
public static Builder newBuilder(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail prototype) {
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
}
|
|
@java.lang.Override
|
|
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 SocialDetail}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:SocialDetail)
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.class, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder.class);
|
|
}
|
|
|
|
// Construct using emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
getShowAvatarInfoListFieldBuilder();
|
|
}
|
|
}
|
|
@java.lang.Override
|
|
public Builder clear() {
|
|
super.clear();
|
|
uid_ = 0;
|
|
|
|
nickname_ = "";
|
|
|
|
level_ = 0;
|
|
|
|
signature_ = "";
|
|
|
|
if (birthdayBuilder_ == null) {
|
|
birthday_ = null;
|
|
} else {
|
|
birthday_ = null;
|
|
birthdayBuilder_ = null;
|
|
}
|
|
worldLevel_ = 0;
|
|
|
|
unk1_ = 0;
|
|
|
|
isFriend_ = false;
|
|
|
|
unk3_ = 0;
|
|
|
|
lastActiveTime_ = 0;
|
|
|
|
nameCardId_ = 0;
|
|
|
|
isInBlacklist_ = false;
|
|
|
|
isChatNoDisturb_ = false;
|
|
|
|
remarkName_ = "";
|
|
|
|
finishAchievementNum_ = 0;
|
|
|
|
towerFloorIndex_ = 0;
|
|
|
|
towerLevelIndex_ = 0;
|
|
|
|
isShowAvatar_ = false;
|
|
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
showAvatarInfoList_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
} else {
|
|
showAvatarInfoListBuilder_.clear();
|
|
}
|
|
friendEnterHomeOption_ = 0;
|
|
|
|
if (avatarBuilder_ == null) {
|
|
avatar_ = null;
|
|
} else {
|
|
avatar_ = null;
|
|
avatarBuilder_ = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDefaultInstanceForType() {
|
|
return emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail build() {
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail buildPartial() {
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail result = new emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail(this);
|
|
int from_bitField0_ = bitField0_;
|
|
result.uid_ = uid_;
|
|
result.nickname_ = nickname_;
|
|
result.level_ = level_;
|
|
result.signature_ = signature_;
|
|
if (birthdayBuilder_ == null) {
|
|
result.birthday_ = birthday_;
|
|
} else {
|
|
result.birthday_ = birthdayBuilder_.build();
|
|
}
|
|
result.worldLevel_ = worldLevel_;
|
|
result.unk1_ = unk1_;
|
|
result.isFriend_ = isFriend_;
|
|
result.unk3_ = unk3_;
|
|
result.lastActiveTime_ = lastActiveTime_;
|
|
result.nameCardId_ = nameCardId_;
|
|
result.isInBlacklist_ = isInBlacklist_;
|
|
result.isChatNoDisturb_ = isChatNoDisturb_;
|
|
result.remarkName_ = remarkName_;
|
|
result.finishAchievementNum_ = finishAchievementNum_;
|
|
result.towerFloorIndex_ = towerFloorIndex_;
|
|
result.towerLevelIndex_ = towerLevelIndex_;
|
|
result.isShowAvatar_ = isShowAvatar_;
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
if (((bitField0_ & 0x00000001) != 0)) {
|
|
showAvatarInfoList_ = java.util.Collections.unmodifiableList(showAvatarInfoList_);
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
}
|
|
result.showAvatarInfoList_ = showAvatarInfoList_;
|
|
} else {
|
|
result.showAvatarInfoList_ = showAvatarInfoListBuilder_.build();
|
|
}
|
|
result.friendEnterHomeOption_ = friendEnterHomeOption_;
|
|
if (avatarBuilder_ == null) {
|
|
result.avatar_ = avatar_;
|
|
} else {
|
|
result.avatar_ = avatarBuilder_.build();
|
|
}
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public Builder clone() {
|
|
return super.clone();
|
|
}
|
|
@java.lang.Override
|
|
public Builder setField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return super.setField(field, value);
|
|
}
|
|
@java.lang.Override
|
|
public Builder clearField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
return super.clearField(field);
|
|
}
|
|
@java.lang.Override
|
|
public Builder clearOneof(
|
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
return super.clearOneof(oneof);
|
|
}
|
|
@java.lang.Override
|
|
public Builder setRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
int index, java.lang.Object value) {
|
|
return super.setRepeatedField(field, index, value);
|
|
}
|
|
@java.lang.Override
|
|
public Builder addRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return super.addRepeatedField(field, value);
|
|
}
|
|
@java.lang.Override
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail) {
|
|
return mergeFrom((emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail other) {
|
|
if (other == emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance()) return this;
|
|
if (other.getUid() != 0) {
|
|
setUid(other.getUid());
|
|
}
|
|
if (!other.getNickname().isEmpty()) {
|
|
nickname_ = other.nickname_;
|
|
onChanged();
|
|
}
|
|
if (other.getLevel() != 0) {
|
|
setLevel(other.getLevel());
|
|
}
|
|
if (!other.getSignature().isEmpty()) {
|
|
signature_ = other.signature_;
|
|
onChanged();
|
|
}
|
|
if (other.hasBirthday()) {
|
|
mergeBirthday(other.getBirthday());
|
|
}
|
|
if (other.getWorldLevel() != 0) {
|
|
setWorldLevel(other.getWorldLevel());
|
|
}
|
|
if (other.getUnk1() != 0) {
|
|
setUnk1(other.getUnk1());
|
|
}
|
|
if (other.getIsFriend() != false) {
|
|
setIsFriend(other.getIsFriend());
|
|
}
|
|
if (other.getUnk3() != 0) {
|
|
setUnk3(other.getUnk3());
|
|
}
|
|
if (other.getLastActiveTime() != 0) {
|
|
setLastActiveTime(other.getLastActiveTime());
|
|
}
|
|
if (other.getNameCardId() != 0) {
|
|
setNameCardId(other.getNameCardId());
|
|
}
|
|
if (other.getIsInBlacklist() != false) {
|
|
setIsInBlacklist(other.getIsInBlacklist());
|
|
}
|
|
if (other.getIsChatNoDisturb() != false) {
|
|
setIsChatNoDisturb(other.getIsChatNoDisturb());
|
|
}
|
|
if (!other.getRemarkName().isEmpty()) {
|
|
remarkName_ = other.remarkName_;
|
|
onChanged();
|
|
}
|
|
if (other.getFinishAchievementNum() != 0) {
|
|
setFinishAchievementNum(other.getFinishAchievementNum());
|
|
}
|
|
if (other.getTowerFloorIndex() != 0) {
|
|
setTowerFloorIndex(other.getTowerFloorIndex());
|
|
}
|
|
if (other.getTowerLevelIndex() != 0) {
|
|
setTowerLevelIndex(other.getTowerLevelIndex());
|
|
}
|
|
if (other.getIsShowAvatar() != false) {
|
|
setIsShowAvatar(other.getIsShowAvatar());
|
|
}
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
if (!other.showAvatarInfoList_.isEmpty()) {
|
|
if (showAvatarInfoList_.isEmpty()) {
|
|
showAvatarInfoList_ = other.showAvatarInfoList_;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
} else {
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.addAll(other.showAvatarInfoList_);
|
|
}
|
|
onChanged();
|
|
}
|
|
} else {
|
|
if (!other.showAvatarInfoList_.isEmpty()) {
|
|
if (showAvatarInfoListBuilder_.isEmpty()) {
|
|
showAvatarInfoListBuilder_.dispose();
|
|
showAvatarInfoListBuilder_ = null;
|
|
showAvatarInfoList_ = other.showAvatarInfoList_;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
showAvatarInfoListBuilder_ =
|
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
|
getShowAvatarInfoListFieldBuilder() : null;
|
|
} else {
|
|
showAvatarInfoListBuilder_.addAllMessages(other.showAvatarInfoList_);
|
|
}
|
|
}
|
|
}
|
|
if (other.friendEnterHomeOption_ != 0) {
|
|
setFriendEnterHomeOptionValue(other.getFriendEnterHomeOptionValue());
|
|
}
|
|
if (other.hasAvatar()) {
|
|
mergeAvatar(other.getAvatar());
|
|
}
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final boolean isInitialized() {
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
private int uid_ ;
|
|
/**
|
|
* <code>uint32 uid = 1;</code>
|
|
* @return The uid.
|
|
*/
|
|
@java.lang.Override
|
|
public int getUid() {
|
|
return uid_;
|
|
}
|
|
/**
|
|
* <code>uint32 uid = 1;</code>
|
|
* @param value The uid to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setUid(int value) {
|
|
|
|
uid_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 uid = 1;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearUid() {
|
|
|
|
uid_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object nickname_ = "";
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return The nickname.
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return The bytes for nickname.
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @param value The nickname to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setNickname(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
nickname_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearNickname() {
|
|
|
|
nickname_ = getDefaultInstance().getNickname();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string nickname = 2;</code>
|
|
* @param value The bytes for nickname to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setNicknameBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
nickname_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int level_ ;
|
|
/**
|
|
* <code>uint32 level = 3;</code>
|
|
* @return The level.
|
|
*/
|
|
@java.lang.Override
|
|
public int getLevel() {
|
|
return level_;
|
|
}
|
|
/**
|
|
* <code>uint32 level = 3;</code>
|
|
* @param value The level to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setLevel(int value) {
|
|
|
|
level_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 level = 3;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearLevel() {
|
|
|
|
level_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object signature_ = "";
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return The signature.
|
|
*/
|
|
public java.lang.String getSignature() {
|
|
java.lang.Object ref = signature_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
signature_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return The bytes for signature.
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getSignatureBytes() {
|
|
java.lang.Object ref = signature_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
signature_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @param value The signature to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setSignature(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
signature_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearSignature() {
|
|
|
|
signature_ = getDefaultInstance().getSignature();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string signature = 5;</code>
|
|
* @param value The bytes for signature to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setSignatureBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
signature_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_;
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> birthdayBuilder_;
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
* @return Whether the birthday field is set.
|
|
*/
|
|
public boolean hasBirthday() {
|
|
return birthdayBuilder_ != null || birthday_ != null;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
* @return The birthday.
|
|
*/
|
|
public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() {
|
|
if (birthdayBuilder_ == null) {
|
|
return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_;
|
|
} else {
|
|
return birthdayBuilder_.getMessage();
|
|
}
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
public Builder setBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) {
|
|
if (birthdayBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
birthday_ = value;
|
|
onChanged();
|
|
} else {
|
|
birthdayBuilder_.setMessage(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
public Builder setBirthday(
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder builderForValue) {
|
|
if (birthdayBuilder_ == null) {
|
|
birthday_ = builderForValue.build();
|
|
onChanged();
|
|
} else {
|
|
birthdayBuilder_.setMessage(builderForValue.build());
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
public Builder mergeBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) {
|
|
if (birthdayBuilder_ == null) {
|
|
if (birthday_ != null) {
|
|
birthday_ =
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.newBuilder(birthday_).mergeFrom(value).buildPartial();
|
|
} else {
|
|
birthday_ = value;
|
|
}
|
|
onChanged();
|
|
} else {
|
|
birthdayBuilder_.mergeFrom(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
public Builder clearBirthday() {
|
|
if (birthdayBuilder_ == null) {
|
|
birthday_ = null;
|
|
onChanged();
|
|
} else {
|
|
birthday_ = null;
|
|
birthdayBuilder_ = null;
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder getBirthdayBuilder() {
|
|
|
|
onChanged();
|
|
return getBirthdayFieldBuilder().getBuilder();
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() {
|
|
if (birthdayBuilder_ != null) {
|
|
return birthdayBuilder_.getMessageOrBuilder();
|
|
} else {
|
|
return birthday_ == null ?
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_;
|
|
}
|
|
}
|
|
/**
|
|
* <code>.Birthday birthday = 6;</code>
|
|
*/
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder>
|
|
getBirthdayFieldBuilder() {
|
|
if (birthdayBuilder_ == null) {
|
|
birthdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder>(
|
|
getBirthday(),
|
|
getParentForChildren(),
|
|
isClean());
|
|
birthday_ = null;
|
|
}
|
|
return birthdayBuilder_;
|
|
}
|
|
|
|
private int worldLevel_ ;
|
|
/**
|
|
* <code>uint32 worldLevel = 7;</code>
|
|
* @return The worldLevel.
|
|
*/
|
|
@java.lang.Override
|
|
public int getWorldLevel() {
|
|
return worldLevel_;
|
|
}
|
|
/**
|
|
* <code>uint32 worldLevel = 7;</code>
|
|
* @param value The worldLevel to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setWorldLevel(int value) {
|
|
|
|
worldLevel_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 worldLevel = 7;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearWorldLevel() {
|
|
|
|
worldLevel_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int unk1_ ;
|
|
/**
|
|
* <code>uint32 unk1 = 9;</code>
|
|
* @return The unk1.
|
|
*/
|
|
@java.lang.Override
|
|
public int getUnk1() {
|
|
return unk1_;
|
|
}
|
|
/**
|
|
* <code>uint32 unk1 = 9;</code>
|
|
* @param value The unk1 to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setUnk1(int value) {
|
|
|
|
unk1_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 unk1 = 9;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearUnk1() {
|
|
|
|
unk1_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private boolean isFriend_ ;
|
|
/**
|
|
* <pre>
|
|
*FriendOnlineState onlineState = 10;
|
|
*bool isMpModeAvailable = 10;
|
|
* </pre>
|
|
*
|
|
* <code>bool isFriend = 11;</code>
|
|
* @return The isFriend.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsFriend() {
|
|
return isFriend_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*FriendOnlineState onlineState = 10;
|
|
*bool isMpModeAvailable = 10;
|
|
* </pre>
|
|
*
|
|
* <code>bool isFriend = 11;</code>
|
|
* @param value The isFriend to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setIsFriend(boolean value) {
|
|
|
|
isFriend_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*FriendOnlineState onlineState = 10;
|
|
*bool isMpModeAvailable = 10;
|
|
* </pre>
|
|
*
|
|
* <code>bool isFriend = 11;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearIsFriend() {
|
|
|
|
isFriend_ = false;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int unk3_ ;
|
|
/**
|
|
* <code>uint32 unk3 = 12;</code>
|
|
* @return The unk3.
|
|
*/
|
|
@java.lang.Override
|
|
public int getUnk3() {
|
|
return unk3_;
|
|
}
|
|
/**
|
|
* <code>uint32 unk3 = 12;</code>
|
|
* @param value The unk3 to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setUnk3(int value) {
|
|
|
|
unk3_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 unk3 = 12;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearUnk3() {
|
|
|
|
unk3_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int lastActiveTime_ ;
|
|
/**
|
|
* <code>uint32 lastActiveTime = 13;</code>
|
|
* @return The lastActiveTime.
|
|
*/
|
|
@java.lang.Override
|
|
public int getLastActiveTime() {
|
|
return lastActiveTime_;
|
|
}
|
|
/**
|
|
* <code>uint32 lastActiveTime = 13;</code>
|
|
* @param value The lastActiveTime to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setLastActiveTime(int value) {
|
|
|
|
lastActiveTime_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 lastActiveTime = 13;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearLastActiveTime() {
|
|
|
|
lastActiveTime_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int nameCardId_ ;
|
|
/**
|
|
* <code>uint32 nameCardId = 14;</code>
|
|
* @return The nameCardId.
|
|
*/
|
|
@java.lang.Override
|
|
public int getNameCardId() {
|
|
return nameCardId_;
|
|
}
|
|
/**
|
|
* <code>uint32 nameCardId = 14;</code>
|
|
* @param value The nameCardId to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setNameCardId(int value) {
|
|
|
|
nameCardId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 nameCardId = 14;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearNameCardId() {
|
|
|
|
nameCardId_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private boolean isInBlacklist_ ;
|
|
/**
|
|
* <code>bool isInBlacklist = 15;</code>
|
|
* @return The isInBlacklist.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsInBlacklist() {
|
|
return isInBlacklist_;
|
|
}
|
|
/**
|
|
* <code>bool isInBlacklist = 15;</code>
|
|
* @param value The isInBlacklist to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setIsInBlacklist(boolean value) {
|
|
|
|
isInBlacklist_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>bool isInBlacklist = 15;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearIsInBlacklist() {
|
|
|
|
isInBlacklist_ = false;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private boolean isChatNoDisturb_ ;
|
|
/**
|
|
* <code>bool isChatNoDisturb = 16;</code>
|
|
* @return The isChatNoDisturb.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsChatNoDisturb() {
|
|
return isChatNoDisturb_;
|
|
}
|
|
/**
|
|
* <code>bool isChatNoDisturb = 16;</code>
|
|
* @param value The isChatNoDisturb to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setIsChatNoDisturb(boolean value) {
|
|
|
|
isChatNoDisturb_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>bool isChatNoDisturb = 16;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearIsChatNoDisturb() {
|
|
|
|
isChatNoDisturb_ = false;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object remarkName_ = "";
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return The remarkName.
|
|
*/
|
|
public java.lang.String getRemarkName() {
|
|
java.lang.Object ref = remarkName_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
remarkName_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return The bytes for remarkName.
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getRemarkNameBytes() {
|
|
java.lang.Object ref = remarkName_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
remarkName_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @param value The remarkName to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setRemarkName(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
remarkName_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearRemarkName() {
|
|
|
|
remarkName_ = getDefaultInstance().getRemarkName();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string remarkName = 17;</code>
|
|
* @param value The bytes for remarkName to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setRemarkNameBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
remarkName_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int finishAchievementNum_ ;
|
|
/**
|
|
* <code>uint32 finishAchievementNum = 18;</code>
|
|
* @return The finishAchievementNum.
|
|
*/
|
|
@java.lang.Override
|
|
public int getFinishAchievementNum() {
|
|
return finishAchievementNum_;
|
|
}
|
|
/**
|
|
* <code>uint32 finishAchievementNum = 18;</code>
|
|
* @param value The finishAchievementNum to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setFinishAchievementNum(int value) {
|
|
|
|
finishAchievementNum_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 finishAchievementNum = 18;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearFinishAchievementNum() {
|
|
|
|
finishAchievementNum_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int towerFloorIndex_ ;
|
|
/**
|
|
* <code>uint32 towerFloorIndex = 19;</code>
|
|
* @return The towerFloorIndex.
|
|
*/
|
|
@java.lang.Override
|
|
public int getTowerFloorIndex() {
|
|
return towerFloorIndex_;
|
|
}
|
|
/**
|
|
* <code>uint32 towerFloorIndex = 19;</code>
|
|
* @param value The towerFloorIndex to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setTowerFloorIndex(int value) {
|
|
|
|
towerFloorIndex_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 towerFloorIndex = 19;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearTowerFloorIndex() {
|
|
|
|
towerFloorIndex_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int towerLevelIndex_ ;
|
|
/**
|
|
* <code>uint32 towerLevelIndex = 20;</code>
|
|
* @return The towerLevelIndex.
|
|
*/
|
|
@java.lang.Override
|
|
public int getTowerLevelIndex() {
|
|
return towerLevelIndex_;
|
|
}
|
|
/**
|
|
* <code>uint32 towerLevelIndex = 20;</code>
|
|
* @param value The towerLevelIndex to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setTowerLevelIndex(int value) {
|
|
|
|
towerLevelIndex_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 towerLevelIndex = 20;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearTowerLevelIndex() {
|
|
|
|
towerLevelIndex_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private boolean isShowAvatar_ ;
|
|
/**
|
|
* <code>bool isShowAvatar = 21;</code>
|
|
* @return The isShowAvatar.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getIsShowAvatar() {
|
|
return isShowAvatar_;
|
|
}
|
|
/**
|
|
* <code>bool isShowAvatar = 21;</code>
|
|
* @param value The isShowAvatar to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setIsShowAvatar(boolean value) {
|
|
|
|
isShowAvatar_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>bool isShowAvatar = 21;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearIsShowAvatar() {
|
|
|
|
isShowAvatar_ = false;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_ =
|
|
java.util.Collections.emptyList();
|
|
private void ensureShowAvatarInfoListIsMutable() {
|
|
if (!((bitField0_ & 0x00000001) != 0)) {
|
|
showAvatarInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>(showAvatarInfoList_);
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
}
|
|
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> showAvatarInfoListBuilder_;
|
|
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
return java.util.Collections.unmodifiableList(showAvatarInfoList_);
|
|
} else {
|
|
return showAvatarInfoListBuilder_.getMessageList();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public int getShowAvatarInfoListCount() {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
return showAvatarInfoList_.size();
|
|
} else {
|
|
return showAvatarInfoListBuilder_.getCount();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
return showAvatarInfoList_.get(index);
|
|
} else {
|
|
return showAvatarInfoListBuilder_.getMessage(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder setShowAvatarInfoList(
|
|
int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.set(index, value);
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.setMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder setShowAvatarInfoList(
|
|
int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.set(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.setMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder addShowAvatarInfoList(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.add(value);
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.addMessage(value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder addShowAvatarInfoList(
|
|
int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.add(index, value);
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.addMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder addShowAvatarInfoList(
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.add(builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.addMessage(builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder addShowAvatarInfoList(
|
|
int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.add(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.addMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder addAllShowAvatarInfoList(
|
|
java.lang.Iterable<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> values) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
ensureShowAvatarInfoListIsMutable();
|
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
|
values, showAvatarInfoList_);
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.addAllMessages(values);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder clearShowAvatarInfoList() {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
showAvatarInfoList_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public Builder removeShowAvatarInfoList(int index) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
ensureShowAvatarInfoListIsMutable();
|
|
showAvatarInfoList_.remove(index);
|
|
onChanged();
|
|
} else {
|
|
showAvatarInfoListBuilder_.remove(index);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder getShowAvatarInfoListBuilder(
|
|
int index) {
|
|
return getShowAvatarInfoListFieldBuilder().getBuilder(index);
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder(
|
|
int index) {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
return showAvatarInfoList_.get(index); } else {
|
|
return showAvatarInfoListBuilder_.getMessageOrBuilder(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>
|
|
getShowAvatarInfoListOrBuilderList() {
|
|
if (showAvatarInfoListBuilder_ != null) {
|
|
return showAvatarInfoListBuilder_.getMessageOrBuilderList();
|
|
} else {
|
|
return java.util.Collections.unmodifiableList(showAvatarInfoList_);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder() {
|
|
return getShowAvatarInfoListFieldBuilder().addBuilder(
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder(
|
|
int index) {
|
|
return getShowAvatarInfoListFieldBuilder().addBuilder(
|
|
index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code>
|
|
*/
|
|
public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder>
|
|
getShowAvatarInfoListBuilderList() {
|
|
return getShowAvatarInfoListFieldBuilder().getBuilderList();
|
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>
|
|
getShowAvatarInfoListFieldBuilder() {
|
|
if (showAvatarInfoListBuilder_ == null) {
|
|
showAvatarInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>(
|
|
showAvatarInfoList_,
|
|
((bitField0_ & 0x00000001) != 0),
|
|
getParentForChildren(),
|
|
isClean());
|
|
showAvatarInfoList_ = null;
|
|
}
|
|
return showAvatarInfoListBuilder_;
|
|
}
|
|
|
|
private int friendEnterHomeOption_ = 0;
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return The enum numeric value on the wire for friendEnterHomeOption.
|
|
*/
|
|
@java.lang.Override public int getFriendEnterHomeOptionValue() {
|
|
return friendEnterHomeOption_;
|
|
}
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @param value The enum numeric value on the wire for friendEnterHomeOption to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setFriendEnterHomeOptionValue(int value) {
|
|
|
|
friendEnterHomeOption_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return The friendEnterHomeOption.
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption() {
|
|
@SuppressWarnings("deprecation")
|
|
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption result = emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.valueOf(friendEnterHomeOption_);
|
|
return result == null ? emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.UNRECOGNIZED : result;
|
|
}
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @param value The friendEnterHomeOption to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setFriendEnterHomeOption(emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
friendEnterHomeOption_ = value.getNumber();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearFriendEnterHomeOption() {
|
|
|
|
friendEnterHomeOption_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_;
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> avatarBuilder_;
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
* @return Whether the avatar field is set.
|
|
*/
|
|
public boolean hasAvatar() {
|
|
return avatarBuilder_ != null || avatar_ != null;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
* @return The avatar.
|
|
*/
|
|
public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() {
|
|
if (avatarBuilder_ == null) {
|
|
return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_;
|
|
} else {
|
|
return avatarBuilder_.getMessage();
|
|
}
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
public Builder setAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) {
|
|
if (avatarBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
avatar_ = value;
|
|
onChanged();
|
|
} else {
|
|
avatarBuilder_.setMessage(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
public Builder setAvatar(
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder builderForValue) {
|
|
if (avatarBuilder_ == null) {
|
|
avatar_ = builderForValue.build();
|
|
onChanged();
|
|
} else {
|
|
avatarBuilder_.setMessage(builderForValue.build());
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
public Builder mergeAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) {
|
|
if (avatarBuilder_ == null) {
|
|
if (avatar_ != null) {
|
|
avatar_ =
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.newBuilder(avatar_).mergeFrom(value).buildPartial();
|
|
} else {
|
|
avatar_ = value;
|
|
}
|
|
onChanged();
|
|
} else {
|
|
avatarBuilder_.mergeFrom(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
public Builder clearAvatar() {
|
|
if (avatarBuilder_ == null) {
|
|
avatar_ = null;
|
|
onChanged();
|
|
} else {
|
|
avatar_ = null;
|
|
avatarBuilder_ = null;
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() {
|
|
|
|
onChanged();
|
|
return getAvatarFieldBuilder().getBuilder();
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() {
|
|
if (avatarBuilder_ != null) {
|
|
return avatarBuilder_.getMessageOrBuilder();
|
|
} else {
|
|
return avatar_ == null ?
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_;
|
|
}
|
|
}
|
|
/**
|
|
* <code>.HeadImage avatar = 25;</code>
|
|
*/
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder>
|
|
getAvatarFieldBuilder() {
|
|
if (avatarBuilder_ == null) {
|
|
avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder>(
|
|
getAvatar(),
|
|
getParentForChildren(),
|
|
isClean());
|
|
avatar_ = null;
|
|
}
|
|
return avatarBuilder_;
|
|
}
|
|
@java.lang.Override
|
|
public final Builder setUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.setUnknownFields(unknownFields);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final Builder mergeUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.mergeUnknownFields(unknownFields);
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:SocialDetail)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:SocialDetail)
|
|
private static final emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail();
|
|
}
|
|
|
|
public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<SocialDetail>
|
|
PARSER = new com.google.protobuf.AbstractParser<SocialDetail>() {
|
|
@java.lang.Override
|
|
public SocialDetail parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new SocialDetail(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<SocialDetail> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<SocialDetail> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_SocialDetail_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_SocialDetail_fieldAccessorTable;
|
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
getDescriptor() {
|
|
return descriptor;
|
|
}
|
|
private static com.google.protobuf.Descriptors.FileDescriptor
|
|
descriptor;
|
|
static {
|
|
java.lang.String[] descriptorData = {
|
|
"\n\022SocialDetail.proto\032\016Birthday.proto\032\033Fr" +
|
|
"iendEnterHomeOption.proto\032\017HeadImage.pro" +
|
|
"to\032\032SocialShowAvatarInfo.proto\"\212\004\n\014Socia" +
|
|
"lDetail\022\013\n\003uid\030\001 \001(\r\022\020\n\010nickname\030\002 \001(\t\022\r" +
|
|
"\n\005level\030\003 \001(\r\022\021\n\tsignature\030\005 \001(\t\022\033\n\010birt" +
|
|
"hday\030\006 \001(\0132\t.Birthday\022\022\n\nworldLevel\030\007 \001(" +
|
|
"\r\022\014\n\004unk1\030\t \001(\r\022\020\n\010isFriend\030\013 \001(\010\022\014\n\004unk" +
|
|
"3\030\014 \001(\r\022\026\n\016lastActiveTime\030\r \001(\r\022\022\n\nnameC" +
|
|
"ardId\030\016 \001(\r\022\025\n\risInBlacklist\030\017 \001(\010\022\027\n\017is" +
|
|
"ChatNoDisturb\030\020 \001(\010\022\022\n\nremarkName\030\021 \001(\t\022" +
|
|
"\034\n\024finishAchievementNum\030\022 \001(\r\022\027\n\017towerFl" +
|
|
"oorIndex\030\023 \001(\r\022\027\n\017towerLevelIndex\030\024 \001(\r\022" +
|
|
"\024\n\014isShowAvatar\030\025 \001(\010\0221\n\022showAvatarInfoL" +
|
|
"ist\030\026 \003(\0132\025.SocialShowAvatarInfo\0225\n\025frie" +
|
|
"ndEnterHomeOption\030\027 \001(\0162\026.FriendEnterHom" +
|
|
"eOption\022\032\n\006avatar\030\031 \001(\0132\n.HeadImageB\033\n\031e" +
|
|
"mu.grasscutter.net.protob\006proto3"
|
|
};
|
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(),
|
|
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor(),
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(),
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor(),
|
|
});
|
|
internal_static_SocialDetail_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_SocialDetail_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_SocialDetail_descriptor,
|
|
new java.lang.String[] { "Uid", "Nickname", "Level", "Signature", "Birthday", "WorldLevel", "Unk1", "IsFriend", "Unk3", "LastActiveTime", "NameCardId", "IsInBlacklist", "IsChatNoDisturb", "RemarkName", "FinishAchievementNum", "TowerFloorIndex", "TowerLevelIndex", "IsShowAvatar", "ShowAvatarInfoList", "FriendEnterHomeOption", "Avatar", });
|
|
emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor();
|
|
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor();
|
|
emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor();
|
|
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor();
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|