Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/FriendBriefOuterClass.java
2022-08-21 11:33:54 +00:00

2907 lines
98 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FriendBrief.proto
package emu.grasscutter.net.proto;
public final class FriendBriefOuterClass {
private FriendBriefOuterClass() {}
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 FriendBriefOrBuilder extends
// @@protoc_insertion_point(interface_extends:FriendBrief)
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>uint32 avatar_id = 4;</code>
* @return The avatarId.
*/
int getAvatarId();
/**
* <code>uint32 world_level = 5;</code>
* @return The worldLevel.
*/
int getWorldLevel();
/**
* <code>string signature = 6;</code>
* @return The signature.
*/
java.lang.String getSignature();
/**
* <code>string signature = 6;</code>
* @return The bytes for signature.
*/
com.google.protobuf.ByteString
getSignatureBytes();
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return The enum numeric value on the wire for onlineState.
*/
int getOnlineStateValue();
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return The onlineState.
*/
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState();
/**
* <code>uint32 param = 8;</code>
* @return The param.
*/
int getParam();
/**
* <code>bool is_mp_mode_available = 10;</code>
* @return The isMpModeAvailable.
*/
boolean getIsMpModeAvailable();
/**
* <code>string online_id = 11;</code>
* @return The onlineId.
*/
java.lang.String getOnlineId();
/**
* <code>string online_id = 11;</code>
* @return The bytes for onlineId.
*/
com.google.protobuf.ByteString
getOnlineIdBytes();
/**
* <code>uint32 last_active_time = 12;</code>
* @return The lastActiveTime.
*/
int getLastActiveTime();
/**
* <code>uint32 name_card_id = 13;</code>
* @return The nameCardId.
*/
int getNameCardId();
/**
* <code>uint32 mp_player_num = 14;</code>
* @return The mpPlayerNum.
*/
int getMpPlayerNum();
/**
* <code>bool is_chat_no_disturb = 15;</code>
* @return The isChatNoDisturb.
*/
boolean getIsChatNoDisturb();
/**
* <code>uint32 chat_sequence = 16;</code>
* @return The chatSequence.
*/
int getChatSequence();
/**
* <code>string remark_name = 17;</code>
* @return The remarkName.
*/
java.lang.String getRemarkName();
/**
* <code>string remark_name = 17;</code>
* @return The bytes for remarkName.
*/
com.google.protobuf.ByteString
getRemarkNameBytes();
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>
getShowAvatarInfoListList();
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index);
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
int getShowAvatarInfoListCount();
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>
getShowAvatarInfoListOrBuilderList();
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder(
int index);
/**
* <code>.FriendEnterHomeOption friend_enter_home_option = 23;</code>
* @return The enum numeric value on the wire for friendEnterHomeOption.
*/
int getFriendEnterHomeOptionValue();
/**
* <code>.FriendEnterHomeOption friend_enter_home_option = 23;</code>
* @return The friendEnterHomeOption.
*/
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption();
/**
* <code>.ProfilePicture profile_picture = 24;</code>
* @return Whether the profilePicture field is set.
*/
boolean hasProfilePicture();
/**
* <code>.ProfilePicture profile_picture = 24;</code>
* @return The profilePicture.
*/
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture getProfilePicture();
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder getProfilePictureOrBuilder();
/**
* <code>bool is_game_source = 25;</code>
* @return The isGameSource.
*/
boolean getIsGameSource();
/**
* <code>bool is_psn_source = 26;</code>
* @return The isPsnSource.
*/
boolean getIsPsnSource();
/**
* <code>.PlatformType platform_type = 27;</code>
* @return The enum numeric value on the wire for platformType.
*/
int getPlatformTypeValue();
/**
* <code>.PlatformType platform_type = 27;</code>
* @return The platformType.
*/
emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType getPlatformType();
}
/**
* Protobuf type {@code FriendBrief}
*/
public static final class FriendBrief extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FriendBrief)
FriendBriefOrBuilder {
private static final long serialVersionUID = 0L;
// Use FriendBrief.newBuilder() to construct.
private FriendBrief(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private FriendBrief() {
nickname_ = "";
signature_ = "";
onlineState_ = 0;
onlineId_ = "";
remarkName_ = "";
showAvatarInfoList_ = java.util.Collections.emptyList();
friendEnterHomeOption_ = 0;
platformType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FriendBrief();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FriendBrief(
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 32: {
avatarId_ = input.readUInt32();
break;
}
case 40: {
worldLevel_ = input.readUInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
signature_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
onlineState_ = rawValue;
break;
}
case 64: {
param_ = input.readUInt32();
break;
}
case 80: {
isMpModeAvailable_ = input.readBool();
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
onlineId_ = s;
break;
}
case 96: {
lastActiveTime_ = input.readUInt32();
break;
}
case 104: {
nameCardId_ = input.readUInt32();
break;
}
case 112: {
mpPlayerNum_ = input.readUInt32();
break;
}
case 120: {
isChatNoDisturb_ = input.readBool();
break;
}
case 128: {
chatSequence_ = input.readUInt32();
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
remarkName_ = s;
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 194: {
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder subBuilder = null;
if (profilePicture_ != null) {
subBuilder = profilePicture_.toBuilder();
}
profilePicture_ = input.readMessage(emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(profilePicture_);
profilePicture_ = subBuilder.buildPartial();
}
break;
}
case 200: {
isGameSource_ = input.readBool();
break;
}
case 208: {
isPsnSource_ = input.readBool();
break;
}
case 216: {
int rawValue = input.readEnum();
platformType_ = rawValue;
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.FriendBriefOuterClass.internal_static_FriendBrief_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.class, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.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 AVATAR_ID_FIELD_NUMBER = 4;
private int avatarId_;
/**
* <code>uint32 avatar_id = 4;</code>
* @return The avatarId.
*/
@java.lang.Override
public int getAvatarId() {
return avatarId_;
}
public static final int WORLD_LEVEL_FIELD_NUMBER = 5;
private int worldLevel_;
/**
* <code>uint32 world_level = 5;</code>
* @return The worldLevel.
*/
@java.lang.Override
public int getWorldLevel() {
return worldLevel_;
}
public static final int SIGNATURE_FIELD_NUMBER = 6;
private volatile java.lang.Object signature_;
/**
* <code>string signature = 6;</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 = 6;</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 ONLINE_STATE_FIELD_NUMBER = 7;
private int onlineState_;
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return The enum numeric value on the wire for onlineState.
*/
@java.lang.Override public int getOnlineStateValue() {
return onlineState_;
}
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return The onlineState.
*/
@java.lang.Override public emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState result = emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.valueOf(onlineState_);
return result == null ? emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.UNRECOGNIZED : result;
}
public static final int PARAM_FIELD_NUMBER = 8;
private int param_;
/**
* <code>uint32 param = 8;</code>
* @return The param.
*/
@java.lang.Override
public int getParam() {
return param_;
}
public static final int IS_MP_MODE_AVAILABLE_FIELD_NUMBER = 10;
private boolean isMpModeAvailable_;
/**
* <code>bool is_mp_mode_available = 10;</code>
* @return The isMpModeAvailable.
*/
@java.lang.Override
public boolean getIsMpModeAvailable() {
return isMpModeAvailable_;
}
public static final int ONLINE_ID_FIELD_NUMBER = 11;
private volatile java.lang.Object onlineId_;
/**
* <code>string online_id = 11;</code>
* @return The onlineId.
*/
@java.lang.Override
public java.lang.String getOnlineId() {
java.lang.Object ref = onlineId_;
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();
onlineId_ = s;
return s;
}
}
/**
* <code>string online_id = 11;</code>
* @return The bytes for onlineId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOnlineIdBytes() {
java.lang.Object ref = onlineId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
onlineId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_ACTIVE_TIME_FIELD_NUMBER = 12;
private int lastActiveTime_;
/**
* <code>uint32 last_active_time = 12;</code>
* @return The lastActiveTime.
*/
@java.lang.Override
public int getLastActiveTime() {
return lastActiveTime_;
}
public static final int NAME_CARD_ID_FIELD_NUMBER = 13;
private int nameCardId_;
/**
* <code>uint32 name_card_id = 13;</code>
* @return The nameCardId.
*/
@java.lang.Override
public int getNameCardId() {
return nameCardId_;
}
public static final int MP_PLAYER_NUM_FIELD_NUMBER = 14;
private int mpPlayerNum_;
/**
* <code>uint32 mp_player_num = 14;</code>
* @return The mpPlayerNum.
*/
@java.lang.Override
public int getMpPlayerNum() {
return mpPlayerNum_;
}
public static final int IS_CHAT_NO_DISTURB_FIELD_NUMBER = 15;
private boolean isChatNoDisturb_;
/**
* <code>bool is_chat_no_disturb = 15;</code>
* @return The isChatNoDisturb.
*/
@java.lang.Override
public boolean getIsChatNoDisturb() {
return isChatNoDisturb_;
}
public static final int CHAT_SEQUENCE_FIELD_NUMBER = 16;
private int chatSequence_;
/**
* <code>uint32 chat_sequence = 16;</code>
* @return The chatSequence.
*/
@java.lang.Override
public int getChatSequence() {
return chatSequence_;
}
public static final int REMARK_NAME_FIELD_NUMBER = 17;
private volatile java.lang.Object remarkName_;
/**
* <code>string remark_name = 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 remark_name = 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 SHOW_AVATAR_INFO_LIST_FIELD_NUMBER = 22;
private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_;
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() {
return showAvatarInfoList_;
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>
getShowAvatarInfoListOrBuilderList() {
return showAvatarInfoList_;
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
@java.lang.Override
public int getShowAvatarInfoListCount() {
return showAvatarInfoList_.size();
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) {
return showAvatarInfoList_.get(index);
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder(
int index) {
return showAvatarInfoList_.get(index);
}
public static final int FRIEND_ENTER_HOME_OPTION_FIELD_NUMBER = 23;
private int friendEnterHomeOption_;
/**
* <code>.FriendEnterHomeOption friend_enter_home_option = 23;</code>
* @return The enum numeric value on the wire for friendEnterHomeOption.
*/
@java.lang.Override public int getFriendEnterHomeOptionValue() {
return friendEnterHomeOption_;
}
/**
* <code>.FriendEnterHomeOption friend_enter_home_option = 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 PROFILE_PICTURE_FIELD_NUMBER = 24;
private emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture profilePicture_;
/**
* <code>.ProfilePicture profile_picture = 24;</code>
* @return Whether the profilePicture field is set.
*/
@java.lang.Override
public boolean hasProfilePicture() {
return profilePicture_ != null;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
* @return The profilePicture.
*/
@java.lang.Override
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture getProfilePicture() {
return profilePicture_ == null ? emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.getDefaultInstance() : profilePicture_;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder getProfilePictureOrBuilder() {
return getProfilePicture();
}
public static final int IS_GAME_SOURCE_FIELD_NUMBER = 25;
private boolean isGameSource_;
/**
* <code>bool is_game_source = 25;</code>
* @return The isGameSource.
*/
@java.lang.Override
public boolean getIsGameSource() {
return isGameSource_;
}
public static final int IS_PSN_SOURCE_FIELD_NUMBER = 26;
private boolean isPsnSource_;
/**
* <code>bool is_psn_source = 26;</code>
* @return The isPsnSource.
*/
@java.lang.Override
public boolean getIsPsnSource() {
return isPsnSource_;
}
public static final int PLATFORM_TYPE_FIELD_NUMBER = 27;
private int platformType_;
/**
* <code>.PlatformType platform_type = 27;</code>
* @return The enum numeric value on the wire for platformType.
*/
@java.lang.Override public int getPlatformTypeValue() {
return platformType_;
}
/**
* <code>.PlatformType platform_type = 27;</code>
* @return The platformType.
*/
@java.lang.Override public emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType getPlatformType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType result = emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.valueOf(platformType_);
return result == null ? emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.UNRECOGNIZED : result;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_);
}
if (level_ != 0) {
output.writeUInt32(3, level_);
}
if (avatarId_ != 0) {
output.writeUInt32(4, avatarId_);
}
if (worldLevel_ != 0) {
output.writeUInt32(5, worldLevel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, signature_);
}
if (onlineState_ != emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.FRIEND_ONLINE_STATE_FREIEND_DISCONNECT.getNumber()) {
output.writeEnum(7, onlineState_);
}
if (param_ != 0) {
output.writeUInt32(8, param_);
}
if (isMpModeAvailable_ != false) {
output.writeBool(10, isMpModeAvailable_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(onlineId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, onlineId_);
}
if (lastActiveTime_ != 0) {
output.writeUInt32(12, lastActiveTime_);
}
if (nameCardId_ != 0) {
output.writeUInt32(13, nameCardId_);
}
if (mpPlayerNum_ != 0) {
output.writeUInt32(14, mpPlayerNum_);
}
if (isChatNoDisturb_ != false) {
output.writeBool(15, isChatNoDisturb_);
}
if (chatSequence_ != 0) {
output.writeUInt32(16, chatSequence_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, remarkName_);
}
for (int i = 0; i < showAvatarInfoList_.size(); i++) {
output.writeMessage(22, showAvatarInfoList_.get(i));
}
if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.FRIEND_ENTER_HOME_OPTION_NEED_CONFIRM.getNumber()) {
output.writeEnum(23, friendEnterHomeOption_);
}
if (profilePicture_ != null) {
output.writeMessage(24, getProfilePicture());
}
if (isGameSource_ != false) {
output.writeBool(25, isGameSource_);
}
if (isPsnSource_ != false) {
output.writeBool(26, isPsnSource_);
}
if (platformType_ != emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.PLATFORM_TYPE_EDITOR.getNumber()) {
output.writeEnum(27, platformType_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_);
}
if (level_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, level_);
}
if (avatarId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, avatarId_);
}
if (worldLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, worldLevel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signature_);
}
if (onlineState_ != emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.FRIEND_ONLINE_STATE_FREIEND_DISCONNECT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, onlineState_);
}
if (param_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, param_);
}
if (isMpModeAvailable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isMpModeAvailable_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(onlineId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, onlineId_);
}
if (lastActiveTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, lastActiveTime_);
}
if (nameCardId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, nameCardId_);
}
if (mpPlayerNum_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, mpPlayerNum_);
}
if (isChatNoDisturb_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isChatNoDisturb_);
}
if (chatSequence_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(16, chatSequence_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, remarkName_);
}
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.FRIEND_ENTER_HOME_OPTION_NEED_CONFIRM.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(23, friendEnterHomeOption_);
}
if (profilePicture_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getProfilePicture());
}
if (isGameSource_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, isGameSource_);
}
if (isPsnSource_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(26, isPsnSource_);
}
if (platformType_ != emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.PLATFORM_TYPE_EDITOR.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(27, platformType_);
}
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.FriendBriefOuterClass.FriendBrief)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief other = (emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief) obj;
if (getUid()
!= other.getUid()) return false;
if (!getNickname()
.equals(other.getNickname())) return false;
if (getLevel()
!= other.getLevel()) return false;
if (getAvatarId()
!= other.getAvatarId()) return false;
if (getWorldLevel()
!= other.getWorldLevel()) return false;
if (!getSignature()
.equals(other.getSignature())) return false;
if (onlineState_ != other.onlineState_) return false;
if (getParam()
!= other.getParam()) return false;
if (getIsMpModeAvailable()
!= other.getIsMpModeAvailable()) return false;
if (!getOnlineId()
.equals(other.getOnlineId())) return false;
if (getLastActiveTime()
!= other.getLastActiveTime()) return false;
if (getNameCardId()
!= other.getNameCardId()) return false;
if (getMpPlayerNum()
!= other.getMpPlayerNum()) return false;
if (getIsChatNoDisturb()
!= other.getIsChatNoDisturb()) return false;
if (getChatSequence()
!= other.getChatSequence()) return false;
if (!getRemarkName()
.equals(other.getRemarkName())) return false;
if (!getShowAvatarInfoListList()
.equals(other.getShowAvatarInfoListList())) return false;
if (friendEnterHomeOption_ != other.friendEnterHomeOption_) return false;
if (hasProfilePicture() != other.hasProfilePicture()) return false;
if (hasProfilePicture()) {
if (!getProfilePicture()
.equals(other.getProfilePicture())) return false;
}
if (getIsGameSource()
!= other.getIsGameSource()) return false;
if (getIsPsnSource()
!= other.getIsPsnSource()) return false;
if (platformType_ != other.platformType_) 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) + AVATAR_ID_FIELD_NUMBER;
hash = (53 * hash) + getAvatarId();
hash = (37 * hash) + WORLD_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getWorldLevel();
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
hash = (37 * hash) + ONLINE_STATE_FIELD_NUMBER;
hash = (53 * hash) + onlineState_;
hash = (37 * hash) + PARAM_FIELD_NUMBER;
hash = (53 * hash) + getParam();
hash = (37 * hash) + IS_MP_MODE_AVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsMpModeAvailable());
hash = (37 * hash) + ONLINE_ID_FIELD_NUMBER;
hash = (53 * hash) + getOnlineId().hashCode();
hash = (37 * hash) + LAST_ACTIVE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastActiveTime();
hash = (37 * hash) + NAME_CARD_ID_FIELD_NUMBER;
hash = (53 * hash) + getNameCardId();
hash = (37 * hash) + MP_PLAYER_NUM_FIELD_NUMBER;
hash = (53 * hash) + getMpPlayerNum();
hash = (37 * hash) + IS_CHAT_NO_DISTURB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsChatNoDisturb());
hash = (37 * hash) + CHAT_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + getChatSequence();
hash = (37 * hash) + REMARK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRemarkName().hashCode();
if (getShowAvatarInfoListCount() > 0) {
hash = (37 * hash) + SHOW_AVATAR_INFO_LIST_FIELD_NUMBER;
hash = (53 * hash) + getShowAvatarInfoListList().hashCode();
}
hash = (37 * hash) + FRIEND_ENTER_HOME_OPTION_FIELD_NUMBER;
hash = (53 * hash) + friendEnterHomeOption_;
if (hasProfilePicture()) {
hash = (37 * hash) + PROFILE_PICTURE_FIELD_NUMBER;
hash = (53 * hash) + getProfilePicture().hashCode();
}
hash = (37 * hash) + IS_GAME_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsGameSource());
hash = (37 * hash) + IS_PSN_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsPsnSource());
hash = (37 * hash) + PLATFORM_TYPE_FIELD_NUMBER;
hash = (53 * hash) + platformType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief 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.FriendBriefOuterClass.FriendBrief parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief 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.FriendBriefOuterClass.FriendBrief parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief 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.FriendBriefOuterClass.FriendBrief parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief 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.FriendBriefOuterClass.FriendBrief parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief 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.FriendBriefOuterClass.FriendBrief 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 FriendBrief}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:FriendBrief)
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.class, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder.class);
}
// Construct using emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.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;
avatarId_ = 0;
worldLevel_ = 0;
signature_ = "";
onlineState_ = 0;
param_ = 0;
isMpModeAvailable_ = false;
onlineId_ = "";
lastActiveTime_ = 0;
nameCardId_ = 0;
mpPlayerNum_ = 0;
isChatNoDisturb_ = false;
chatSequence_ = 0;
remarkName_ = "";
if (showAvatarInfoListBuilder_ == null) {
showAvatarInfoList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
showAvatarInfoListBuilder_.clear();
}
friendEnterHomeOption_ = 0;
if (profilePictureBuilder_ == null) {
profilePicture_ = null;
} else {
profilePicture_ = null;
profilePictureBuilder_ = null;
}
isGameSource_ = false;
isPsnSource_ = false;
platformType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getDefaultInstanceForType() {
return emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief build() {
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief buildPartial() {
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief result = new emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief(this);
int from_bitField0_ = bitField0_;
result.uid_ = uid_;
result.nickname_ = nickname_;
result.level_ = level_;
result.avatarId_ = avatarId_;
result.worldLevel_ = worldLevel_;
result.signature_ = signature_;
result.onlineState_ = onlineState_;
result.param_ = param_;
result.isMpModeAvailable_ = isMpModeAvailable_;
result.onlineId_ = onlineId_;
result.lastActiveTime_ = lastActiveTime_;
result.nameCardId_ = nameCardId_;
result.mpPlayerNum_ = mpPlayerNum_;
result.isChatNoDisturb_ = isChatNoDisturb_;
result.chatSequence_ = chatSequence_;
result.remarkName_ = remarkName_;
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 (profilePictureBuilder_ == null) {
result.profilePicture_ = profilePicture_;
} else {
result.profilePicture_ = profilePictureBuilder_.build();
}
result.isGameSource_ = isGameSource_;
result.isPsnSource_ = isPsnSource_;
result.platformType_ = platformType_;
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.FriendBriefOuterClass.FriendBrief) {
return mergeFrom((emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief other) {
if (other == emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.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.getAvatarId() != 0) {
setAvatarId(other.getAvatarId());
}
if (other.getWorldLevel() != 0) {
setWorldLevel(other.getWorldLevel());
}
if (!other.getSignature().isEmpty()) {
signature_ = other.signature_;
onChanged();
}
if (other.onlineState_ != 0) {
setOnlineStateValue(other.getOnlineStateValue());
}
if (other.getParam() != 0) {
setParam(other.getParam());
}
if (other.getIsMpModeAvailable() != false) {
setIsMpModeAvailable(other.getIsMpModeAvailable());
}
if (!other.getOnlineId().isEmpty()) {
onlineId_ = other.onlineId_;
onChanged();
}
if (other.getLastActiveTime() != 0) {
setLastActiveTime(other.getLastActiveTime());
}
if (other.getNameCardId() != 0) {
setNameCardId(other.getNameCardId());
}
if (other.getMpPlayerNum() != 0) {
setMpPlayerNum(other.getMpPlayerNum());
}
if (other.getIsChatNoDisturb() != false) {
setIsChatNoDisturb(other.getIsChatNoDisturb());
}
if (other.getChatSequence() != 0) {
setChatSequence(other.getChatSequence());
}
if (!other.getRemarkName().isEmpty()) {
remarkName_ = other.remarkName_;
onChanged();
}
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.hasProfilePicture()) {
mergeProfilePicture(other.getProfilePicture());
}
if (other.getIsGameSource() != false) {
setIsGameSource(other.getIsGameSource());
}
if (other.getIsPsnSource() != false) {
setIsPsnSource(other.getIsPsnSource());
}
if (other.platformType_ != 0) {
setPlatformTypeValue(other.getPlatformTypeValue());
}
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.FriendBriefOuterClass.FriendBrief parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief) 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 int avatarId_ ;
/**
* <code>uint32 avatar_id = 4;</code>
* @return The avatarId.
*/
@java.lang.Override
public int getAvatarId() {
return avatarId_;
}
/**
* <code>uint32 avatar_id = 4;</code>
* @param value The avatarId to set.
* @return This builder for chaining.
*/
public Builder setAvatarId(int value) {
avatarId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 avatar_id = 4;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarId() {
avatarId_ = 0;
onChanged();
return this;
}
private int worldLevel_ ;
/**
* <code>uint32 world_level = 5;</code>
* @return The worldLevel.
*/
@java.lang.Override
public int getWorldLevel() {
return worldLevel_;
}
/**
* <code>uint32 world_level = 5;</code>
* @param value The worldLevel to set.
* @return This builder for chaining.
*/
public Builder setWorldLevel(int value) {
worldLevel_ = value;
onChanged();
return this;
}
/**
* <code>uint32 world_level = 5;</code>
* @return This builder for chaining.
*/
public Builder clearWorldLevel() {
worldLevel_ = 0;
onChanged();
return this;
}
private java.lang.Object signature_ = "";
/**
* <code>string signature = 6;</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 = 6;</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 = 6;</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 = 6;</code>
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
/**
* <code>string signature = 6;</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 int onlineState_ = 0;
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return The enum numeric value on the wire for onlineState.
*/
@java.lang.Override public int getOnlineStateValue() {
return onlineState_;
}
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @param value The enum numeric value on the wire for onlineState to set.
* @return This builder for chaining.
*/
public Builder setOnlineStateValue(int value) {
onlineState_ = value;
onChanged();
return this;
}
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return The onlineState.
*/
@java.lang.Override
public emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState result = emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.valueOf(onlineState_);
return result == null ? emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.UNRECOGNIZED : result;
}
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @param value The onlineState to set.
* @return This builder for chaining.
*/
public Builder setOnlineState(emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState value) {
if (value == null) {
throw new NullPointerException();
}
onlineState_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.FriendOnlineState online_state = 7;</code>
* @return This builder for chaining.
*/
public Builder clearOnlineState() {
onlineState_ = 0;
onChanged();
return this;
}
private int param_ ;
/**
* <code>uint32 param = 8;</code>
* @return The param.
*/
@java.lang.Override
public int getParam() {
return param_;
}
/**
* <code>uint32 param = 8;</code>
* @param value The param to set.
* @return This builder for chaining.
*/
public Builder setParam(int value) {
param_ = value;
onChanged();
return this;
}
/**
* <code>uint32 param = 8;</code>
* @return This builder for chaining.
*/
public Builder clearParam() {
param_ = 0;
onChanged();
return this;
}
private boolean isMpModeAvailable_ ;
/**
* <code>bool is_mp_mode_available = 10;</code>
* @return The isMpModeAvailable.
*/
@java.lang.Override
public boolean getIsMpModeAvailable() {
return isMpModeAvailable_;
}
/**
* <code>bool is_mp_mode_available = 10;</code>
* @param value The isMpModeAvailable to set.
* @return This builder for chaining.
*/
public Builder setIsMpModeAvailable(boolean value) {
isMpModeAvailable_ = value;
onChanged();
return this;
}
/**
* <code>bool is_mp_mode_available = 10;</code>
* @return This builder for chaining.
*/
public Builder clearIsMpModeAvailable() {
isMpModeAvailable_ = false;
onChanged();
return this;
}
private java.lang.Object onlineId_ = "";
/**
* <code>string online_id = 11;</code>
* @return The onlineId.
*/
public java.lang.String getOnlineId() {
java.lang.Object ref = onlineId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
onlineId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string online_id = 11;</code>
* @return The bytes for onlineId.
*/
public com.google.protobuf.ByteString
getOnlineIdBytes() {
java.lang.Object ref = onlineId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
onlineId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string online_id = 11;</code>
* @param value The onlineId to set.
* @return This builder for chaining.
*/
public Builder setOnlineId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
onlineId_ = value;
onChanged();
return this;
}
/**
* <code>string online_id = 11;</code>
* @return This builder for chaining.
*/
public Builder clearOnlineId() {
onlineId_ = getDefaultInstance().getOnlineId();
onChanged();
return this;
}
/**
* <code>string online_id = 11;</code>
* @param value The bytes for onlineId to set.
* @return This builder for chaining.
*/
public Builder setOnlineIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
onlineId_ = value;
onChanged();
return this;
}
private int lastActiveTime_ ;
/**
* <code>uint32 last_active_time = 12;</code>
* @return The lastActiveTime.
*/
@java.lang.Override
public int getLastActiveTime() {
return lastActiveTime_;
}
/**
* <code>uint32 last_active_time = 12;</code>
* @param value The lastActiveTime to set.
* @return This builder for chaining.
*/
public Builder setLastActiveTime(int value) {
lastActiveTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 last_active_time = 12;</code>
* @return This builder for chaining.
*/
public Builder clearLastActiveTime() {
lastActiveTime_ = 0;
onChanged();
return this;
}
private int nameCardId_ ;
/**
* <code>uint32 name_card_id = 13;</code>
* @return The nameCardId.
*/
@java.lang.Override
public int getNameCardId() {
return nameCardId_;
}
/**
* <code>uint32 name_card_id = 13;</code>
* @param value The nameCardId to set.
* @return This builder for chaining.
*/
public Builder setNameCardId(int value) {
nameCardId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 name_card_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearNameCardId() {
nameCardId_ = 0;
onChanged();
return this;
}
private int mpPlayerNum_ ;
/**
* <code>uint32 mp_player_num = 14;</code>
* @return The mpPlayerNum.
*/
@java.lang.Override
public int getMpPlayerNum() {
return mpPlayerNum_;
}
/**
* <code>uint32 mp_player_num = 14;</code>
* @param value The mpPlayerNum to set.
* @return This builder for chaining.
*/
public Builder setMpPlayerNum(int value) {
mpPlayerNum_ = value;
onChanged();
return this;
}
/**
* <code>uint32 mp_player_num = 14;</code>
* @return This builder for chaining.
*/
public Builder clearMpPlayerNum() {
mpPlayerNum_ = 0;
onChanged();
return this;
}
private boolean isChatNoDisturb_ ;
/**
* <code>bool is_chat_no_disturb = 15;</code>
* @return The isChatNoDisturb.
*/
@java.lang.Override
public boolean getIsChatNoDisturb() {
return isChatNoDisturb_;
}
/**
* <code>bool is_chat_no_disturb = 15;</code>
* @param value The isChatNoDisturb to set.
* @return This builder for chaining.
*/
public Builder setIsChatNoDisturb(boolean value) {
isChatNoDisturb_ = value;
onChanged();
return this;
}
/**
* <code>bool is_chat_no_disturb = 15;</code>
* @return This builder for chaining.
*/
public Builder clearIsChatNoDisturb() {
isChatNoDisturb_ = false;
onChanged();
return this;
}
private int chatSequence_ ;
/**
* <code>uint32 chat_sequence = 16;</code>
* @return The chatSequence.
*/
@java.lang.Override
public int getChatSequence() {
return chatSequence_;
}
/**
* <code>uint32 chat_sequence = 16;</code>
* @param value The chatSequence to set.
* @return This builder for chaining.
*/
public Builder setChatSequence(int value) {
chatSequence_ = value;
onChanged();
return this;
}
/**
* <code>uint32 chat_sequence = 16;</code>
* @return This builder for chaining.
*/
public Builder clearChatSequence() {
chatSequence_ = 0;
onChanged();
return this;
}
private java.lang.Object remarkName_ = "";
/**
* <code>string remark_name = 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 remark_name = 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 remark_name = 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 remark_name = 17;</code>
* @return This builder for chaining.
*/
public Builder clearRemarkName() {
remarkName_ = getDefaultInstance().getRemarkName();
onChanged();
return this;
}
/**
* <code>string remark_name = 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 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 show_avatar_info_list = 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 show_avatar_info_list = 22;</code>
*/
public int getShowAvatarInfoListCount() {
if (showAvatarInfoListBuilder_ == null) {
return showAvatarInfoList_.size();
} else {
return showAvatarInfoListBuilder_.getCount();
}
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 22;</code>
*/
public Builder removeShowAvatarInfoList(int index) {
if (showAvatarInfoListBuilder_ == null) {
ensureShowAvatarInfoListIsMutable();
showAvatarInfoList_.remove(index);
onChanged();
} else {
showAvatarInfoListBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 22;</code>
*/
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder getShowAvatarInfoListBuilder(
int index) {
return getShowAvatarInfoListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 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 show_avatar_info_list = 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 show_avatar_info_list = 22;</code>
*/
public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder() {
return getShowAvatarInfoListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance());
}
/**
* <code>repeated .SocialShowAvatarInfo show_avatar_info_list = 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 show_avatar_info_list = 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 friend_enter_home_option = 23;</code>
* @return The enum numeric value on the wire for friendEnterHomeOption.
*/
@java.lang.Override public int getFriendEnterHomeOptionValue() {
return friendEnterHomeOption_;
}
/**
* <code>.FriendEnterHomeOption friend_enter_home_option = 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 friend_enter_home_option = 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 friend_enter_home_option = 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 friend_enter_home_option = 23;</code>
* @return This builder for chaining.
*/
public Builder clearFriendEnterHomeOption() {
friendEnterHomeOption_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture profilePicture_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder> profilePictureBuilder_;
/**
* <code>.ProfilePicture profile_picture = 24;</code>
* @return Whether the profilePicture field is set.
*/
public boolean hasProfilePicture() {
return profilePictureBuilder_ != null || profilePicture_ != null;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
* @return The profilePicture.
*/
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture getProfilePicture() {
if (profilePictureBuilder_ == null) {
return profilePicture_ == null ? emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.getDefaultInstance() : profilePicture_;
} else {
return profilePictureBuilder_.getMessage();
}
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
public Builder setProfilePicture(emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture value) {
if (profilePictureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profilePicture_ = value;
onChanged();
} else {
profilePictureBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
public Builder setProfilePicture(
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder builderForValue) {
if (profilePictureBuilder_ == null) {
profilePicture_ = builderForValue.build();
onChanged();
} else {
profilePictureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
public Builder mergeProfilePicture(emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture value) {
if (profilePictureBuilder_ == null) {
if (profilePicture_ != null) {
profilePicture_ =
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.newBuilder(profilePicture_).mergeFrom(value).buildPartial();
} else {
profilePicture_ = value;
}
onChanged();
} else {
profilePictureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
public Builder clearProfilePicture() {
if (profilePictureBuilder_ == null) {
profilePicture_ = null;
onChanged();
} else {
profilePicture_ = null;
profilePictureBuilder_ = null;
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder getProfilePictureBuilder() {
onChanged();
return getProfilePictureFieldBuilder().getBuilder();
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder getProfilePictureOrBuilder() {
if (profilePictureBuilder_ != null) {
return profilePictureBuilder_.getMessageOrBuilder();
} else {
return profilePicture_ == null ?
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.getDefaultInstance() : profilePicture_;
}
}
/**
* <code>.ProfilePicture profile_picture = 24;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder>
getProfilePictureFieldBuilder() {
if (profilePictureBuilder_ == null) {
profilePictureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder>(
getProfilePicture(),
getParentForChildren(),
isClean());
profilePicture_ = null;
}
return profilePictureBuilder_;
}
private boolean isGameSource_ ;
/**
* <code>bool is_game_source = 25;</code>
* @return The isGameSource.
*/
@java.lang.Override
public boolean getIsGameSource() {
return isGameSource_;
}
/**
* <code>bool is_game_source = 25;</code>
* @param value The isGameSource to set.
* @return This builder for chaining.
*/
public Builder setIsGameSource(boolean value) {
isGameSource_ = value;
onChanged();
return this;
}
/**
* <code>bool is_game_source = 25;</code>
* @return This builder for chaining.
*/
public Builder clearIsGameSource() {
isGameSource_ = false;
onChanged();
return this;
}
private boolean isPsnSource_ ;
/**
* <code>bool is_psn_source = 26;</code>
* @return The isPsnSource.
*/
@java.lang.Override
public boolean getIsPsnSource() {
return isPsnSource_;
}
/**
* <code>bool is_psn_source = 26;</code>
* @param value The isPsnSource to set.
* @return This builder for chaining.
*/
public Builder setIsPsnSource(boolean value) {
isPsnSource_ = value;
onChanged();
return this;
}
/**
* <code>bool is_psn_source = 26;</code>
* @return This builder for chaining.
*/
public Builder clearIsPsnSource() {
isPsnSource_ = false;
onChanged();
return this;
}
private int platformType_ = 0;
/**
* <code>.PlatformType platform_type = 27;</code>
* @return The enum numeric value on the wire for platformType.
*/
@java.lang.Override public int getPlatformTypeValue() {
return platformType_;
}
/**
* <code>.PlatformType platform_type = 27;</code>
* @param value The enum numeric value on the wire for platformType to set.
* @return This builder for chaining.
*/
public Builder setPlatformTypeValue(int value) {
platformType_ = value;
onChanged();
return this;
}
/**
* <code>.PlatformType platform_type = 27;</code>
* @return The platformType.
*/
@java.lang.Override
public emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType getPlatformType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType result = emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.valueOf(platformType_);
return result == null ? emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.UNRECOGNIZED : result;
}
/**
* <code>.PlatformType platform_type = 27;</code>
* @param value The platformType to set.
* @return This builder for chaining.
*/
public Builder setPlatformType(emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType value) {
if (value == null) {
throw new NullPointerException();
}
platformType_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.PlatformType platform_type = 27;</code>
* @return This builder for chaining.
*/
public Builder clearPlatformType() {
platformType_ = 0;
onChanged();
return this;
}
@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:FriendBrief)
}
// @@protoc_insertion_point(class_scope:FriendBrief)
private static final emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief();
}
public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<FriendBrief>
PARSER = new com.google.protobuf.AbstractParser<FriendBrief>() {
@java.lang.Override
public FriendBrief parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FriendBrief(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<FriendBrief> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<FriendBrief> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_FriendBrief_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_FriendBrief_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\021FriendBrief.proto\032\033FriendEnterHomeOpti" +
"on.proto\032\027FriendOnlineState.proto\032\022Platf" +
"ormType.proto\032\024ProfilePicture.proto\032\032Soc" +
"ialShowAvatarInfo.proto\"\336\004\n\013FriendBrief\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\tavatar_id\030\004 \001(\r\022\023\n\013world_level\030" +
"\005 \001(\r\022\021\n\tsignature\030\006 \001(\t\022(\n\014online_state" +
"\030\007 \001(\0162\022.FriendOnlineState\022\r\n\005param\030\010 \001(" +
"\r\022\034\n\024is_mp_mode_available\030\n \001(\010\022\021\n\tonlin" +
"e_id\030\013 \001(\t\022\030\n\020last_active_time\030\014 \001(\r\022\024\n\014" +
"name_card_id\030\r \001(\r\022\025\n\rmp_player_num\030\016 \001(" +
"\r\022\032\n\022is_chat_no_disturb\030\017 \001(\010\022\025\n\rchat_se" +
"quence\030\020 \001(\r\022\023\n\013remark_name\030\021 \001(\t\0224\n\025sho" +
"w_avatar_info_list\030\026 \003(\0132\025.SocialShowAva" +
"tarInfo\0228\n\030friend_enter_home_option\030\027 \001(" +
"\0162\026.FriendEnterHomeOption\022(\n\017profile_pic" +
"ture\030\030 \001(\0132\017.ProfilePicture\022\026\n\016is_game_s" +
"ource\030\031 \001(\010\022\025\n\ris_psn_source\030\032 \001(\010\022$\n\rpl" +
"atform_type\030\033 \001(\0162\r.PlatformTypeB\033\n\031emu." +
"grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor(),
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.getDescriptor(),
emu.grasscutter.net.proto.PlatformTypeOuterClass.getDescriptor(),
emu.grasscutter.net.proto.ProfilePictureOuterClass.getDescriptor(),
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor(),
});
internal_static_FriendBrief_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_FriendBrief_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_FriendBrief_descriptor,
new java.lang.String[] { "Uid", "Nickname", "Level", "AvatarId", "WorldLevel", "Signature", "OnlineState", "Param", "IsMpModeAvailable", "OnlineId", "LastActiveTime", "NameCardId", "MpPlayerNum", "IsChatNoDisturb", "ChatSequence", "RemarkName", "ShowAvatarInfoList", "FriendEnterHomeOption", "ProfilePicture", "IsGameSource", "IsPsnSource", "PlatformType", });
emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor();
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.getDescriptor();
emu.grasscutter.net.proto.PlatformTypeOuterClass.getDescriptor();
emu.grasscutter.net.proto.ProfilePictureOuterClass.getDescriptor();
emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}