Fix player detail screen not showing up

This commit is contained in:
Melledy
2024-05-11 03:59:50 -07:00
parent dfc8a9cb7f
commit 24be0f3f3f
5 changed files with 2396 additions and 375 deletions

View File

@@ -0,0 +1,579 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class PlayerCollectionInfoOuterClass {
/**
* Protobuf type {@code PlayerCollectionInfo}
*/
public static final class PlayerCollectionInfo extends ProtoMessage<PlayerCollectionInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 DCIOBLHLICO = 1;</code>
*/
private int dCIOBLHLICO;
/**
* <code>optional uint32 ILADMEOHHEC = 3;</code>
*/
private int iLADMEOHHEC;
/**
* <code>optional uint32 EJMJIKCDIMM = 6;</code>
*/
private int eJMJIKCDIMM;
/**
* <code>optional uint32 JFLFDIJPNEO = 14;</code>
*/
private int jFLFDIJPNEO;
/**
* <code>optional uint32 KLLEONMNLDI = 15;</code>
*/
private int kLLEONMNLDI;
private PlayerCollectionInfo() {
}
/**
* @return a new empty instance of {@code PlayerCollectionInfo}
*/
public static PlayerCollectionInfo newInstance() {
return new PlayerCollectionInfo();
}
/**
* <code>optional uint32 DCIOBLHLICO = 1;</code>
* @return whether the dCIOBLHLICO field is set
*/
public boolean hasDCIOBLHLICO() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 DCIOBLHLICO = 1;</code>
* @return this
*/
public PlayerCollectionInfo clearDCIOBLHLICO() {
bitField0_ &= ~0x00000001;
dCIOBLHLICO = 0;
return this;
}
/**
* <code>optional uint32 DCIOBLHLICO = 1;</code>
* @return the dCIOBLHLICO
*/
public int getDCIOBLHLICO() {
return dCIOBLHLICO;
}
/**
* <code>optional uint32 DCIOBLHLICO = 1;</code>
* @param value the dCIOBLHLICO to set
* @return this
*/
public PlayerCollectionInfo setDCIOBLHLICO(final int value) {
bitField0_ |= 0x00000001;
dCIOBLHLICO = value;
return this;
}
/**
* <code>optional uint32 ILADMEOHHEC = 3;</code>
* @return whether the iLADMEOHHEC field is set
*/
public boolean hasILADMEOHHEC() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 ILADMEOHHEC = 3;</code>
* @return this
*/
public PlayerCollectionInfo clearILADMEOHHEC() {
bitField0_ &= ~0x00000002;
iLADMEOHHEC = 0;
return this;
}
/**
* <code>optional uint32 ILADMEOHHEC = 3;</code>
* @return the iLADMEOHHEC
*/
public int getILADMEOHHEC() {
return iLADMEOHHEC;
}
/**
* <code>optional uint32 ILADMEOHHEC = 3;</code>
* @param value the iLADMEOHHEC to set
* @return this
*/
public PlayerCollectionInfo setILADMEOHHEC(final int value) {
bitField0_ |= 0x00000002;
iLADMEOHHEC = value;
return this;
}
/**
* <code>optional uint32 EJMJIKCDIMM = 6;</code>
* @return whether the eJMJIKCDIMM field is set
*/
public boolean hasEJMJIKCDIMM() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 EJMJIKCDIMM = 6;</code>
* @return this
*/
public PlayerCollectionInfo clearEJMJIKCDIMM() {
bitField0_ &= ~0x00000004;
eJMJIKCDIMM = 0;
return this;
}
/**
* <code>optional uint32 EJMJIKCDIMM = 6;</code>
* @return the eJMJIKCDIMM
*/
public int getEJMJIKCDIMM() {
return eJMJIKCDIMM;
}
/**
* <code>optional uint32 EJMJIKCDIMM = 6;</code>
* @param value the eJMJIKCDIMM to set
* @return this
*/
public PlayerCollectionInfo setEJMJIKCDIMM(final int value) {
bitField0_ |= 0x00000004;
eJMJIKCDIMM = value;
return this;
}
/**
* <code>optional uint32 JFLFDIJPNEO = 14;</code>
* @return whether the jFLFDIJPNEO field is set
*/
public boolean hasJFLFDIJPNEO() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 JFLFDIJPNEO = 14;</code>
* @return this
*/
public PlayerCollectionInfo clearJFLFDIJPNEO() {
bitField0_ &= ~0x00000008;
jFLFDIJPNEO = 0;
return this;
}
/**
* <code>optional uint32 JFLFDIJPNEO = 14;</code>
* @return the jFLFDIJPNEO
*/
public int getJFLFDIJPNEO() {
return jFLFDIJPNEO;
}
/**
* <code>optional uint32 JFLFDIJPNEO = 14;</code>
* @param value the jFLFDIJPNEO to set
* @return this
*/
public PlayerCollectionInfo setJFLFDIJPNEO(final int value) {
bitField0_ |= 0x00000008;
jFLFDIJPNEO = value;
return this;
}
/**
* <code>optional uint32 KLLEONMNLDI = 15;</code>
* @return whether the kLLEONMNLDI field is set
*/
public boolean hasKLLEONMNLDI() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional uint32 KLLEONMNLDI = 15;</code>
* @return this
*/
public PlayerCollectionInfo clearKLLEONMNLDI() {
bitField0_ &= ~0x00000010;
kLLEONMNLDI = 0;
return this;
}
/**
* <code>optional uint32 KLLEONMNLDI = 15;</code>
* @return the kLLEONMNLDI
*/
public int getKLLEONMNLDI() {
return kLLEONMNLDI;
}
/**
* <code>optional uint32 KLLEONMNLDI = 15;</code>
* @param value the kLLEONMNLDI to set
* @return this
*/
public PlayerCollectionInfo setKLLEONMNLDI(final int value) {
bitField0_ |= 0x00000010;
kLLEONMNLDI = value;
return this;
}
@Override
public PlayerCollectionInfo copyFrom(final PlayerCollectionInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
dCIOBLHLICO = other.dCIOBLHLICO;
iLADMEOHHEC = other.iLADMEOHHEC;
eJMJIKCDIMM = other.eJMJIKCDIMM;
jFLFDIJPNEO = other.jFLFDIJPNEO;
kLLEONMNLDI = other.kLLEONMNLDI;
}
return this;
}
@Override
public PlayerCollectionInfo mergeFrom(final PlayerCollectionInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasDCIOBLHLICO()) {
setDCIOBLHLICO(other.dCIOBLHLICO);
}
if (other.hasILADMEOHHEC()) {
setILADMEOHHEC(other.iLADMEOHHEC);
}
if (other.hasEJMJIKCDIMM()) {
setEJMJIKCDIMM(other.eJMJIKCDIMM);
}
if (other.hasJFLFDIJPNEO()) {
setJFLFDIJPNEO(other.jFLFDIJPNEO);
}
if (other.hasKLLEONMNLDI()) {
setKLLEONMNLDI(other.kLLEONMNLDI);
}
return this;
}
@Override
public PlayerCollectionInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
dCIOBLHLICO = 0;
iLADMEOHHEC = 0;
eJMJIKCDIMM = 0;
jFLFDIJPNEO = 0;
kLLEONMNLDI = 0;
return this;
}
@Override
public PlayerCollectionInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PlayerCollectionInfo)) {
return false;
}
PlayerCollectionInfo other = (PlayerCollectionInfo) o;
return bitField0_ == other.bitField0_
&& (!hasDCIOBLHLICO() || dCIOBLHLICO == other.dCIOBLHLICO)
&& (!hasILADMEOHHEC() || iLADMEOHHEC == other.iLADMEOHHEC)
&& (!hasEJMJIKCDIMM() || eJMJIKCDIMM == other.eJMJIKCDIMM)
&& (!hasJFLFDIJPNEO() || jFLFDIJPNEO == other.jFLFDIJPNEO)
&& (!hasKLLEONMNLDI() || kLLEONMNLDI == other.kLLEONMNLDI);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(dCIOBLHLICO);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(iLADMEOHHEC);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(eJMJIKCDIMM);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 112);
output.writeUInt32NoTag(jFLFDIJPNEO);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 120);
output.writeUInt32NoTag(kLLEONMNLDI);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(dCIOBLHLICO);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(iLADMEOHHEC);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(eJMJIKCDIMM);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(jFLFDIJPNEO);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(kLLEONMNLDI);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PlayerCollectionInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// dCIOBLHLICO
dCIOBLHLICO = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// iLADMEOHHEC
iLADMEOHHEC = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 48) {
break;
}
}
case 48: {
// eJMJIKCDIMM
eJMJIKCDIMM = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 112) {
break;
}
}
case 112: {
// jFLFDIJPNEO
jFLFDIJPNEO = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 120) {
break;
}
}
case 120: {
// kLLEONMNLDI
kLLEONMNLDI = input.readUInt32();
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.dCIOBLHLICO, dCIOBLHLICO);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.iLADMEOHHEC, iLADMEOHHEC);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.eJMJIKCDIMM, eJMJIKCDIMM);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.jFLFDIJPNEO, jFLFDIJPNEO);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeUInt32(FieldNames.kLLEONMNLDI, kLLEONMNLDI);
}
output.endObject();
}
@Override
public PlayerCollectionInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -81891486: {
if (input.isAtField(FieldNames.dCIOBLHLICO)) {
if (!input.trySkipNullValue()) {
dCIOBLHLICO = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1683099505: {
if (input.isAtField(FieldNames.iLADMEOHHEC)) {
if (!input.trySkipNullValue()) {
iLADMEOHHEC = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -134364028: {
if (input.isAtField(FieldNames.eJMJIKCDIMM)) {
if (!input.trySkipNullValue()) {
eJMJIKCDIMM = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -804934505: {
if (input.isAtField(FieldNames.jFLFDIJPNEO)) {
if (!input.trySkipNullValue()) {
jFLFDIJPNEO = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case 89650743: {
if (input.isAtField(FieldNames.kLLEONMNLDI)) {
if (!input.trySkipNullValue()) {
kLLEONMNLDI = input.readUInt32();
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PlayerCollectionInfo clone() {
return new PlayerCollectionInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PlayerCollectionInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PlayerCollectionInfo(), data).checkInitialized();
}
public static PlayerCollectionInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new PlayerCollectionInfo(), input).checkInitialized();
}
public static PlayerCollectionInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new PlayerCollectionInfo(), input).checkInitialized();
}
/**
* @return factory for creating PlayerCollectionInfo messages
*/
public static MessageFactory<PlayerCollectionInfo> getFactory() {
return PlayerCollectionInfoFactory.INSTANCE;
}
private enum PlayerCollectionInfoFactory implements MessageFactory<PlayerCollectionInfo> {
INSTANCE;
@Override
public PlayerCollectionInfo create() {
return PlayerCollectionInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName dCIOBLHLICO = FieldName.forField("DCIOBLHLICO");
static final FieldName iLADMEOHHEC = FieldName.forField("ILADMEOHHEC");
static final FieldName eJMJIKCDIMM = FieldName.forField("EJMJIKCDIMM");
static final FieldName jFLFDIJPNEO = FieldName.forField("JFLFDIJPNEO");
static final FieldName kLLEONMNLDI = FieldName.forField("KLLEONMNLDI");
}
}
}

View File

@@ -19,11 +19,6 @@ public final class PlayerDetailInfoOuterClass {
public static final class PlayerDetailInfo extends ProtoMessage<PlayerDetailInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional int32 int1 = 1;</code>
*/
private int int1;
/**
* <code>optional uint32 uid = 5;</code>
*/
@@ -50,9 +45,14 @@ public final class PlayerDetailInfoOuterClass {
private int platformType;
/**
* <code>optional bool b1 = 14;</code>
* <code>optional .PlayerRecordInfo record_info = 7;</code>
*/
private boolean b1;
private final PlayerRecordInfoOuterClass.PlayerRecordInfo recordInfo = PlayerRecordInfoOuterClass.PlayerRecordInfo.newInstance();
/**
* <code>optional .PlayerDisplaySettings display_settings = 757;</code>
*/
private final PlayerDisplaySettingsOuterClass.PlayerDisplaySettings displaySettings = PlayerDisplaySettingsOuterClass.PlayerDisplaySettings.newInstance();
/**
* <code>optional string signature = 3;</code>
@@ -64,16 +64,6 @@ public final class PlayerDetailInfoOuterClass {
*/
private final Utf8String nickname = Utf8String.newEmptyInstance();
/**
* <code>optional string display_avatar_info = 13;</code>
*/
private final Utf8String displayAvatarInfo = Utf8String.newEmptyInstance();
/**
* <code>optional string record_info = 425;</code>
*/
private final Utf8String recordInfo = Utf8String.newEmptyInstance();
private PlayerDetailInfo() {
}
@@ -84,49 +74,12 @@ public final class PlayerDetailInfoOuterClass {
return new PlayerDetailInfo();
}
/**
* <code>optional int32 int1 = 1;</code>
* @return whether the int1 field is set
*/
public boolean hasInt1() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional int32 int1 = 1;</code>
* @return this
*/
public PlayerDetailInfo clearInt1() {
bitField0_ &= ~0x00000001;
int1 = 0;
return this;
}
/**
* <code>optional int32 int1 = 1;</code>
* @return the int1
*/
public int getInt1() {
return int1;
}
/**
* <code>optional int32 int1 = 1;</code>
* @param value the int1 to set
* @return this
*/
public PlayerDetailInfo setInt1(final int value) {
bitField0_ |= 0x00000001;
int1 = value;
return this;
}
/**
* <code>optional uint32 uid = 5;</code>
* @return whether the uid field is set
*/
public boolean hasUid() {
return (bitField0_ & 0x00000002) != 0;
return (bitField0_ & 0x00000001) != 0;
}
/**
@@ -134,7 +87,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo clearUid() {
bitField0_ &= ~0x00000002;
bitField0_ &= ~0x00000001;
uid = 0;
return this;
}
@@ -153,7 +106,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo setUid(final int value) {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000001;
uid = value;
return this;
}
@@ -163,7 +116,7 @@ public final class PlayerDetailInfoOuterClass {
* @return whether the headIcon field is set
*/
public boolean hasHeadIcon() {
return (bitField0_ & 0x00000004) != 0;
return (bitField0_ & 0x00000002) != 0;
}
/**
@@ -171,7 +124,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo clearHeadIcon() {
bitField0_ &= ~0x00000004;
bitField0_ &= ~0x00000002;
headIcon = 0;
return this;
}
@@ -190,7 +143,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo setHeadIcon(final int value) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000002;
headIcon = value;
return this;
}
@@ -200,7 +153,7 @@ public final class PlayerDetailInfoOuterClass {
* @return whether the worldLevel field is set
*/
public boolean hasWorldLevel() {
return (bitField0_ & 0x00000008) != 0;
return (bitField0_ & 0x00000004) != 0;
}
/**
@@ -208,7 +161,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo clearWorldLevel() {
bitField0_ &= ~0x00000008;
bitField0_ &= ~0x00000004;
worldLevel = 0;
return this;
}
@@ -227,7 +180,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo setWorldLevel(final int value) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000004;
worldLevel = value;
return this;
}
@@ -237,7 +190,7 @@ public final class PlayerDetailInfoOuterClass {
* @return whether the level field is set
*/
public boolean hasLevel() {
return (bitField0_ & 0x00000010) != 0;
return (bitField0_ & 0x00000008) != 0;
}
/**
@@ -245,7 +198,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo clearLevel() {
bitField0_ &= ~0x00000010;
bitField0_ &= ~0x00000008;
level = 0;
return this;
}
@@ -264,7 +217,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo setLevel(final int value) {
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000008;
level = value;
return this;
}
@@ -274,7 +227,7 @@ public final class PlayerDetailInfoOuterClass {
* @return whether the platformType field is set
*/
public boolean hasPlatformType() {
return (bitField0_ & 0x00000020) != 0;
return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -282,7 +235,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo clearPlatformType() {
bitField0_ &= ~0x00000020;
bitField0_ &= ~0x00000010;
platformType = 0;
return this;
}
@@ -315,7 +268,7 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo setPlatformTypeValue(final int value) {
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000010;
platformType = value;
return this;
}
@@ -326,45 +279,123 @@ public final class PlayerDetailInfoOuterClass {
* @return this
*/
public PlayerDetailInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) {
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000010;
platformType = value.getNumber();
return this;
}
/**
* <code>optional bool b1 = 14;</code>
* @return whether the b1 field is set
* <code>optional .PlayerRecordInfo record_info = 7;</code>
* @return whether the recordInfo field is set
*/
public boolean hasB1() {
return (bitField0_ & 0x00000040) != 0;
public boolean hasRecordInfo() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>optional bool b1 = 14;</code>
* <code>optional .PlayerRecordInfo record_info = 7;</code>
* @return this
*/
public PlayerDetailInfo clearB1() {
bitField0_ &= ~0x00000040;
b1 = false;
public PlayerDetailInfo clearRecordInfo() {
bitField0_ &= ~0x00000020;
recordInfo.clear();
return this;
}
/**
* <code>optional bool b1 = 14;</code>
* @return the b1
* <code>optional .PlayerRecordInfo record_info = 7;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableRecordInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public boolean getB1() {
return b1;
public PlayerRecordInfoOuterClass.PlayerRecordInfo getRecordInfo() {
return recordInfo;
}
/**
* <code>optional bool b1 = 14;</code>
* @param value the b1 to set
* <code>optional .PlayerRecordInfo record_info = 7;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public PlayerRecordInfoOuterClass.PlayerRecordInfo getMutableRecordInfo() {
bitField0_ |= 0x00000020;
return recordInfo;
}
/**
* <code>optional .PlayerRecordInfo record_info = 7;</code>
* @param value the recordInfo to set
* @return this
*/
public PlayerDetailInfo setB1(final boolean value) {
public PlayerDetailInfo setRecordInfo(final PlayerRecordInfoOuterClass.PlayerRecordInfo value) {
bitField0_ |= 0x00000020;
recordInfo.copyFrom(value);
return this;
}
/**
* <code>optional .PlayerDisplaySettings display_settings = 757;</code>
* @return whether the displaySettings field is set
*/
public boolean hasDisplaySettings() {
return (bitField0_ & 0x00000040) != 0;
}
/**
* <code>optional .PlayerDisplaySettings display_settings = 757;</code>
* @return this
*/
public PlayerDetailInfo clearDisplaySettings() {
bitField0_ &= ~0x00000040;
displaySettings.clear();
return this;
}
/**
* <code>optional .PlayerDisplaySettings display_settings = 757;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableDisplaySettings()} if you want to modify it.
*
* @return internal storage object for reading
*/
public PlayerDisplaySettingsOuterClass.PlayerDisplaySettings getDisplaySettings() {
return displaySettings;
}
/**
* <code>optional .PlayerDisplaySettings display_settings = 757;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public PlayerDisplaySettingsOuterClass.PlayerDisplaySettings getMutableDisplaySettings() {
bitField0_ |= 0x00000040;
b1 = value;
return displaySettings;
}
/**
* <code>optional .PlayerDisplaySettings display_settings = 757;</code>
* @param value the displaySettings to set
* @return this
*/
public PlayerDetailInfo setDisplaySettings(
final PlayerDisplaySettingsOuterClass.PlayerDisplaySettings value) {
bitField0_ |= 0x00000040;
displaySettings.copyFrom(value);
return this;
}
@@ -498,152 +529,20 @@ public final class PlayerDetailInfoOuterClass {
return this;
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @return whether the displayAvatarInfo field is set
*/
public boolean hasDisplayAvatarInfo() {
return (bitField0_ & 0x00000200) != 0;
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @return this
*/
public PlayerDetailInfo clearDisplayAvatarInfo() {
bitField0_ &= ~0x00000200;
displayAvatarInfo.clear();
return this;
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @return the displayAvatarInfo
*/
public String getDisplayAvatarInfo() {
return displayAvatarInfo.getString();
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @return internal {@code Utf8String} representation of displayAvatarInfo for reading
*/
public Utf8String getDisplayAvatarInfoBytes() {
return this.displayAvatarInfo;
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @return internal {@code Utf8String} representation of displayAvatarInfo for modifications
*/
public Utf8String getMutableDisplayAvatarInfoBytes() {
bitField0_ |= 0x00000200;
return this.displayAvatarInfo;
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @param value the displayAvatarInfo to set
* @return this
*/
public PlayerDetailInfo setDisplayAvatarInfo(final CharSequence value) {
bitField0_ |= 0x00000200;
displayAvatarInfo.copyFrom(value);
return this;
}
/**
* <code>optional string display_avatar_info = 13;</code>
* @param value the displayAvatarInfo to set
* @return this
*/
public PlayerDetailInfo setDisplayAvatarInfo(final Utf8String value) {
bitField0_ |= 0x00000200;
displayAvatarInfo.copyFrom(value);
return this;
}
/**
* <code>optional string record_info = 425;</code>
* @return whether the recordInfo field is set
*/
public boolean hasRecordInfo() {
return (bitField0_ & 0x00000400) != 0;
}
/**
* <code>optional string record_info = 425;</code>
* @return this
*/
public PlayerDetailInfo clearRecordInfo() {
bitField0_ &= ~0x00000400;
recordInfo.clear();
return this;
}
/**
* <code>optional string record_info = 425;</code>
* @return the recordInfo
*/
public String getRecordInfo() {
return recordInfo.getString();
}
/**
* <code>optional string record_info = 425;</code>
* @return internal {@code Utf8String} representation of recordInfo for reading
*/
public Utf8String getRecordInfoBytes() {
return this.recordInfo;
}
/**
* <code>optional string record_info = 425;</code>
* @return internal {@code Utf8String} representation of recordInfo for modifications
*/
public Utf8String getMutableRecordInfoBytes() {
bitField0_ |= 0x00000400;
return this.recordInfo;
}
/**
* <code>optional string record_info = 425;</code>
* @param value the recordInfo to set
* @return this
*/
public PlayerDetailInfo setRecordInfo(final CharSequence value) {
bitField0_ |= 0x00000400;
recordInfo.copyFrom(value);
return this;
}
/**
* <code>optional string record_info = 425;</code>
* @param value the recordInfo to set
* @return this
*/
public PlayerDetailInfo setRecordInfo(final Utf8String value) {
bitField0_ |= 0x00000400;
recordInfo.copyFrom(value);
return this;
}
@Override
public PlayerDetailInfo copyFrom(final PlayerDetailInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
int1 = other.int1;
uid = other.uid;
headIcon = other.headIcon;
worldLevel = other.worldLevel;
level = other.level;
platformType = other.platformType;
b1 = other.b1;
recordInfo.copyFrom(other.recordInfo);
displaySettings.copyFrom(other.displaySettings);
signature.copyFrom(other.signature);
nickname.copyFrom(other.nickname);
displayAvatarInfo.copyFrom(other.displayAvatarInfo);
recordInfo.copyFrom(other.recordInfo);
}
return this;
}
@@ -654,9 +553,6 @@ public final class PlayerDetailInfoOuterClass {
return this;
}
cachedSize = -1;
if (other.hasInt1()) {
setInt1(other.int1);
}
if (other.hasUid()) {
setUid(other.uid);
}
@@ -672,8 +568,11 @@ public final class PlayerDetailInfoOuterClass {
if (other.hasPlatformType()) {
setPlatformTypeValue(other.platformType);
}
if (other.hasB1()) {
setB1(other.b1);
if (other.hasRecordInfo()) {
getMutableRecordInfo().mergeFrom(other.recordInfo);
}
if (other.hasDisplaySettings()) {
getMutableDisplaySettings().mergeFrom(other.displaySettings);
}
if (other.hasSignature()) {
getMutableSignatureBytes().copyFrom(other.signature);
@@ -681,12 +580,6 @@ public final class PlayerDetailInfoOuterClass {
if (other.hasNickname()) {
getMutableNicknameBytes().copyFrom(other.nickname);
}
if (other.hasDisplayAvatarInfo()) {
getMutableDisplayAvatarInfoBytes().copyFrom(other.displayAvatarInfo);
}
if (other.hasRecordInfo()) {
getMutableRecordInfoBytes().copyFrom(other.recordInfo);
}
return this;
}
@@ -697,17 +590,15 @@ public final class PlayerDetailInfoOuterClass {
}
cachedSize = -1;
bitField0_ = 0;
int1 = 0;
uid = 0;
headIcon = 0;
worldLevel = 0;
level = 0;
platformType = 0;
b1 = false;
recordInfo.clear();
displaySettings.clear();
signature.clear();
nickname.clear();
displayAvatarInfo.clear();
recordInfo.clear();
return this;
}
@@ -718,10 +609,10 @@ public final class PlayerDetailInfoOuterClass {
}
cachedSize = -1;
bitField0_ = 0;
recordInfo.clearQuick();
displaySettings.clearQuick();
signature.clear();
nickname.clear();
displayAvatarInfo.clear();
recordInfo.clear();
return this;
}
@@ -735,48 +626,46 @@ public final class PlayerDetailInfoOuterClass {
}
PlayerDetailInfo other = (PlayerDetailInfo) o;
return bitField0_ == other.bitField0_
&& (!hasInt1() || int1 == other.int1)
&& (!hasUid() || uid == other.uid)
&& (!hasHeadIcon() || headIcon == other.headIcon)
&& (!hasWorldLevel() || worldLevel == other.worldLevel)
&& (!hasLevel() || level == other.level)
&& (!hasPlatformType() || platformType == other.platformType)
&& (!hasB1() || b1 == other.b1)
&& (!hasRecordInfo() || recordInfo.equals(other.recordInfo))
&& (!hasDisplaySettings() || displaySettings.equals(other.displaySettings))
&& (!hasSignature() || signature.equals(other.signature))
&& (!hasNickname() || nickname.equals(other.nickname))
&& (!hasDisplayAvatarInfo() || displayAvatarInfo.equals(other.displayAvatarInfo))
&& (!hasRecordInfo() || recordInfo.equals(other.recordInfo));
&& (!hasNickname() || nickname.equals(other.nickname));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeInt32NoTag(int1);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(uid);
}
if ((bitField0_ & 0x00000004) != 0) {
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(headIcon);
}
if ((bitField0_ & 0x00000008) != 0) {
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(worldLevel);
}
if ((bitField0_ & 0x00000010) != 0) {
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 80);
output.writeUInt32NoTag(level);
}
if ((bitField0_ & 0x00000020) != 0) {
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 120);
output.writeEnumNoTag(platformType);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 58);
output.writeMessageNoTag(recordInfo);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeRawByte((byte) 112);
output.writeBoolNoTag(b1);
output.writeRawLittleEndian16((short) 12202);
output.writeMessageNoTag(displaySettings);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeRawByte((byte) 26);
@@ -786,39 +675,31 @@ public final class PlayerDetailInfoOuterClass {
output.writeRawByte((byte) 34);
output.writeStringNoTag(nickname);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeRawByte((byte) 106);
output.writeStringNoTag(displayAvatarInfo);
}
if ((bitField0_ & 0x00000400) != 0) {
output.writeRawLittleEndian16((short) 6858);
output.writeStringNoTag(recordInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeInt32SizeNoTag(int1);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(uid);
}
if ((bitField0_ & 0x00000004) != 0) {
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon);
}
if ((bitField0_ & 0x00000008) != 0) {
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel);
}
if ((bitField0_ & 0x00000010) != 0) {
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
}
if ((bitField0_ & 0x00000020) != 0) {
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(platformType);
}
if ((bitField0_ & 0x00000020) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(recordInfo);
}
if ((bitField0_ & 0x00000040) != 0) {
size += 2;
size += 2 + ProtoSink.computeMessageSizeNoTag(displaySettings);
}
if ((bitField0_ & 0x00000080) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(signature);
@@ -826,12 +707,6 @@ public final class PlayerDetailInfoOuterClass {
if ((bitField0_ & 0x00000100) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(nickname);
}
if ((bitField0_ & 0x00000200) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(displayAvatarInfo);
}
if ((bitField0_ & 0x00000400) != 0) {
size += 2 + ProtoSink.computeStringSizeNoTag(recordInfo);
}
return size;
}
@@ -842,19 +717,10 @@ public final class PlayerDetailInfoOuterClass {
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// int1
int1 = input.readInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 40) {
break;
}
}
case 40: {
// uid
uid = input.readUInt32();
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 48) {
break;
@@ -863,7 +729,7 @@ public final class PlayerDetailInfoOuterClass {
case 48: {
// headIcon
headIcon = input.readUInt32();
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 72) {
break;
@@ -872,7 +738,7 @@ public final class PlayerDetailInfoOuterClass {
case 72: {
// worldLevel
worldLevel = input.readUInt32();
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 80) {
break;
@@ -881,7 +747,7 @@ public final class PlayerDetailInfoOuterClass {
case 80: {
// level
level = input.readUInt32();
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 120) {
break;
@@ -892,16 +758,25 @@ public final class PlayerDetailInfoOuterClass {
final int value = input.readInt32();
if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) {
platformType = value;
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000010;
}
tag = input.readTag();
if (tag != 112) {
if (tag != 58) {
break;
}
}
case 112: {
// b1
b1 = input.readBool();
case 58: {
// recordInfo
input.readMessage(recordInfo);
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 6058) {
break;
}
}
case 6058: {
// displaySettings
input.readMessage(displaySettings);
bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 26) {
@@ -922,24 +797,6 @@ public final class PlayerDetailInfoOuterClass {
input.readString(nickname);
bitField0_ |= 0x00000100;
tag = input.readTag();
if (tag != 106) {
break;
}
}
case 106: {
// displayAvatarInfo
input.readString(displayAvatarInfo);
bitField0_ |= 0x00000200;
tag = input.readTag();
if (tag != 3402) {
break;
}
}
case 3402: {
// recordInfo
input.readString(recordInfo);
bitField0_ |= 0x00000400;
tag = input.readTag();
if (tag != 0) {
break;
}
@@ -962,25 +819,25 @@ public final class PlayerDetailInfoOuterClass {
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeInt32(FieldNames.int1, int1);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.uid, uid);
}
if ((bitField0_ & 0x00000004) != 0) {
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.headIcon, headIcon);
}
if ((bitField0_ & 0x00000008) != 0) {
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.worldLevel, worldLevel);
}
if ((bitField0_ & 0x00000010) != 0) {
if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.level, level);
}
if ((bitField0_ & 0x00000020) != 0) {
if ((bitField0_ & 0x00000010) != 0) {
output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter());
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeMessage(FieldNames.recordInfo, recordInfo);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeBool(FieldNames.b1, b1);
output.writeMessage(FieldNames.displaySettings, displaySettings);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeString(FieldNames.signature, signature);
@@ -988,12 +845,6 @@ public final class PlayerDetailInfoOuterClass {
if ((bitField0_ & 0x00000100) != 0) {
output.writeString(FieldNames.nickname, nickname);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeString(FieldNames.displayAvatarInfo, displayAvatarInfo);
}
if ((bitField0_ & 0x00000400) != 0) {
output.writeString(FieldNames.recordInfo, recordInfo);
}
output.endObject();
}
@@ -1004,22 +855,11 @@ public final class PlayerDetailInfoOuterClass {
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 3237410: {
if (input.isAtField(FieldNames.int1)) {
if (!input.trySkipNullValue()) {
int1 = input.readInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 115792: {
if (input.isAtField(FieldNames.uid)) {
if (!input.trySkipNullValue()) {
uid = input.readUInt32();
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
@@ -1031,7 +871,7 @@ public final class PlayerDetailInfoOuterClass {
if (input.isAtField(FieldNames.headIcon)) {
if (!input.trySkipNullValue()) {
headIcon = input.readUInt32();
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
@@ -1043,7 +883,7 @@ public final class PlayerDetailInfoOuterClass {
if (input.isAtField(FieldNames.worldLevel)) {
if (!input.trySkipNullValue()) {
worldLevel = input.readUInt32();
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
@@ -1054,7 +894,7 @@ public final class PlayerDetailInfoOuterClass {
if (input.isAtField(FieldNames.level)) {
if (!input.trySkipNullValue()) {
level = input.readUInt32();
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -1068,7 +908,7 @@ public final class PlayerDetailInfoOuterClass {
final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter());
if (value != null) {
platformType = value.getNumber();
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000010;
} else {
input.skipUnknownEnumValue();
}
@@ -1078,10 +918,23 @@ public final class PlayerDetailInfoOuterClass {
}
break;
}
case 3087: {
if (input.isAtField(FieldNames.b1)) {
case 734573727:
case 1317125084: {
if (input.isAtField(FieldNames.recordInfo)) {
if (!input.trySkipNullValue()) {
b1 = input.readBool();
input.readMessage(recordInfo);
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
case 239490821:
case 1126534912: {
if (input.isAtField(FieldNames.displaySettings)) {
if (!input.trySkipNullValue()) {
input.readMessage(displaySettings);
bitField0_ |= 0x00000040;
}
} else {
@@ -1111,30 +964,6 @@ public final class PlayerDetailInfoOuterClass {
}
break;
}
case 2117840905:
case 245477335: {
if (input.isAtField(FieldNames.displayAvatarInfo)) {
if (!input.trySkipNullValue()) {
input.readString(displayAvatarInfo);
bitField0_ |= 0x00000200;
}
} else {
input.skipUnknownField();
}
break;
}
case 734573727:
case 1317125084: {
if (input.isAtField(FieldNames.recordInfo)) {
if (!input.trySkipNullValue()) {
input.readString(recordInfo);
bitField0_ |= 0x00000400;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
@@ -1188,8 +1017,6 @@ public final class PlayerDetailInfoOuterClass {
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName int1 = FieldName.forField("int1");
static final FieldName uid = FieldName.forField("uid");
static final FieldName headIcon = FieldName.forField("headIcon", "head_icon");
@@ -1200,15 +1027,13 @@ public final class PlayerDetailInfoOuterClass {
static final FieldName platformType = FieldName.forField("platformType", "platform_type");
static final FieldName b1 = FieldName.forField("b1");
static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info");
static final FieldName displaySettings = FieldName.forField("displaySettings", "display_settings");
static final FieldName signature = FieldName.forField("signature");
static final FieldName nickname = FieldName.forField("nickname");
static final FieldName displayAvatarInfo = FieldName.forField("displayAvatarInfo", "display_avatar_info");
static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info");
}
}
}

View File

@@ -0,0 +1,693 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class PlayerDisplaySettingsOuterClass {
/**
* Protobuf type {@code PlayerDisplaySettings}
*/
public static final class PlayerDisplaySettings extends ProtoMessage<PlayerDisplaySettings> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .DisplayRecordType NENFHJDADJA = 5;</code>
*/
private int nENFHJDADJA;
/**
* <code>optional bool OOAJONLNOKC = 1;</code>
*/
private boolean oOAJONLNOKC;
/**
* <code>optional bool BKFKEAOKJIC = 4;</code>
*/
private boolean bKFKEAOKJIC;
/**
* <code>optional bool KAMIFJJEHJO = 10;</code>
*/
private boolean kAMIFJJEHJO;
/**
* <code>optional bool ACEOIOACIJO = 11;</code>
*/
private boolean aCEOIOACIJO;
/**
* <code>optional bool DADJOGHHEDE = 14;</code>
*/
private boolean dADJOGHHEDE;
private PlayerDisplaySettings() {
}
/**
* @return a new empty instance of {@code PlayerDisplaySettings}
*/
public static PlayerDisplaySettings newInstance() {
return new PlayerDisplaySettings();
}
/**
* <code>optional .DisplayRecordType NENFHJDADJA = 5;</code>
* @return whether the nENFHJDADJA field is set
*/
public boolean hasNENFHJDADJA() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .DisplayRecordType NENFHJDADJA = 5;</code>
* @return this
*/
public PlayerDisplaySettings clearNENFHJDADJA() {
bitField0_ &= ~0x00000001;
nENFHJDADJA = 0;
return this;
}
/**
* <code>optional .DisplayRecordType NENFHJDADJA = 5;</code>
* @return the nENFHJDADJA
*/
public DisplayRecordTypeOuterClass.DisplayRecordType getNENFHJDADJA() {
return DisplayRecordTypeOuterClass.DisplayRecordType.forNumber(nENFHJDADJA);
}
/**
* Gets the value of the internal enum store. The result is
* equivalent to {@link PlayerDisplaySettings#getNENFHJDADJA()}.getNumber().
*
* @return numeric wire representation
*/
public int getNENFHJDADJAValue() {
return nENFHJDADJA;
}
/**
* Sets the value of the internal enum store. This does not
* do any validity checks, so be sure to use appropriate value
* constants from {@link DisplayRecordTypeOuterClass.DisplayRecordType}. Setting an invalid value
* can cause {@link PlayerDisplaySettings#getNENFHJDADJA()} to return null
*
* @param value the numeric wire value to set
* @return this
*/
public PlayerDisplaySettings setNENFHJDADJAValue(final int value) {
bitField0_ |= 0x00000001;
nENFHJDADJA = value;
return this;
}
/**
* <code>optional .DisplayRecordType NENFHJDADJA = 5;</code>
* @param value the nENFHJDADJA to set
* @return this
*/
public PlayerDisplaySettings setNENFHJDADJA(
final DisplayRecordTypeOuterClass.DisplayRecordType value) {
bitField0_ |= 0x00000001;
nENFHJDADJA = value.getNumber();
return this;
}
/**
* <code>optional bool OOAJONLNOKC = 1;</code>
* @return whether the oOAJONLNOKC field is set
*/
public boolean hasOOAJONLNOKC() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bool OOAJONLNOKC = 1;</code>
* @return this
*/
public PlayerDisplaySettings clearOOAJONLNOKC() {
bitField0_ &= ~0x00000002;
oOAJONLNOKC = false;
return this;
}
/**
* <code>optional bool OOAJONLNOKC = 1;</code>
* @return the oOAJONLNOKC
*/
public boolean getOOAJONLNOKC() {
return oOAJONLNOKC;
}
/**
* <code>optional bool OOAJONLNOKC = 1;</code>
* @param value the oOAJONLNOKC to set
* @return this
*/
public PlayerDisplaySettings setOOAJONLNOKC(final boolean value) {
bitField0_ |= 0x00000002;
oOAJONLNOKC = value;
return this;
}
/**
* <code>optional bool BKFKEAOKJIC = 4;</code>
* @return whether the bKFKEAOKJIC field is set
*/
public boolean hasBKFKEAOKJIC() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional bool BKFKEAOKJIC = 4;</code>
* @return this
*/
public PlayerDisplaySettings clearBKFKEAOKJIC() {
bitField0_ &= ~0x00000004;
bKFKEAOKJIC = false;
return this;
}
/**
* <code>optional bool BKFKEAOKJIC = 4;</code>
* @return the bKFKEAOKJIC
*/
public boolean getBKFKEAOKJIC() {
return bKFKEAOKJIC;
}
/**
* <code>optional bool BKFKEAOKJIC = 4;</code>
* @param value the bKFKEAOKJIC to set
* @return this
*/
public PlayerDisplaySettings setBKFKEAOKJIC(final boolean value) {
bitField0_ |= 0x00000004;
bKFKEAOKJIC = value;
return this;
}
/**
* <code>optional bool KAMIFJJEHJO = 10;</code>
* @return whether the kAMIFJJEHJO field is set
*/
public boolean hasKAMIFJJEHJO() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional bool KAMIFJJEHJO = 10;</code>
* @return this
*/
public PlayerDisplaySettings clearKAMIFJJEHJO() {
bitField0_ &= ~0x00000008;
kAMIFJJEHJO = false;
return this;
}
/**
* <code>optional bool KAMIFJJEHJO = 10;</code>
* @return the kAMIFJJEHJO
*/
public boolean getKAMIFJJEHJO() {
return kAMIFJJEHJO;
}
/**
* <code>optional bool KAMIFJJEHJO = 10;</code>
* @param value the kAMIFJJEHJO to set
* @return this
*/
public PlayerDisplaySettings setKAMIFJJEHJO(final boolean value) {
bitField0_ |= 0x00000008;
kAMIFJJEHJO = value;
return this;
}
/**
* <code>optional bool ACEOIOACIJO = 11;</code>
* @return whether the aCEOIOACIJO field is set
*/
public boolean hasACEOIOACIJO() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional bool ACEOIOACIJO = 11;</code>
* @return this
*/
public PlayerDisplaySettings clearACEOIOACIJO() {
bitField0_ &= ~0x00000010;
aCEOIOACIJO = false;
return this;
}
/**
* <code>optional bool ACEOIOACIJO = 11;</code>
* @return the aCEOIOACIJO
*/
public boolean getACEOIOACIJO() {
return aCEOIOACIJO;
}
/**
* <code>optional bool ACEOIOACIJO = 11;</code>
* @param value the aCEOIOACIJO to set
* @return this
*/
public PlayerDisplaySettings setACEOIOACIJO(final boolean value) {
bitField0_ |= 0x00000010;
aCEOIOACIJO = value;
return this;
}
/**
* <code>optional bool DADJOGHHEDE = 14;</code>
* @return whether the dADJOGHHEDE field is set
*/
public boolean hasDADJOGHHEDE() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>optional bool DADJOGHHEDE = 14;</code>
* @return this
*/
public PlayerDisplaySettings clearDADJOGHHEDE() {
bitField0_ &= ~0x00000020;
dADJOGHHEDE = false;
return this;
}
/**
* <code>optional bool DADJOGHHEDE = 14;</code>
* @return the dADJOGHHEDE
*/
public boolean getDADJOGHHEDE() {
return dADJOGHHEDE;
}
/**
* <code>optional bool DADJOGHHEDE = 14;</code>
* @param value the dADJOGHHEDE to set
* @return this
*/
public PlayerDisplaySettings setDADJOGHHEDE(final boolean value) {
bitField0_ |= 0x00000020;
dADJOGHHEDE = value;
return this;
}
@Override
public PlayerDisplaySettings copyFrom(final PlayerDisplaySettings other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
nENFHJDADJA = other.nENFHJDADJA;
oOAJONLNOKC = other.oOAJONLNOKC;
bKFKEAOKJIC = other.bKFKEAOKJIC;
kAMIFJJEHJO = other.kAMIFJJEHJO;
aCEOIOACIJO = other.aCEOIOACIJO;
dADJOGHHEDE = other.dADJOGHHEDE;
}
return this;
}
@Override
public PlayerDisplaySettings mergeFrom(final PlayerDisplaySettings other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasNENFHJDADJA()) {
setNENFHJDADJAValue(other.nENFHJDADJA);
}
if (other.hasOOAJONLNOKC()) {
setOOAJONLNOKC(other.oOAJONLNOKC);
}
if (other.hasBKFKEAOKJIC()) {
setBKFKEAOKJIC(other.bKFKEAOKJIC);
}
if (other.hasKAMIFJJEHJO()) {
setKAMIFJJEHJO(other.kAMIFJJEHJO);
}
if (other.hasACEOIOACIJO()) {
setACEOIOACIJO(other.aCEOIOACIJO);
}
if (other.hasDADJOGHHEDE()) {
setDADJOGHHEDE(other.dADJOGHHEDE);
}
return this;
}
@Override
public PlayerDisplaySettings clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nENFHJDADJA = 0;
oOAJONLNOKC = false;
bKFKEAOKJIC = false;
kAMIFJJEHJO = false;
aCEOIOACIJO = false;
dADJOGHHEDE = false;
return this;
}
@Override
public PlayerDisplaySettings clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PlayerDisplaySettings)) {
return false;
}
PlayerDisplaySettings other = (PlayerDisplaySettings) o;
return bitField0_ == other.bitField0_
&& (!hasNENFHJDADJA() || nENFHJDADJA == other.nENFHJDADJA)
&& (!hasOOAJONLNOKC() || oOAJONLNOKC == other.oOAJONLNOKC)
&& (!hasBKFKEAOKJIC() || bKFKEAOKJIC == other.bKFKEAOKJIC)
&& (!hasKAMIFJJEHJO() || kAMIFJJEHJO == other.kAMIFJJEHJO)
&& (!hasACEOIOACIJO() || aCEOIOACIJO == other.aCEOIOACIJO)
&& (!hasDADJOGHHEDE() || dADJOGHHEDE == other.dADJOGHHEDE);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 40);
output.writeEnumNoTag(nENFHJDADJA);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 8);
output.writeBoolNoTag(oOAJONLNOKC);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 32);
output.writeBoolNoTag(bKFKEAOKJIC);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 80);
output.writeBoolNoTag(kAMIFJJEHJO);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 88);
output.writeBoolNoTag(aCEOIOACIJO);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 112);
output.writeBoolNoTag(dADJOGHHEDE);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(nENFHJDADJA);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000020) != 0) {
size += 2;
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PlayerDisplaySettings mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 40: {
// nENFHJDADJA
final int value = input.readInt32();
if (DisplayRecordTypeOuterClass.DisplayRecordType.forNumber(value) != null) {
nENFHJDADJA = value;
bitField0_ |= 0x00000001;
}
tag = input.readTag();
if (tag != 8) {
break;
}
}
case 8: {
// oOAJONLNOKC
oOAJONLNOKC = input.readBool();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// bKFKEAOKJIC
bKFKEAOKJIC = input.readBool();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 80) {
break;
}
}
case 80: {
// kAMIFJJEHJO
kAMIFJJEHJO = input.readBool();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 88) {
break;
}
}
case 88: {
// aCEOIOACIJO
aCEOIOACIJO = input.readBool();
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 112) {
break;
}
}
case 112: {
// dADJOGHHEDE
dADJOGHHEDE = input.readBool();
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeEnum(FieldNames.nENFHJDADJA, nENFHJDADJA, DisplayRecordTypeOuterClass.DisplayRecordType.converter());
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBool(FieldNames.oOAJONLNOKC, oOAJONLNOKC);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBool(FieldNames.bKFKEAOKJIC, bKFKEAOKJIC);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBool(FieldNames.kAMIFJJEHJO, kAMIFJJEHJO);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBool(FieldNames.aCEOIOACIJO, aCEOIOACIJO);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeBool(FieldNames.dADJOGHHEDE, dADJOGHHEDE);
}
output.endObject();
}
@Override
public PlayerDisplaySettings mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 751445645: {
if (input.isAtField(FieldNames.nENFHJDADJA)) {
if (!input.trySkipNullValue()) {
final DisplayRecordTypeOuterClass.DisplayRecordType value = input.readEnum(DisplayRecordTypeOuterClass.DisplayRecordType.converter());
if (value != null) {
nENFHJDADJA = value.getNumber();
bitField0_ |= 0x00000001;
} else {
input.skipUnknownEnumValue();
}
}
} else {
input.skipUnknownField();
}
break;
}
case -567401347: {
if (input.isAtField(FieldNames.oOAJONLNOKC)) {
if (!input.trySkipNullValue()) {
oOAJONLNOKC = input.readBool();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1549915682: {
if (input.isAtField(FieldNames.bKFKEAOKJIC)) {
if (!input.trySkipNullValue()) {
bKFKEAOKJIC = input.readBool();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -690005892: {
if (input.isAtField(FieldNames.kAMIFJJEHJO)) {
if (!input.trySkipNullValue()) {
kAMIFJJEHJO = input.readBool();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case 1650591930: {
if (input.isAtField(FieldNames.aCEOIOACIJO)) {
if (!input.trySkipNullValue()) {
aCEOIOACIJO = input.readBool();
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case -856266613: {
if (input.isAtField(FieldNames.dADJOGHHEDE)) {
if (!input.trySkipNullValue()) {
dADJOGHHEDE = input.readBool();
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PlayerDisplaySettings clone() {
return new PlayerDisplaySettings().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PlayerDisplaySettings parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PlayerDisplaySettings(), data).checkInitialized();
}
public static PlayerDisplaySettings parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new PlayerDisplaySettings(), input).checkInitialized();
}
public static PlayerDisplaySettings parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new PlayerDisplaySettings(), input).checkInitialized();
}
/**
* @return factory for creating PlayerDisplaySettings messages
*/
public static MessageFactory<PlayerDisplaySettings> getFactory() {
return PlayerDisplaySettingsFactory.INSTANCE;
}
private enum PlayerDisplaySettingsFactory implements MessageFactory<PlayerDisplaySettings> {
INSTANCE;
@Override
public PlayerDisplaySettings create() {
return PlayerDisplaySettings.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName nENFHJDADJA = FieldName.forField("NENFHJDADJA");
static final FieldName oOAJONLNOKC = FieldName.forField("OOAJONLNOKC");
static final FieldName bKFKEAOKJIC = FieldName.forField("BKFKEAOKJIC");
static final FieldName kAMIFJJEHJO = FieldName.forField("KAMIFJJEHJO");
static final FieldName aCEOIOACIJO = FieldName.forField("ACEOIOACIJO");
static final FieldName dADJOGHHEDE = FieldName.forField("DADJOGHHEDE");
}
}
}

View File

@@ -0,0 +1,922 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class PlayerRecordInfoOuterClass {
/**
* Protobuf type {@code PlayerRecordInfo}
*/
public static final class PlayerRecordInfo extends ProtoMessage<PlayerRecordInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 GBNLDJIPEEK = 1;</code>
*/
private int gBNLDJIPEEK;
/**
* <code>optional uint32 FKBLOGEAFJJ = 2;</code>
*/
private int fKBLOGEAFJJ;
/**
* <code>optional uint32 GDHMMFELCDH = 3;</code>
*/
private int gDHMMFELCDH;
/**
* <code>optional uint32 MODAPIGJNNJ = 5;</code>
*/
private int mODAPIGJNNJ;
/**
* <code>optional uint32 HFJEBEENDDH = 7;</code>
*/
private int hFJEBEENDDH;
/**
* <code>optional uint32 KOKKGADOAGL = 12;</code>
*/
private int kOKKGADOAGL;
/**
* <code>optional uint32 ODLMOCDBJHP = 13;</code>
*/
private int oDLMOCDBJHP;
/**
* <code>optional uint32 NDKOPEJBGAE = 15;</code>
*/
private int nDKOPEJBGAE;
/**
* <code>optional .PlayerCollectionInfo collection_info = 4;</code>
*/
private final PlayerCollectionInfoOuterClass.PlayerCollectionInfo collectionInfo = PlayerCollectionInfoOuterClass.PlayerCollectionInfo.newInstance();
private PlayerRecordInfo() {
}
/**
* @return a new empty instance of {@code PlayerRecordInfo}
*/
public static PlayerRecordInfo newInstance() {
return new PlayerRecordInfo();
}
/**
* <code>optional uint32 GBNLDJIPEEK = 1;</code>
* @return whether the gBNLDJIPEEK field is set
*/
public boolean hasGBNLDJIPEEK() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 GBNLDJIPEEK = 1;</code>
* @return this
*/
public PlayerRecordInfo clearGBNLDJIPEEK() {
bitField0_ &= ~0x00000001;
gBNLDJIPEEK = 0;
return this;
}
/**
* <code>optional uint32 GBNLDJIPEEK = 1;</code>
* @return the gBNLDJIPEEK
*/
public int getGBNLDJIPEEK() {
return gBNLDJIPEEK;
}
/**
* <code>optional uint32 GBNLDJIPEEK = 1;</code>
* @param value the gBNLDJIPEEK to set
* @return this
*/
public PlayerRecordInfo setGBNLDJIPEEK(final int value) {
bitField0_ |= 0x00000001;
gBNLDJIPEEK = value;
return this;
}
/**
* <code>optional uint32 FKBLOGEAFJJ = 2;</code>
* @return whether the fKBLOGEAFJJ field is set
*/
public boolean hasFKBLOGEAFJJ() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 FKBLOGEAFJJ = 2;</code>
* @return this
*/
public PlayerRecordInfo clearFKBLOGEAFJJ() {
bitField0_ &= ~0x00000002;
fKBLOGEAFJJ = 0;
return this;
}
/**
* <code>optional uint32 FKBLOGEAFJJ = 2;</code>
* @return the fKBLOGEAFJJ
*/
public int getFKBLOGEAFJJ() {
return fKBLOGEAFJJ;
}
/**
* <code>optional uint32 FKBLOGEAFJJ = 2;</code>
* @param value the fKBLOGEAFJJ to set
* @return this
*/
public PlayerRecordInfo setFKBLOGEAFJJ(final int value) {
bitField0_ |= 0x00000002;
fKBLOGEAFJJ = value;
return this;
}
/**
* <code>optional uint32 GDHMMFELCDH = 3;</code>
* @return whether the gDHMMFELCDH field is set
*/
public boolean hasGDHMMFELCDH() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 GDHMMFELCDH = 3;</code>
* @return this
*/
public PlayerRecordInfo clearGDHMMFELCDH() {
bitField0_ &= ~0x00000004;
gDHMMFELCDH = 0;
return this;
}
/**
* <code>optional uint32 GDHMMFELCDH = 3;</code>
* @return the gDHMMFELCDH
*/
public int getGDHMMFELCDH() {
return gDHMMFELCDH;
}
/**
* <code>optional uint32 GDHMMFELCDH = 3;</code>
* @param value the gDHMMFELCDH to set
* @return this
*/
public PlayerRecordInfo setGDHMMFELCDH(final int value) {
bitField0_ |= 0x00000004;
gDHMMFELCDH = value;
return this;
}
/**
* <code>optional uint32 MODAPIGJNNJ = 5;</code>
* @return whether the mODAPIGJNNJ field is set
*/
public boolean hasMODAPIGJNNJ() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 MODAPIGJNNJ = 5;</code>
* @return this
*/
public PlayerRecordInfo clearMODAPIGJNNJ() {
bitField0_ &= ~0x00000008;
mODAPIGJNNJ = 0;
return this;
}
/**
* <code>optional uint32 MODAPIGJNNJ = 5;</code>
* @return the mODAPIGJNNJ
*/
public int getMODAPIGJNNJ() {
return mODAPIGJNNJ;
}
/**
* <code>optional uint32 MODAPIGJNNJ = 5;</code>
* @param value the mODAPIGJNNJ to set
* @return this
*/
public PlayerRecordInfo setMODAPIGJNNJ(final int value) {
bitField0_ |= 0x00000008;
mODAPIGJNNJ = value;
return this;
}
/**
* <code>optional uint32 HFJEBEENDDH = 7;</code>
* @return whether the hFJEBEENDDH field is set
*/
public boolean hasHFJEBEENDDH() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional uint32 HFJEBEENDDH = 7;</code>
* @return this
*/
public PlayerRecordInfo clearHFJEBEENDDH() {
bitField0_ &= ~0x00000010;
hFJEBEENDDH = 0;
return this;
}
/**
* <code>optional uint32 HFJEBEENDDH = 7;</code>
* @return the hFJEBEENDDH
*/
public int getHFJEBEENDDH() {
return hFJEBEENDDH;
}
/**
* <code>optional uint32 HFJEBEENDDH = 7;</code>
* @param value the hFJEBEENDDH to set
* @return this
*/
public PlayerRecordInfo setHFJEBEENDDH(final int value) {
bitField0_ |= 0x00000010;
hFJEBEENDDH = value;
return this;
}
/**
* <code>optional uint32 KOKKGADOAGL = 12;</code>
* @return whether the kOKKGADOAGL field is set
*/
public boolean hasKOKKGADOAGL() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>optional uint32 KOKKGADOAGL = 12;</code>
* @return this
*/
public PlayerRecordInfo clearKOKKGADOAGL() {
bitField0_ &= ~0x00000020;
kOKKGADOAGL = 0;
return this;
}
/**
* <code>optional uint32 KOKKGADOAGL = 12;</code>
* @return the kOKKGADOAGL
*/
public int getKOKKGADOAGL() {
return kOKKGADOAGL;
}
/**
* <code>optional uint32 KOKKGADOAGL = 12;</code>
* @param value the kOKKGADOAGL to set
* @return this
*/
public PlayerRecordInfo setKOKKGADOAGL(final int value) {
bitField0_ |= 0x00000020;
kOKKGADOAGL = value;
return this;
}
/**
* <code>optional uint32 ODLMOCDBJHP = 13;</code>
* @return whether the oDLMOCDBJHP field is set
*/
public boolean hasODLMOCDBJHP() {
return (bitField0_ & 0x00000040) != 0;
}
/**
* <code>optional uint32 ODLMOCDBJHP = 13;</code>
* @return this
*/
public PlayerRecordInfo clearODLMOCDBJHP() {
bitField0_ &= ~0x00000040;
oDLMOCDBJHP = 0;
return this;
}
/**
* <code>optional uint32 ODLMOCDBJHP = 13;</code>
* @return the oDLMOCDBJHP
*/
public int getODLMOCDBJHP() {
return oDLMOCDBJHP;
}
/**
* <code>optional uint32 ODLMOCDBJHP = 13;</code>
* @param value the oDLMOCDBJHP to set
* @return this
*/
public PlayerRecordInfo setODLMOCDBJHP(final int value) {
bitField0_ |= 0x00000040;
oDLMOCDBJHP = value;
return this;
}
/**
* <code>optional uint32 NDKOPEJBGAE = 15;</code>
* @return whether the nDKOPEJBGAE field is set
*/
public boolean hasNDKOPEJBGAE() {
return (bitField0_ & 0x00000080) != 0;
}
/**
* <code>optional uint32 NDKOPEJBGAE = 15;</code>
* @return this
*/
public PlayerRecordInfo clearNDKOPEJBGAE() {
bitField0_ &= ~0x00000080;
nDKOPEJBGAE = 0;
return this;
}
/**
* <code>optional uint32 NDKOPEJBGAE = 15;</code>
* @return the nDKOPEJBGAE
*/
public int getNDKOPEJBGAE() {
return nDKOPEJBGAE;
}
/**
* <code>optional uint32 NDKOPEJBGAE = 15;</code>
* @param value the nDKOPEJBGAE to set
* @return this
*/
public PlayerRecordInfo setNDKOPEJBGAE(final int value) {
bitField0_ |= 0x00000080;
nDKOPEJBGAE = value;
return this;
}
/**
* <code>optional .PlayerCollectionInfo collection_info = 4;</code>
* @return whether the collectionInfo field is set
*/
public boolean hasCollectionInfo() {
return (bitField0_ & 0x00000100) != 0;
}
/**
* <code>optional .PlayerCollectionInfo collection_info = 4;</code>
* @return this
*/
public PlayerRecordInfo clearCollectionInfo() {
bitField0_ &= ~0x00000100;
collectionInfo.clear();
return this;
}
/**
* <code>optional .PlayerCollectionInfo collection_info = 4;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableCollectionInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public PlayerCollectionInfoOuterClass.PlayerCollectionInfo getCollectionInfo() {
return collectionInfo;
}
/**
* <code>optional .PlayerCollectionInfo collection_info = 4;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public PlayerCollectionInfoOuterClass.PlayerCollectionInfo getMutableCollectionInfo() {
bitField0_ |= 0x00000100;
return collectionInfo;
}
/**
* <code>optional .PlayerCollectionInfo collection_info = 4;</code>
* @param value the collectionInfo to set
* @return this
*/
public PlayerRecordInfo setCollectionInfo(
final PlayerCollectionInfoOuterClass.PlayerCollectionInfo value) {
bitField0_ |= 0x00000100;
collectionInfo.copyFrom(value);
return this;
}
@Override
public PlayerRecordInfo copyFrom(final PlayerRecordInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
gBNLDJIPEEK = other.gBNLDJIPEEK;
fKBLOGEAFJJ = other.fKBLOGEAFJJ;
gDHMMFELCDH = other.gDHMMFELCDH;
mODAPIGJNNJ = other.mODAPIGJNNJ;
hFJEBEENDDH = other.hFJEBEENDDH;
kOKKGADOAGL = other.kOKKGADOAGL;
oDLMOCDBJHP = other.oDLMOCDBJHP;
nDKOPEJBGAE = other.nDKOPEJBGAE;
collectionInfo.copyFrom(other.collectionInfo);
}
return this;
}
@Override
public PlayerRecordInfo mergeFrom(final PlayerRecordInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasGBNLDJIPEEK()) {
setGBNLDJIPEEK(other.gBNLDJIPEEK);
}
if (other.hasFKBLOGEAFJJ()) {
setFKBLOGEAFJJ(other.fKBLOGEAFJJ);
}
if (other.hasGDHMMFELCDH()) {
setGDHMMFELCDH(other.gDHMMFELCDH);
}
if (other.hasMODAPIGJNNJ()) {
setMODAPIGJNNJ(other.mODAPIGJNNJ);
}
if (other.hasHFJEBEENDDH()) {
setHFJEBEENDDH(other.hFJEBEENDDH);
}
if (other.hasKOKKGADOAGL()) {
setKOKKGADOAGL(other.kOKKGADOAGL);
}
if (other.hasODLMOCDBJHP()) {
setODLMOCDBJHP(other.oDLMOCDBJHP);
}
if (other.hasNDKOPEJBGAE()) {
setNDKOPEJBGAE(other.nDKOPEJBGAE);
}
if (other.hasCollectionInfo()) {
getMutableCollectionInfo().mergeFrom(other.collectionInfo);
}
return this;
}
@Override
public PlayerRecordInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
gBNLDJIPEEK = 0;
fKBLOGEAFJJ = 0;
gDHMMFELCDH = 0;
mODAPIGJNNJ = 0;
hFJEBEENDDH = 0;
kOKKGADOAGL = 0;
oDLMOCDBJHP = 0;
nDKOPEJBGAE = 0;
collectionInfo.clear();
return this;
}
@Override
public PlayerRecordInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
collectionInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof PlayerRecordInfo)) {
return false;
}
PlayerRecordInfo other = (PlayerRecordInfo) o;
return bitField0_ == other.bitField0_
&& (!hasGBNLDJIPEEK() || gBNLDJIPEEK == other.gBNLDJIPEEK)
&& (!hasFKBLOGEAFJJ() || fKBLOGEAFJJ == other.fKBLOGEAFJJ)
&& (!hasGDHMMFELCDH() || gDHMMFELCDH == other.gDHMMFELCDH)
&& (!hasMODAPIGJNNJ() || mODAPIGJNNJ == other.mODAPIGJNNJ)
&& (!hasHFJEBEENDDH() || hFJEBEENDDH == other.hFJEBEENDDH)
&& (!hasKOKKGADOAGL() || kOKKGADOAGL == other.kOKKGADOAGL)
&& (!hasODLMOCDBJHP() || oDLMOCDBJHP == other.oDLMOCDBJHP)
&& (!hasNDKOPEJBGAE() || nDKOPEJBGAE == other.nDKOPEJBGAE)
&& (!hasCollectionInfo() || collectionInfo.equals(other.collectionInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(gBNLDJIPEEK);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(fKBLOGEAFJJ);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(gDHMMFELCDH);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(mODAPIGJNNJ);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 56);
output.writeUInt32NoTag(hFJEBEENDDH);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 96);
output.writeUInt32NoTag(kOKKGADOAGL);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(oDLMOCDBJHP);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeRawByte((byte) 120);
output.writeUInt32NoTag(nDKOPEJBGAE);
}
if ((bitField0_ & 0x00000100) != 0) {
output.writeRawByte((byte) 34);
output.writeMessageNoTag(collectionInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(gBNLDJIPEEK);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(fKBLOGEAFJJ);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(gDHMMFELCDH);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(mODAPIGJNNJ);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(hFJEBEENDDH);
}
if ((bitField0_ & 0x00000020) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(kOKKGADOAGL);
}
if ((bitField0_ & 0x00000040) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(oDLMOCDBJHP);
}
if ((bitField0_ & 0x00000080) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(nDKOPEJBGAE);
}
if ((bitField0_ & 0x00000100) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(collectionInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public PlayerRecordInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// gBNLDJIPEEK
gBNLDJIPEEK = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16) {
break;
}
}
case 16: {
// fKBLOGEAFJJ
fKBLOGEAFJJ = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// gDHMMFELCDH
gDHMMFELCDH = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 40) {
break;
}
}
case 40: {
// mODAPIGJNNJ
mODAPIGJNNJ = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 56) {
break;
}
}
case 56: {
// hFJEBEENDDH
hFJEBEENDDH = input.readUInt32();
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 96) {
break;
}
}
case 96: {
// kOKKGADOAGL
kOKKGADOAGL = input.readUInt32();
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 104) {
break;
}
}
case 104: {
// oDLMOCDBJHP
oDLMOCDBJHP = input.readUInt32();
bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 120) {
break;
}
}
case 120: {
// nDKOPEJBGAE
nDKOPEJBGAE = input.readUInt32();
bitField0_ |= 0x00000080;
tag = input.readTag();
if (tag != 34) {
break;
}
}
case 34: {
// collectionInfo
input.readMessage(collectionInfo);
bitField0_ |= 0x00000100;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.gBNLDJIPEEK, gBNLDJIPEEK);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.fKBLOGEAFJJ, fKBLOGEAFJJ);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.gDHMMFELCDH, gDHMMFELCDH);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.mODAPIGJNNJ, mODAPIGJNNJ);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeUInt32(FieldNames.hFJEBEENDDH, hFJEBEENDDH);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeUInt32(FieldNames.kOKKGADOAGL, kOKKGADOAGL);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeUInt32(FieldNames.oDLMOCDBJHP, oDLMOCDBJHP);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeUInt32(FieldNames.nDKOPEJBGAE, nDKOPEJBGAE);
}
if ((bitField0_ & 0x00000100) != 0) {
output.writeMessage(FieldNames.collectionInfo, collectionInfo);
}
output.endObject();
}
@Override
public PlayerRecordInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -643278235: {
if (input.isAtField(FieldNames.gBNLDJIPEEK)) {
if (!input.trySkipNullValue()) {
gBNLDJIPEEK = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 682247267: {
if (input.isAtField(FieldNames.fKBLOGEAFJJ)) {
if (!input.trySkipNullValue()) {
fKBLOGEAFJJ = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -2054403291: {
if (input.isAtField(FieldNames.gDHMMFELCDH)) {
if (!input.trySkipNullValue()) {
gDHMMFELCDH = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -161665553: {
if (input.isAtField(FieldNames.mODAPIGJNNJ)) {
if (!input.trySkipNullValue()) {
mODAPIGJNNJ = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case -1528111293: {
if (input.isAtField(FieldNames.hFJEBEENDDH)) {
if (!input.trySkipNullValue()) {
hFJEBEENDDH = input.readUInt32();
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case -11041379: {
if (input.isAtField(FieldNames.kOKKGADOAGL)) {
if (!input.trySkipNullValue()) {
kOKKGADOAGL = input.readUInt32();
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
case -497090198: {
if (input.isAtField(FieldNames.oDLMOCDBJHP)) {
if (!input.trySkipNullValue()) {
oDLMOCDBJHP = input.readUInt32();
bitField0_ |= 0x00000040;
}
} else {
input.skipUnknownField();
}
break;
}
case -1046698300: {
if (input.isAtField(FieldNames.nDKOPEJBGAE)) {
if (!input.trySkipNullValue()) {
nDKOPEJBGAE = input.readUInt32();
bitField0_ |= 0x00000080;
}
} else {
input.skipUnknownField();
}
break;
}
case 310642796:
case 1060168111: {
if (input.isAtField(FieldNames.collectionInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(collectionInfo);
bitField0_ |= 0x00000100;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public PlayerRecordInfo clone() {
return new PlayerRecordInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static PlayerRecordInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new PlayerRecordInfo(), data).checkInitialized();
}
public static PlayerRecordInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new PlayerRecordInfo(), input).checkInitialized();
}
public static PlayerRecordInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new PlayerRecordInfo(), input).checkInitialized();
}
/**
* @return factory for creating PlayerRecordInfo messages
*/
public static MessageFactory<PlayerRecordInfo> getFactory() {
return PlayerRecordInfoFactory.INSTANCE;
}
private enum PlayerRecordInfoFactory implements MessageFactory<PlayerRecordInfo> {
INSTANCE;
@Override
public PlayerRecordInfo create() {
return PlayerRecordInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName gBNLDJIPEEK = FieldName.forField("GBNLDJIPEEK");
static final FieldName fKBLOGEAFJJ = FieldName.forField("FKBLOGEAFJJ");
static final FieldName gDHMMFELCDH = FieldName.forField("GDHMMFELCDH");
static final FieldName mODAPIGJNNJ = FieldName.forField("MODAPIGJNNJ");
static final FieldName hFJEBEENDDH = FieldName.forField("HFJEBEENDDH");
static final FieldName kOKKGADOAGL = FieldName.forField("KOKKGADOAGL");
static final FieldName oDLMOCDBJHP = FieldName.forField("ODLMOCDBJHP");
static final FieldName nDKOPEJBGAE = FieldName.forField("NDKOPEJBGAE");
static final FieldName collectionInfo = FieldName.forField("collectionInfo", "collection_info");
}
}
}

View File

@@ -933,9 +933,11 @@ public class Player implements Tickable {
.setLevel(this.getLevel())
.setWorldLevel(this.getWorldLevel())
.setPlatformType(PlatformType.PC)
.setRecordInfo("")
.setHeadIcon(this.getHeadIcon());
proto.getMutableRecordInfo().getMutableCollectionInfo();
proto.getMutableDisplaySettings();
return proto;
}