fix some events (most events are available)

This commit is contained in:
Somebody 2024-02-03 21:50:03 +08:00 committed by Melledy
parent c079e17070
commit 4f49d996b1
60 changed files with 21255 additions and 15 deletions

View File

@ -0,0 +1,400 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueAvatarInfoOuterClass {
/**
* Protobuf type {@code ChessRogueAvatarInfo}
*/
public static final class ChessRogueAvatarInfo extends ProtoMessage<ChessRogueAvatarInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .RogueAvatarReviveCost revive_cost = 15;</code>
*/
private final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost reviveCost = RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost.newInstance();
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</code>
*/
private final RepeatedMessage<ChessRogueAvatarOuterClass.ChessRogueAvatar> chessRogueAvatar = RepeatedMessage.newEmptyInstance(ChessRogueAvatarOuterClass.ChessRogueAvatar.getFactory());
private ChessRogueAvatarInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueAvatarInfo}
*/
public static ChessRogueAvatarInfo newInstance() {
return new ChessRogueAvatarInfo();
}
/**
* <code>optional .RogueAvatarReviveCost revive_cost = 15;</code>
* @return whether the reviveCost field is set
*/
public boolean hasReviveCost() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .RogueAvatarReviveCost revive_cost = 15;</code>
* @return this
*/
public ChessRogueAvatarInfo clearReviveCost() {
bitField0_ &= ~0x00000001;
reviveCost.clear();
return this;
}
/**
* <code>optional .RogueAvatarReviveCost revive_cost = 15;</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 #getMutableReviveCost()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getReviveCost() {
return reviveCost;
}
/**
* <code>optional .RogueAvatarReviveCost revive_cost = 15;</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 RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getMutableReviveCost() {
bitField0_ |= 0x00000001;
return reviveCost;
}
/**
* <code>optional .RogueAvatarReviveCost revive_cost = 15;</code>
* @param value the reviveCost to set
* @return this
*/
public ChessRogueAvatarInfo setReviveCost(
final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost value) {
bitField0_ |= 0x00000001;
reviveCost.copyFrom(value);
return this;
}
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</code>
* @return whether the chessRogueAvatar field is set
*/
public boolean hasChessRogueAvatar() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</code>
* @return this
*/
public ChessRogueAvatarInfo clearChessRogueAvatar() {
bitField0_ &= ~0x00000002;
chessRogueAvatar.clear();
return this;
}
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</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 #getMutableChessRogueAvatar()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueAvatarOuterClass.ChessRogueAvatar> getChessRogueAvatar() {
return chessRogueAvatar;
}
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</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 RepeatedMessage<ChessRogueAvatarOuterClass.ChessRogueAvatar> getMutableChessRogueAvatar(
) {
bitField0_ |= 0x00000002;
return chessRogueAvatar;
}
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</code>
* @param value the chessRogueAvatar to add
* @return this
*/
public ChessRogueAvatarInfo addChessRogueAvatar(
final ChessRogueAvatarOuterClass.ChessRogueAvatar value) {
bitField0_ |= 0x00000002;
chessRogueAvatar.add(value);
return this;
}
/**
* <code>repeated .ChessRogueAvatar chess_rogue_avatar = 3;</code>
* @param values the chessRogueAvatar to add
* @return this
*/
public ChessRogueAvatarInfo addAllChessRogueAvatar(
final ChessRogueAvatarOuterClass.ChessRogueAvatar... values) {
bitField0_ |= 0x00000002;
chessRogueAvatar.addAll(values);
return this;
}
@Override
public ChessRogueAvatarInfo copyFrom(final ChessRogueAvatarInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
reviveCost.copyFrom(other.reviveCost);
chessRogueAvatar.copyFrom(other.chessRogueAvatar);
}
return this;
}
@Override
public ChessRogueAvatarInfo mergeFrom(final ChessRogueAvatarInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasReviveCost()) {
getMutableReviveCost().mergeFrom(other.reviveCost);
}
if (other.hasChessRogueAvatar()) {
getMutableChessRogueAvatar().addAll(other.chessRogueAvatar);
}
return this;
}
@Override
public ChessRogueAvatarInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
reviveCost.clear();
chessRogueAvatar.clear();
return this;
}
@Override
public ChessRogueAvatarInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
reviveCost.clearQuick();
chessRogueAvatar.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueAvatarInfo)) {
return false;
}
ChessRogueAvatarInfo other = (ChessRogueAvatarInfo) o;
return bitField0_ == other.bitField0_
&& (!hasReviveCost() || reviveCost.equals(other.reviveCost))
&& (!hasChessRogueAvatar() || chessRogueAvatar.equals(other.chessRogueAvatar));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 122);
output.writeMessageNoTag(reviveCost);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < chessRogueAvatar.length(); i++) {
output.writeRawByte((byte) 26);
output.writeMessageNoTag(chessRogueAvatar.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(reviveCost);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * chessRogueAvatar.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chessRogueAvatar);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueAvatarInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 122: {
// reviveCost
input.readMessage(reviveCost);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 26) {
break;
}
}
case 26: {
// chessRogueAvatar
tag = input.readRepeatedMessage(chessRogueAvatar, tag);
bitField0_ |= 0x00000002;
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.writeMessage(FieldNames.reviveCost, reviveCost);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedMessage(FieldNames.chessRogueAvatar, chessRogueAvatar);
}
output.endObject();
}
@Override
public ChessRogueAvatarInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1426560318:
case -1248199561: {
if (input.isAtField(FieldNames.reviveCost)) {
if (!input.trySkipNullValue()) {
input.readMessage(reviveCost);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -2052177741:
case 1901902397: {
if (input.isAtField(FieldNames.chessRogueAvatar)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(chessRogueAvatar);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueAvatarInfo clone() {
return new ChessRogueAvatarInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueAvatarInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueAvatarInfo(), data).checkInitialized();
}
public static ChessRogueAvatarInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueAvatarInfo(), input).checkInitialized();
}
public static ChessRogueAvatarInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueAvatarInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueAvatarInfo messages
*/
public static MessageFactory<ChessRogueAvatarInfo> getFactory() {
return ChessRogueAvatarInfoFactory.INSTANCE;
}
private enum ChessRogueAvatarInfoFactory implements MessageFactory<ChessRogueAvatarInfo> {
INSTANCE;
@Override
public ChessRogueAvatarInfo create() {
return ChessRogueAvatarInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName reviveCost = FieldName.forField("reviveCost", "revive_cost");
static final FieldName chessRogueAvatar = FieldName.forField("chessRogueAvatar", "chess_rogue_avatar");
}
}
}

View File

@ -0,0 +1,340 @@
// 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 ChessRogueAvatarOuterClass {
/**
* Protobuf type {@code ChessRogueAvatar}
*/
public static final class ChessRogueAvatar extends ProtoMessage<ChessRogueAvatar> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 PGPLJENDONA = 9;</code>
*/
private int pGPLJENDONA;
/**
* <code>optional uint32 avatar_id = 14;</code>
*/
private int avatarId;
private ChessRogueAvatar() {
}
/**
* @return a new empty instance of {@code ChessRogueAvatar}
*/
public static ChessRogueAvatar newInstance() {
return new ChessRogueAvatar();
}
/**
* <code>optional uint32 PGPLJENDONA = 9;</code>
* @return whether the pGPLJENDONA field is set
*/
public boolean hasPGPLJENDONA() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 PGPLJENDONA = 9;</code>
* @return this
*/
public ChessRogueAvatar clearPGPLJENDONA() {
bitField0_ &= ~0x00000001;
pGPLJENDONA = 0;
return this;
}
/**
* <code>optional uint32 PGPLJENDONA = 9;</code>
* @return the pGPLJENDONA
*/
public int getPGPLJENDONA() {
return pGPLJENDONA;
}
/**
* <code>optional uint32 PGPLJENDONA = 9;</code>
* @param value the pGPLJENDONA to set
* @return this
*/
public ChessRogueAvatar setPGPLJENDONA(final int value) {
bitField0_ |= 0x00000001;
pGPLJENDONA = value;
return this;
}
/**
* <code>optional uint32 avatar_id = 14;</code>
* @return whether the avatarId field is set
*/
public boolean hasAvatarId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 avatar_id = 14;</code>
* @return this
*/
public ChessRogueAvatar clearAvatarId() {
bitField0_ &= ~0x00000002;
avatarId = 0;
return this;
}
/**
* <code>optional uint32 avatar_id = 14;</code>
* @return the avatarId
*/
public int getAvatarId() {
return avatarId;
}
/**
* <code>optional uint32 avatar_id = 14;</code>
* @param value the avatarId to set
* @return this
*/
public ChessRogueAvatar setAvatarId(final int value) {
bitField0_ |= 0x00000002;
avatarId = value;
return this;
}
@Override
public ChessRogueAvatar copyFrom(final ChessRogueAvatar other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
pGPLJENDONA = other.pGPLJENDONA;
avatarId = other.avatarId;
}
return this;
}
@Override
public ChessRogueAvatar mergeFrom(final ChessRogueAvatar other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasPGPLJENDONA()) {
setPGPLJENDONA(other.pGPLJENDONA);
}
if (other.hasAvatarId()) {
setAvatarId(other.avatarId);
}
return this;
}
@Override
public ChessRogueAvatar clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
pGPLJENDONA = 0;
avatarId = 0;
return this;
}
@Override
public ChessRogueAvatar 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 ChessRogueAvatar)) {
return false;
}
ChessRogueAvatar other = (ChessRogueAvatar) o;
return bitField0_ == other.bitField0_
&& (!hasPGPLJENDONA() || pGPLJENDONA == other.pGPLJENDONA)
&& (!hasAvatarId() || avatarId == other.avatarId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(pGPLJENDONA);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 112);
output.writeUInt32NoTag(avatarId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(pGPLJENDONA);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueAvatar mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 72: {
// pGPLJENDONA
pGPLJENDONA = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 112) {
break;
}
}
case 112: {
// avatarId
avatarId = input.readUInt32();
bitField0_ |= 0x00000002;
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.pGPLJENDONA, pGPLJENDONA);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.avatarId, avatarId);
}
output.endObject();
}
@Override
public ChessRogueAvatar mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 952698590: {
if (input.isAtField(FieldNames.pGPLJENDONA)) {
if (!input.trySkipNullValue()) {
pGPLJENDONA = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1787287636:
case -428636735: {
if (input.isAtField(FieldNames.avatarId)) {
if (!input.trySkipNullValue()) {
avatarId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueAvatar clone() {
return new ChessRogueAvatar().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueAvatar parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueAvatar(), data).checkInitialized();
}
public static ChessRogueAvatar parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueAvatar(), input).checkInitialized();
}
public static ChessRogueAvatar parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueAvatar(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueAvatar messages
*/
public static MessageFactory<ChessRogueAvatar> getFactory() {
return ChessRogueAvatarFactory.INSTANCE;
}
private enum ChessRogueAvatarFactory implements MessageFactory<ChessRogueAvatar> {
INSTANCE;
@Override
public ChessRogueAvatar create() {
return ChessRogueAvatar.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName pGPLJENDONA = FieldName.forField("PGPLJENDONA");
static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id");
}
}
}

View File

@ -0,0 +1,295 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueBuffDataOuterClass {
/**
* Protobuf type {@code ChessRogueBuffData}
*/
public static final class ChessRogueBuffData extends ProtoMessage<ChessRogueBuffData> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>repeated .RogueBuffData buff_list = 13;</code>
*/
private final RepeatedMessage<RogueBuffDataOuterClass.RogueBuffData> buffList = RepeatedMessage.newEmptyInstance(RogueBuffDataOuterClass.RogueBuffData.getFactory());
private ChessRogueBuffData() {
}
/**
* @return a new empty instance of {@code ChessRogueBuffData}
*/
public static ChessRogueBuffData newInstance() {
return new ChessRogueBuffData();
}
/**
* <code>repeated .RogueBuffData buff_list = 13;</code>
* @return whether the buffList field is set
*/
public boolean hasBuffList() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>repeated .RogueBuffData buff_list = 13;</code>
* @return this
*/
public ChessRogueBuffData clearBuffList() {
bitField0_ &= ~0x00000001;
buffList.clear();
return this;
}
/**
* <code>repeated .RogueBuffData buff_list = 13;</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 #getMutableBuffList()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<RogueBuffDataOuterClass.RogueBuffData> getBuffList() {
return buffList;
}
/**
* <code>repeated .RogueBuffData buff_list = 13;</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 RepeatedMessage<RogueBuffDataOuterClass.RogueBuffData> getMutableBuffList() {
bitField0_ |= 0x00000001;
return buffList;
}
/**
* <code>repeated .RogueBuffData buff_list = 13;</code>
* @param value the buffList to add
* @return this
*/
public ChessRogueBuffData addBuffList(final RogueBuffDataOuterClass.RogueBuffData value) {
bitField0_ |= 0x00000001;
buffList.add(value);
return this;
}
/**
* <code>repeated .RogueBuffData buff_list = 13;</code>
* @param values the buffList to add
* @return this
*/
public ChessRogueBuffData addAllBuffList(
final RogueBuffDataOuterClass.RogueBuffData... values) {
bitField0_ |= 0x00000001;
buffList.addAll(values);
return this;
}
@Override
public ChessRogueBuffData copyFrom(final ChessRogueBuffData other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
buffList.copyFrom(other.buffList);
}
return this;
}
@Override
public ChessRogueBuffData mergeFrom(final ChessRogueBuffData other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasBuffList()) {
getMutableBuffList().addAll(other.buffList);
}
return this;
}
@Override
public ChessRogueBuffData clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
buffList.clear();
return this;
}
@Override
public ChessRogueBuffData clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
buffList.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueBuffData)) {
return false;
}
ChessRogueBuffData other = (ChessRogueBuffData) o;
return bitField0_ == other.bitField0_
&& (!hasBuffList() || buffList.equals(other.buffList));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
for (int i = 0; i < buffList.length(); i++) {
output.writeRawByte((byte) 106);
output.writeMessageNoTag(buffList.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueBuffData mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 106: {
// buffList
tag = input.readRepeatedMessage(buffList, tag);
bitField0_ |= 0x00000001;
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.writeRepeatedMessage(FieldNames.buffList, buffList);
}
output.endObject();
}
@Override
public ChessRogueBuffData mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1522789487:
case 55792906: {
if (input.isAtField(FieldNames.buffList)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(buffList);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueBuffData clone() {
return new ChessRogueBuffData().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueBuffData parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueBuffData(), data).checkInitialized();
}
public static ChessRogueBuffData parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueBuffData(), input).checkInitialized();
}
public static ChessRogueBuffData parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueBuffData(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueBuffData messages
*/
public static MessageFactory<ChessRogueBuffData> getFactory() {
return ChessRogueBuffDataFactory.INSTANCE;
}
private enum ChessRogueBuffDataFactory implements MessageFactory<ChessRogueBuffData> {
INSTANCE;
@Override
public ChessRogueBuffData create() {
return ChessRogueBuffData.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName buffList = FieldName.forField("buffList", "buff_list");
}
}
}

View File

@ -0,0 +1,282 @@
// 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 ChessRogueBuffInfoOuterClass {
/**
* Protobuf type {@code ChessRogueBuffInfo}
*/
public static final class ChessRogueBuffInfo extends ProtoMessage<ChessRogueBuffInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChessRogueBuffData buff_data = 1;</code>
*/
private final ChessRogueBuffDataOuterClass.ChessRogueBuffData buffData = ChessRogueBuffDataOuterClass.ChessRogueBuffData.newInstance();
private ChessRogueBuffInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueBuffInfo}
*/
public static ChessRogueBuffInfo newInstance() {
return new ChessRogueBuffInfo();
}
/**
* <code>optional .ChessRogueBuffData buff_data = 1;</code>
* @return whether the buffData field is set
*/
public boolean hasBuffData() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChessRogueBuffData buff_data = 1;</code>
* @return this
*/
public ChessRogueBuffInfo clearBuffData() {
bitField0_ &= ~0x00000001;
buffData.clear();
return this;
}
/**
* <code>optional .ChessRogueBuffData buff_data = 1;</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 #getMutableBuffData()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueBuffDataOuterClass.ChessRogueBuffData getBuffData() {
return buffData;
}
/**
* <code>optional .ChessRogueBuffData buff_data = 1;</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 ChessRogueBuffDataOuterClass.ChessRogueBuffData getMutableBuffData() {
bitField0_ |= 0x00000001;
return buffData;
}
/**
* <code>optional .ChessRogueBuffData buff_data = 1;</code>
* @param value the buffData to set
* @return this
*/
public ChessRogueBuffInfo setBuffData(
final ChessRogueBuffDataOuterClass.ChessRogueBuffData value) {
bitField0_ |= 0x00000001;
buffData.copyFrom(value);
return this;
}
@Override
public ChessRogueBuffInfo copyFrom(final ChessRogueBuffInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
buffData.copyFrom(other.buffData);
}
return this;
}
@Override
public ChessRogueBuffInfo mergeFrom(final ChessRogueBuffInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasBuffData()) {
getMutableBuffData().mergeFrom(other.buffData);
}
return this;
}
@Override
public ChessRogueBuffInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
buffData.clear();
return this;
}
@Override
public ChessRogueBuffInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
buffData.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueBuffInfo)) {
return false;
}
ChessRogueBuffInfo other = (ChessRogueBuffInfo) o;
return bitField0_ == other.bitField0_
&& (!hasBuffData() || buffData.equals(other.buffData));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 10);
output.writeMessageNoTag(buffData);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(buffData);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueBuffInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 10: {
// buffData
input.readMessage(buffData);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.buffData, buffData);
}
output.endObject();
}
@Override
public ChessRogueBuffInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1523035491:
case 55546902: {
if (input.isAtField(FieldNames.buffData)) {
if (!input.trySkipNullValue()) {
input.readMessage(buffData);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueBuffInfo clone() {
return new ChessRogueBuffInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueBuffInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueBuffInfo(), data).checkInitialized();
}
public static ChessRogueBuffInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueBuffInfo(), input).checkInitialized();
}
public static ChessRogueBuffInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueBuffInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueBuffInfo messages
*/
public static MessageFactory<ChessRogueBuffInfo> getFactory() {
return ChessRogueBuffInfoFactory.INSTANCE;
}
private enum ChessRogueBuffInfoFactory implements MessageFactory<ChessRogueBuffInfo> {
INSTANCE;
@Override
public ChessRogueBuffInfo create() {
return ChessRogueBuffInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName buffData = FieldName.forField("buffData", "buff_data");
}
}
}

View File

@ -0,0 +1,393 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueCellInfoOuterClass {
/**
* Protobuf type {@code ChessRogueCellInfo}
*/
public static final class ChessRogueCellInfo extends ProtoMessage<ChessRogueCellInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <pre>
* 61
* </pre>
*
* <code>optional uint32 BIEJGDGAOBL = 1;</code>
*/
private int bIEJGDGAOBL;
/**
* <code>repeated .ChessRogueCell query = 7;</code>
*/
private final RepeatedMessage<ChessRogueCellOuterClass.ChessRogueCell> query = RepeatedMessage.newEmptyInstance(ChessRogueCellOuterClass.ChessRogueCell.getFactory());
private ChessRogueCellInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueCellInfo}
*/
public static ChessRogueCellInfo newInstance() {
return new ChessRogueCellInfo();
}
/**
* <pre>
* 61
* </pre>
*
* <code>optional uint32 BIEJGDGAOBL = 1;</code>
* @return whether the bIEJGDGAOBL field is set
*/
public boolean hasBIEJGDGAOBL() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <pre>
* 61
* </pre>
*
* <code>optional uint32 BIEJGDGAOBL = 1;</code>
* @return this
*/
public ChessRogueCellInfo clearBIEJGDGAOBL() {
bitField0_ &= ~0x00000001;
bIEJGDGAOBL = 0;
return this;
}
/**
* <pre>
* 61
* </pre>
*
* <code>optional uint32 BIEJGDGAOBL = 1;</code>
* @return the bIEJGDGAOBL
*/
public int getBIEJGDGAOBL() {
return bIEJGDGAOBL;
}
/**
* <pre>
* 61
* </pre>
*
* <code>optional uint32 BIEJGDGAOBL = 1;</code>
* @param value the bIEJGDGAOBL to set
* @return this
*/
public ChessRogueCellInfo setBIEJGDGAOBL(final int value) {
bitField0_ |= 0x00000001;
bIEJGDGAOBL = value;
return this;
}
/**
* <code>repeated .ChessRogueCell query = 7;</code>
* @return whether the query field is set
*/
public boolean hasQuery() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated .ChessRogueCell query = 7;</code>
* @return this
*/
public ChessRogueCellInfo clearQuery() {
bitField0_ &= ~0x00000002;
query.clear();
return this;
}
/**
* <code>repeated .ChessRogueCell query = 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 #getMutableQuery()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueCellOuterClass.ChessRogueCell> getQuery() {
return query;
}
/**
* <code>repeated .ChessRogueCell query = 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 RepeatedMessage<ChessRogueCellOuterClass.ChessRogueCell> getMutableQuery() {
bitField0_ |= 0x00000002;
return query;
}
/**
* <code>repeated .ChessRogueCell query = 7;</code>
* @param value the query to add
* @return this
*/
public ChessRogueCellInfo addQuery(final ChessRogueCellOuterClass.ChessRogueCell value) {
bitField0_ |= 0x00000002;
query.add(value);
return this;
}
/**
* <code>repeated .ChessRogueCell query = 7;</code>
* @param values the query to add
* @return this
*/
public ChessRogueCellInfo addAllQuery(final ChessRogueCellOuterClass.ChessRogueCell... values) {
bitField0_ |= 0x00000002;
query.addAll(values);
return this;
}
@Override
public ChessRogueCellInfo copyFrom(final ChessRogueCellInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
bIEJGDGAOBL = other.bIEJGDGAOBL;
query.copyFrom(other.query);
}
return this;
}
@Override
public ChessRogueCellInfo mergeFrom(final ChessRogueCellInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasBIEJGDGAOBL()) {
setBIEJGDGAOBL(other.bIEJGDGAOBL);
}
if (other.hasQuery()) {
getMutableQuery().addAll(other.query);
}
return this;
}
@Override
public ChessRogueCellInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
bIEJGDGAOBL = 0;
query.clear();
return this;
}
@Override
public ChessRogueCellInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
query.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueCellInfo)) {
return false;
}
ChessRogueCellInfo other = (ChessRogueCellInfo) o;
return bitField0_ == other.bitField0_
&& (!hasBIEJGDGAOBL() || bIEJGDGAOBL == other.bIEJGDGAOBL)
&& (!hasQuery() || query.equals(other.query));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(bIEJGDGAOBL);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < query.length(); i++) {
output.writeRawByte((byte) 58);
output.writeMessageNoTag(query.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(bIEJGDGAOBL);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * query.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(query);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueCellInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// bIEJGDGAOBL
bIEJGDGAOBL = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 58) {
break;
}
}
case 58: {
// query
tag = input.readRepeatedMessage(query, tag);
bitField0_ |= 0x00000002;
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.bIEJGDGAOBL, bIEJGDGAOBL);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedMessage(FieldNames.query, query);
}
output.endObject();
}
@Override
public ChessRogueCellInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 760968790: {
if (input.isAtField(FieldNames.bIEJGDGAOBL)) {
if (!input.trySkipNullValue()) {
bIEJGDGAOBL = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 107944136: {
if (input.isAtField(FieldNames.query)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(query);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueCellInfo clone() {
return new ChessRogueCellInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueCellInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueCellInfo(), data).checkInitialized();
}
public static ChessRogueCellInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueCellInfo(), input).checkInitialized();
}
public static ChessRogueCellInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueCellInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueCellInfo messages
*/
public static MessageFactory<ChessRogueCellInfo> getFactory() {
return ChessRogueCellInfoFactory.INSTANCE;
}
private enum ChessRogueCellInfoFactory implements MessageFactory<ChessRogueCellInfo> {
INSTANCE;
@Override
public ChessRogueCellInfo create() {
return ChessRogueCellInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName bIEJGDGAOBL = FieldName.forField("BIEJGDGAOBL");
static final FieldName query = FieldName.forField("query");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,425 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueCellUpdateNotifyOuterClass {
/**
* Protobuf type {@code ChessRogueCellUpdateNotify}
*/
public static final class ChessRogueCellUpdateNotify extends ProtoMessage<ChessRogueCellUpdateNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <pre>
* EOKIACEIBBD IFMNJMMMJCM = 8;
* </pre>
*
* <code>optional uint32 cell_room_id = 4;</code>
*/
private int cellRoomId;
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</code>
*/
private final RepeatedMessage<ChessRogueCellOuterClass.ChessRogueCell> cellInfo = RepeatedMessage.newEmptyInstance(ChessRogueCellOuterClass.ChessRogueCell.getFactory());
private ChessRogueCellUpdateNotify() {
}
/**
* @return a new empty instance of {@code ChessRogueCellUpdateNotify}
*/
public static ChessRogueCellUpdateNotify newInstance() {
return new ChessRogueCellUpdateNotify();
}
/**
* <pre>
* EOKIACEIBBD IFMNJMMMJCM = 8;
* </pre>
*
* <code>optional uint32 cell_room_id = 4;</code>
* @return whether the cellRoomId field is set
*/
public boolean hasCellRoomId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <pre>
* EOKIACEIBBD IFMNJMMMJCM = 8;
* </pre>
*
* <code>optional uint32 cell_room_id = 4;</code>
* @return this
*/
public ChessRogueCellUpdateNotify clearCellRoomId() {
bitField0_ &= ~0x00000001;
cellRoomId = 0;
return this;
}
/**
* <pre>
* EOKIACEIBBD IFMNJMMMJCM = 8;
* </pre>
*
* <code>optional uint32 cell_room_id = 4;</code>
* @return the cellRoomId
*/
public int getCellRoomId() {
return cellRoomId;
}
/**
* <pre>
* EOKIACEIBBD IFMNJMMMJCM = 8;
* </pre>
*
* <code>optional uint32 cell_room_id = 4;</code>
* @param value the cellRoomId to set
* @return this
*/
public ChessRogueCellUpdateNotify setCellRoomId(final int value) {
bitField0_ |= 0x00000001;
cellRoomId = value;
return this;
}
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</code>
* @return whether the cellInfo field is set
*/
public boolean hasCellInfo() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</code>
* @return this
*/
public ChessRogueCellUpdateNotify clearCellInfo() {
bitField0_ &= ~0x00000002;
cellInfo.clear();
return this;
}
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</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 #getMutableCellInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueCellOuterClass.ChessRogueCell> getCellInfo() {
return cellInfo;
}
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</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 RepeatedMessage<ChessRogueCellOuterClass.ChessRogueCell> getMutableCellInfo() {
bitField0_ |= 0x00000002;
return cellInfo;
}
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</code>
* @param value the cellInfo to add
* @return this
*/
public ChessRogueCellUpdateNotify addCellInfo(
final ChessRogueCellOuterClass.ChessRogueCell value) {
bitField0_ |= 0x00000002;
cellInfo.add(value);
return this;
}
/**
* <pre>
* MMKEKJCAHGP reason = 1;
* </pre>
*
* <code>repeated .ChessRogueCell cell_info = 6;</code>
* @param values the cellInfo to add
* @return this
*/
public ChessRogueCellUpdateNotify addAllCellInfo(
final ChessRogueCellOuterClass.ChessRogueCell... values) {
bitField0_ |= 0x00000002;
cellInfo.addAll(values);
return this;
}
@Override
public ChessRogueCellUpdateNotify copyFrom(final ChessRogueCellUpdateNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
cellRoomId = other.cellRoomId;
cellInfo.copyFrom(other.cellInfo);
}
return this;
}
@Override
public ChessRogueCellUpdateNotify mergeFrom(final ChessRogueCellUpdateNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasCellRoomId()) {
setCellRoomId(other.cellRoomId);
}
if (other.hasCellInfo()) {
getMutableCellInfo().addAll(other.cellInfo);
}
return this;
}
@Override
public ChessRogueCellUpdateNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
cellRoomId = 0;
cellInfo.clear();
return this;
}
@Override
public ChessRogueCellUpdateNotify clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
cellInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueCellUpdateNotify)) {
return false;
}
ChessRogueCellUpdateNotify other = (ChessRogueCellUpdateNotify) o;
return bitField0_ == other.bitField0_
&& (!hasCellRoomId() || cellRoomId == other.cellRoomId)
&& (!hasCellInfo() || cellInfo.equals(other.cellInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(cellRoomId);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < cellInfo.length(); i++) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(cellInfo.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(cellRoomId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * cellInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cellInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueCellUpdateNotify mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 32: {
// cellRoomId
cellRoomId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// cellInfo
tag = input.readRepeatedMessage(cellInfo, tag);
bitField0_ |= 0x00000002;
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.cellRoomId, cellRoomId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedMessage(FieldNames.cellInfo, cellInfo);
}
output.endObject();
}
@Override
public ChessRogueCellUpdateNotify mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1379654824:
case 848768290: {
if (input.isAtField(FieldNames.cellRoomId)) {
if (!input.trySkipNullValue()) {
cellRoomId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -917905104:
case 1629888875: {
if (input.isAtField(FieldNames.cellInfo)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(cellInfo);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueCellUpdateNotify clone() {
return new ChessRogueCellUpdateNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueCellUpdateNotify parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueCellUpdateNotify(), data).checkInitialized();
}
public static ChessRogueCellUpdateNotify parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueCellUpdateNotify(), input).checkInitialized();
}
public static ChessRogueCellUpdateNotify parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueCellUpdateNotify(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueCellUpdateNotify messages
*/
public static MessageFactory<ChessRogueCellUpdateNotify> getFactory() {
return ChessRogueCellUpdateNotifyFactory.INSTANCE;
}
private enum ChessRogueCellUpdateNotifyFactory implements MessageFactory<ChessRogueCellUpdateNotify> {
INSTANCE;
@Override
public ChessRogueCellUpdateNotify create() {
return ChessRogueCellUpdateNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName cellRoomId = FieldName.forField("cellRoomId", "cell_room_id");
static final FieldName cellInfo = FieldName.forField("cellInfo", "cell_info");
}
}
}

View File

@ -0,0 +1,362 @@
// 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 ChessRogueConfirmRollScRspOuterClass {
/**
* Protobuf type {@code ChessRogueConfirmRollScRsp}
*/
public static final class ChessRogueConfirmRollScRsp extends ProtoMessage<ChessRogueConfirmRollScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 13;</code>
*/
private int retcode;
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
*/
private final ChessRogueNousDiceOuterClass.ChessRogueNousDice nousDice = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance();
private ChessRogueConfirmRollScRsp() {
}
/**
* @return a new empty instance of {@code ChessRogueConfirmRollScRsp}
*/
public static ChessRogueConfirmRollScRsp newInstance() {
return new ChessRogueConfirmRollScRsp();
}
/**
* <code>optional uint32 retcode = 13;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 retcode = 13;</code>
* @return this
*/
public ChessRogueConfirmRollScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 13;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 13;</code>
* @param value the retcode to set
* @return this
*/
public ChessRogueConfirmRollScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
* @return whether the nousDice field is set
*/
public boolean hasNousDice() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
* @return this
*/
public ChessRogueConfirmRollScRsp clearNousDice() {
bitField0_ &= ~0x00000002;
nousDice.clear();
return this;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</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 #getMutableNousDice()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousDiceOuterClass.ChessRogueNousDice getNousDice() {
return nousDice;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</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 ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableNousDice() {
bitField0_ |= 0x00000002;
return nousDice;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
* @param value the nousDice to set
* @return this
*/
public ChessRogueConfirmRollScRsp setNousDice(
final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) {
bitField0_ |= 0x00000002;
nousDice.copyFrom(value);
return this;
}
@Override
public ChessRogueConfirmRollScRsp copyFrom(final ChessRogueConfirmRollScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
nousDice.copyFrom(other.nousDice);
}
return this;
}
@Override
public ChessRogueConfirmRollScRsp mergeFrom(final ChessRogueConfirmRollScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasNousDice()) {
getMutableNousDice().mergeFrom(other.nousDice);
}
return this;
}
@Override
public ChessRogueConfirmRollScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
nousDice.clear();
return this;
}
@Override
public ChessRogueConfirmRollScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nousDice.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueConfirmRollScRsp)) {
return false;
}
ChessRogueConfirmRollScRsp other = (ChessRogueConfirmRollScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasNousDice() || nousDice.equals(other.nousDice));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 42);
output.writeMessageNoTag(nousDice);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(nousDice);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueConfirmRollScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 42) {
break;
}
}
case 42: {
// nousDice
input.readMessage(nousDice);
bitField0_ |= 0x00000002;
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.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.nousDice, nousDice);
}
output.endObject();
}
@Override
public ChessRogueConfirmRollScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1622214758:
case -1226158137: {
if (input.isAtField(FieldNames.nousDice)) {
if (!input.trySkipNullValue()) {
input.readMessage(nousDice);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueConfirmRollScRsp clone() {
return new ChessRogueConfirmRollScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueConfirmRollScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueConfirmRollScRsp(), data).checkInitialized();
}
public static ChessRogueConfirmRollScRsp parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueConfirmRollScRsp(), input).checkInitialized();
}
public static ChessRogueConfirmRollScRsp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueConfirmRollScRsp(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueConfirmRollScRsp messages
*/
public static MessageFactory<ChessRogueConfirmRollScRsp> getFactory() {
return ChessRogueConfirmRollScRspFactory.INSTANCE;
}
private enum ChessRogueConfirmRollScRspFactory implements MessageFactory<ChessRogueConfirmRollScRsp> {
INSTANCE;
@Override
public ChessRogueConfirmRollScRsp create() {
return ChessRogueConfirmRollScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName nousDice = FieldName.forField("nousDice", "nous_dice");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,381 @@
// 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 ChessRogueInfoOuterClass {
/**
* Protobuf type {@code ChessRogueInfo}
*/
public static final class ChessRogueInfo extends ProtoMessage<ChessRogueInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .LineupInfo lineup = 4;</code>
*/
private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance();
/**
* <code>optional .SceneInfo scene = 6;</code>
*/
private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance();
private ChessRogueInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueInfo}
*/
public static ChessRogueInfo newInstance() {
return new ChessRogueInfo();
}
/**
* <code>optional .LineupInfo lineup = 4;</code>
* @return whether the lineup field is set
*/
public boolean hasLineup() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .LineupInfo lineup = 4;</code>
* @return this
*/
public ChessRogueInfo clearLineup() {
bitField0_ &= ~0x00000001;
lineup.clear();
return this;
}
/**
* <code>optional .LineupInfo lineup = 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 #getMutableLineup()} if you want to modify it.
*
* @return internal storage object for reading
*/
public LineupInfoOuterClass.LineupInfo getLineup() {
return lineup;
}
/**
* <code>optional .LineupInfo lineup = 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 LineupInfoOuterClass.LineupInfo getMutableLineup() {
bitField0_ |= 0x00000001;
return lineup;
}
/**
* <code>optional .LineupInfo lineup = 4;</code>
* @param value the lineup to set
* @return this
*/
public ChessRogueInfo setLineup(final LineupInfoOuterClass.LineupInfo value) {
bitField0_ |= 0x00000001;
lineup.copyFrom(value);
return this;
}
/**
* <code>optional .SceneInfo scene = 6;</code>
* @return whether the scene field is set
*/
public boolean hasScene() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .SceneInfo scene = 6;</code>
* @return this
*/
public ChessRogueInfo clearScene() {
bitField0_ &= ~0x00000002;
scene.clear();
return this;
}
/**
* <code>optional .SceneInfo scene = 6;</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 #getMutableScene()} if you want to modify it.
*
* @return internal storage object for reading
*/
public SceneInfoOuterClass.SceneInfo getScene() {
return scene;
}
/**
* <code>optional .SceneInfo scene = 6;</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 SceneInfoOuterClass.SceneInfo getMutableScene() {
bitField0_ |= 0x00000002;
return scene;
}
/**
* <code>optional .SceneInfo scene = 6;</code>
* @param value the scene to set
* @return this
*/
public ChessRogueInfo setScene(final SceneInfoOuterClass.SceneInfo value) {
bitField0_ |= 0x00000002;
scene.copyFrom(value);
return this;
}
@Override
public ChessRogueInfo copyFrom(final ChessRogueInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
lineup.copyFrom(other.lineup);
scene.copyFrom(other.scene);
}
return this;
}
@Override
public ChessRogueInfo mergeFrom(final ChessRogueInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasLineup()) {
getMutableLineup().mergeFrom(other.lineup);
}
if (other.hasScene()) {
getMutableScene().mergeFrom(other.scene);
}
return this;
}
@Override
public ChessRogueInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
lineup.clear();
scene.clear();
return this;
}
@Override
public ChessRogueInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
lineup.clearQuick();
scene.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueInfo)) {
return false;
}
ChessRogueInfo other = (ChessRogueInfo) o;
return bitField0_ == other.bitField0_
&& (!hasLineup() || lineup.equals(other.lineup))
&& (!hasScene() || scene.equals(other.scene));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 34);
output.writeMessageNoTag(lineup);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(scene);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(lineup);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(scene);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 34: {
// lineup
input.readMessage(lineup);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// scene
input.readMessage(scene);
bitField0_ |= 0x00000002;
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.writeMessage(FieldNames.lineup, lineup);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.scene, scene);
}
output.endObject();
}
@Override
public ChessRogueInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1102671473: {
if (input.isAtField(FieldNames.lineup)) {
if (!input.trySkipNullValue()) {
input.readMessage(lineup);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 109254796: {
if (input.isAtField(FieldNames.scene)) {
if (!input.trySkipNullValue()) {
input.readMessage(scene);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueInfo clone() {
return new ChessRogueInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueInfo(), data).checkInitialized();
}
public static ChessRogueInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueInfo(), input).checkInitialized();
}
public static ChessRogueInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueInfo messages
*/
public static MessageFactory<ChessRogueInfo> getFactory() {
return ChessRogueInfoFactory.INSTANCE;
}
private enum ChessRogueInfoFactory implements MessageFactory<ChessRogueInfo> {
INSTANCE;
@Override
public ChessRogueInfo create() {
return ChessRogueInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName lineup = FieldName.forField("lineup");
static final FieldName scene = FieldName.forField("scene");
}
}
}

View File

@ -0,0 +1,617 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueItemInfoOuterClass {
/**
* Protobuf type {@code ChessRogueItemInfo}
*/
public static final class ChessRogueItemInfo extends ProtoMessage<ChessRogueItemInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 4;</code>
*/
private final RepeatedMessage<ItemsEntry> items = RepeatedMessage.newEmptyInstance(ItemsEntry.getFactory());
private ChessRogueItemInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueItemInfo}
*/
public static ChessRogueItemInfo newInstance() {
return new ChessRogueItemInfo();
}
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 4;</code>
* @return whether the items field is set
*/
public boolean hasItems() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 4;</code>
* @return this
*/
public ChessRogueItemInfo clearItems() {
bitField0_ &= ~0x00000001;
items.clear();
return this;
}
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 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 #getMutableItems()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ItemsEntry> getItems() {
return items;
}
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 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 RepeatedMessage<ItemsEntry> getMutableItems() {
bitField0_ |= 0x00000001;
return items;
}
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 4;</code>
* @param value the items to add
* @return this
*/
public ChessRogueItemInfo addItems(final ItemsEntry value) {
bitField0_ |= 0x00000001;
items.add(value);
return this;
}
/**
* <code>repeated .ChessRogueItemInfo.ItemsEntry items = 4;</code>
* @param values the items to add
* @return this
*/
public ChessRogueItemInfo addAllItems(final ItemsEntry... values) {
bitField0_ |= 0x00000001;
items.addAll(values);
return this;
}
@Override
public ChessRogueItemInfo copyFrom(final ChessRogueItemInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
items.copyFrom(other.items);
}
return this;
}
@Override
public ChessRogueItemInfo mergeFrom(final ChessRogueItemInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasItems()) {
getMutableItems().addAll(other.items);
}
return this;
}
@Override
public ChessRogueItemInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
items.clear();
return this;
}
@Override
public ChessRogueItemInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
items.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueItemInfo)) {
return false;
}
ChessRogueItemInfo other = (ChessRogueItemInfo) o;
return bitField0_ == other.bitField0_
&& (!hasItems() || items.equals(other.items));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
for (int i = 0; i < items.length(); i++) {
output.writeRawByte((byte) 34);
output.writeMessageNoTag(items.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueItemInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 34: {
// items
tag = input.readRepeatedMessage(items, tag);
bitField0_ |= 0x00000001;
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.writeRepeatedMessage(FieldNames.items, items);
}
output.endObject();
}
@Override
public ChessRogueItemInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 100526016: {
if (input.isAtField(FieldNames.items)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(items);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueItemInfo clone() {
return new ChessRogueItemInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueItemInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueItemInfo(), data).checkInitialized();
}
public static ChessRogueItemInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueItemInfo(), input).checkInitialized();
}
public static ChessRogueItemInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueItemInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueItemInfo messages
*/
public static MessageFactory<ChessRogueItemInfo> getFactory() {
return ChessRogueItemInfoFactory.INSTANCE;
}
/**
* Protobuf type {@code ItemsEntry}
*/
public static final class ItemsEntry extends ProtoMessage<ItemsEntry> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 key = 1;</code>
*/
private int key;
/**
* <code>optional uint32 value = 2;</code>
*/
private int value_;
private ItemsEntry() {
}
/**
* @return a new empty instance of {@code ItemsEntry}
*/
public static ItemsEntry newInstance() {
return new ItemsEntry();
}
/**
* <code>optional uint32 key = 1;</code>
* @return whether the key field is set
*/
public boolean hasKey() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 key = 1;</code>
* @return this
*/
public ItemsEntry clearKey() {
bitField0_ &= ~0x00000001;
key = 0;
return this;
}
/**
* <code>optional uint32 key = 1;</code>
* @return the key
*/
public int getKey() {
return key;
}
/**
* <code>optional uint32 key = 1;</code>
* @param value the key to set
* @return this
*/
public ItemsEntry setKey(final int value) {
bitField0_ |= 0x00000001;
key = value;
return this;
}
/**
* <code>optional uint32 value = 2;</code>
* @return whether the value_ field is set
*/
public boolean hasValue() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 value = 2;</code>
* @return this
*/
public ItemsEntry clearValue() {
bitField0_ &= ~0x00000002;
value_ = 0;
return this;
}
/**
* <code>optional uint32 value = 2;</code>
* @return the value_
*/
public int getValue() {
return value_;
}
/**
* <code>optional uint32 value = 2;</code>
* @param value the value_ to set
* @return this
*/
public ItemsEntry setValue(final int value) {
bitField0_ |= 0x00000002;
value_ = value;
return this;
}
@Override
public ItemsEntry copyFrom(final ItemsEntry other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
key = other.key;
value_ = other.value_;
}
return this;
}
@Override
public ItemsEntry mergeFrom(final ItemsEntry other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasKey()) {
setKey(other.key);
}
if (other.hasValue()) {
setValue(other.value_);
}
return this;
}
@Override
public ItemsEntry clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
key = 0;
value_ = 0;
return this;
}
@Override
public ItemsEntry 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 ItemsEntry)) {
return false;
}
ItemsEntry other = (ItemsEntry) o;
return bitField0_ == other.bitField0_
&& (!hasKey() || key == other.key)
&& (!hasValue() || value_ == other.value_);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(key);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(value_);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(key);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(value_);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ItemsEntry mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// key
key = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16) {
break;
}
}
case 16: {
// value_
value_ = input.readUInt32();
bitField0_ |= 0x00000002;
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.key, key);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.value_, value_);
}
output.endObject();
}
@Override
public ItemsEntry mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 106079: {
if (input.isAtField(FieldNames.key)) {
if (!input.trySkipNullValue()) {
key = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 111972721: {
if (input.isAtField(FieldNames.value_)) {
if (!input.trySkipNullValue()) {
value_ = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ItemsEntry clone() {
return new ItemsEntry().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ItemsEntry parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ItemsEntry(), data).checkInitialized();
}
public static ItemsEntry parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ItemsEntry(), input).checkInitialized();
}
public static ItemsEntry parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ItemsEntry(), input).checkInitialized();
}
/**
* @return factory for creating ItemsEntry messages
*/
public static MessageFactory<ItemsEntry> getFactory() {
return ItemsEntryFactory.INSTANCE;
}
private enum ItemsEntryFactory implements MessageFactory<ItemsEntry> {
INSTANCE;
@Override
public ItemsEntry create() {
return ItemsEntry.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName key = FieldName.forField("key");
static final FieldName value_ = FieldName.forField("value");
}
}
private enum ChessRogueItemInfoFactory implements MessageFactory<ChessRogueItemInfo> {
INSTANCE;
@Override
public ChessRogueItemInfo create() {
return ChessRogueItemInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName items = FieldName.forField("items");
}
}
}

View File

@ -0,0 +1,295 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueMiracleDataOuterClass {
/**
* Protobuf type {@code ChessRogueMiracleData}
*/
public static final class ChessRogueMiracleData extends ProtoMessage<ChessRogueMiracleData> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>repeated .RogueMiracle miracle_list = 15;</code>
*/
private final RepeatedMessage<RogueMiracleOuterClass.RogueMiracle> miracleList = RepeatedMessage.newEmptyInstance(RogueMiracleOuterClass.RogueMiracle.getFactory());
private ChessRogueMiracleData() {
}
/**
* @return a new empty instance of {@code ChessRogueMiracleData}
*/
public static ChessRogueMiracleData newInstance() {
return new ChessRogueMiracleData();
}
/**
* <code>repeated .RogueMiracle miracle_list = 15;</code>
* @return whether the miracleList field is set
*/
public boolean hasMiracleList() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>repeated .RogueMiracle miracle_list = 15;</code>
* @return this
*/
public ChessRogueMiracleData clearMiracleList() {
bitField0_ &= ~0x00000001;
miracleList.clear();
return this;
}
/**
* <code>repeated .RogueMiracle miracle_list = 15;</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 #getMutableMiracleList()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<RogueMiracleOuterClass.RogueMiracle> getMiracleList() {
return miracleList;
}
/**
* <code>repeated .RogueMiracle miracle_list = 15;</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 RepeatedMessage<RogueMiracleOuterClass.RogueMiracle> getMutableMiracleList() {
bitField0_ |= 0x00000001;
return miracleList;
}
/**
* <code>repeated .RogueMiracle miracle_list = 15;</code>
* @param value the miracleList to add
* @return this
*/
public ChessRogueMiracleData addMiracleList(final RogueMiracleOuterClass.RogueMiracle value) {
bitField0_ |= 0x00000001;
miracleList.add(value);
return this;
}
/**
* <code>repeated .RogueMiracle miracle_list = 15;</code>
* @param values the miracleList to add
* @return this
*/
public ChessRogueMiracleData addAllMiracleList(
final RogueMiracleOuterClass.RogueMiracle... values) {
bitField0_ |= 0x00000001;
miracleList.addAll(values);
return this;
}
@Override
public ChessRogueMiracleData copyFrom(final ChessRogueMiracleData other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
miracleList.copyFrom(other.miracleList);
}
return this;
}
@Override
public ChessRogueMiracleData mergeFrom(final ChessRogueMiracleData other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasMiracleList()) {
getMutableMiracleList().addAll(other.miracleList);
}
return this;
}
@Override
public ChessRogueMiracleData clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
miracleList.clear();
return this;
}
@Override
public ChessRogueMiracleData clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
miracleList.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueMiracleData)) {
return false;
}
ChessRogueMiracleData other = (ChessRogueMiracleData) o;
return bitField0_ == other.bitField0_
&& (!hasMiracleList() || miracleList.equals(other.miracleList));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
for (int i = 0; i < miracleList.length(); i++) {
output.writeRawByte((byte) 122);
output.writeMessageNoTag(miracleList.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueMiracleData mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 122: {
// miracleList
tag = input.readRepeatedMessage(miracleList, tag);
bitField0_ |= 0x00000001;
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.writeRepeatedMessage(FieldNames.miracleList, miracleList);
}
output.endObject();
}
@Override
public ChessRogueMiracleData mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 760391855:
case 2114937772: {
if (input.isAtField(FieldNames.miracleList)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(miracleList);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueMiracleData clone() {
return new ChessRogueMiracleData().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueMiracleData parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueMiracleData(), data).checkInitialized();
}
public static ChessRogueMiracleData parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueMiracleData(), input).checkInitialized();
}
public static ChessRogueMiracleData parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueMiracleData(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueMiracleData messages
*/
public static MessageFactory<ChessRogueMiracleData> getFactory() {
return ChessRogueMiracleDataFactory.INSTANCE;
}
private enum ChessRogueMiracleDataFactory implements MessageFactory<ChessRogueMiracleData> {
INSTANCE;
@Override
public ChessRogueMiracleData create() {
return ChessRogueMiracleData.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list");
}
}
}

View File

@ -0,0 +1,282 @@
// 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 ChessRogueMiracleInfoOuterClass {
/**
* Protobuf type {@code ChessRogueMiracleInfo}
*/
public static final class ChessRogueMiracleInfo extends ProtoMessage<ChessRogueMiracleInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChessRogueMiracleData miracle_data = 11;</code>
*/
private final ChessRogueMiracleDataOuterClass.ChessRogueMiracleData miracleData = ChessRogueMiracleDataOuterClass.ChessRogueMiracleData.newInstance();
private ChessRogueMiracleInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueMiracleInfo}
*/
public static ChessRogueMiracleInfo newInstance() {
return new ChessRogueMiracleInfo();
}
/**
* <code>optional .ChessRogueMiracleData miracle_data = 11;</code>
* @return whether the miracleData field is set
*/
public boolean hasMiracleData() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChessRogueMiracleData miracle_data = 11;</code>
* @return this
*/
public ChessRogueMiracleInfo clearMiracleData() {
bitField0_ &= ~0x00000001;
miracleData.clear();
return this;
}
/**
* <code>optional .ChessRogueMiracleData miracle_data = 11;</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 #getMutableMiracleData()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueMiracleDataOuterClass.ChessRogueMiracleData getMiracleData() {
return miracleData;
}
/**
* <code>optional .ChessRogueMiracleData miracle_data = 11;</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 ChessRogueMiracleDataOuterClass.ChessRogueMiracleData getMutableMiracleData() {
bitField0_ |= 0x00000001;
return miracleData;
}
/**
* <code>optional .ChessRogueMiracleData miracle_data = 11;</code>
* @param value the miracleData to set
* @return this
*/
public ChessRogueMiracleInfo setMiracleData(
final ChessRogueMiracleDataOuterClass.ChessRogueMiracleData value) {
bitField0_ |= 0x00000001;
miracleData.copyFrom(value);
return this;
}
@Override
public ChessRogueMiracleInfo copyFrom(final ChessRogueMiracleInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
miracleData.copyFrom(other.miracleData);
}
return this;
}
@Override
public ChessRogueMiracleInfo mergeFrom(final ChessRogueMiracleInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasMiracleData()) {
getMutableMiracleData().mergeFrom(other.miracleData);
}
return this;
}
@Override
public ChessRogueMiracleInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
miracleData.clear();
return this;
}
@Override
public ChessRogueMiracleInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
miracleData.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueMiracleInfo)) {
return false;
}
ChessRogueMiracleInfo other = (ChessRogueMiracleInfo) o;
return bitField0_ == other.bitField0_
&& (!hasMiracleData() || miracleData.equals(other.miracleData));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 90);
output.writeMessageNoTag(miracleData);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(miracleData);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueMiracleInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 90: {
// miracleData
input.readMessage(miracleData);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.miracleData, miracleData);
}
output.endObject();
}
@Override
public ChessRogueMiracleInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 760145851:
case 2114691768: {
if (input.isAtField(FieldNames.miracleData)) {
if (!input.trySkipNullValue()) {
input.readMessage(miracleData);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueMiracleInfo clone() {
return new ChessRogueMiracleInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueMiracleInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueMiracleInfo(), data).checkInitialized();
}
public static ChessRogueMiracleInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueMiracleInfo(), input).checkInitialized();
}
public static ChessRogueMiracleInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueMiracleInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueMiracleInfo messages
*/
public static MessageFactory<ChessRogueMiracleInfo> getFactory() {
return ChessRogueMiracleInfoFactory.INSTANCE;
}
private enum ChessRogueMiracleInfoFactory implements MessageFactory<ChessRogueMiracleInfo> {
INSTANCE;
@Override
public ChessRogueMiracleInfo create() {
return ChessRogueMiracleInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName miracleData = FieldName.forField("miracleData", "miracle_data");
}
}
}

View File

@ -0,0 +1,259 @@
// 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 ChessRogueMoneyInfoOuterClass {
/**
* Protobuf type {@code ChessRogueMoneyInfo}
*/
public static final class ChessRogueMoneyInfo extends ProtoMessage<ChessRogueMoneyInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 money = 15;</code>
*/
private int money;
private ChessRogueMoneyInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueMoneyInfo}
*/
public static ChessRogueMoneyInfo newInstance() {
return new ChessRogueMoneyInfo();
}
/**
* <code>optional uint32 money = 15;</code>
* @return whether the money field is set
*/
public boolean hasMoney() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 money = 15;</code>
* @return this
*/
public ChessRogueMoneyInfo clearMoney() {
bitField0_ &= ~0x00000001;
money = 0;
return this;
}
/**
* <code>optional uint32 money = 15;</code>
* @return the money
*/
public int getMoney() {
return money;
}
/**
* <code>optional uint32 money = 15;</code>
* @param value the money to set
* @return this
*/
public ChessRogueMoneyInfo setMoney(final int value) {
bitField0_ |= 0x00000001;
money = value;
return this;
}
@Override
public ChessRogueMoneyInfo copyFrom(final ChessRogueMoneyInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
money = other.money;
}
return this;
}
@Override
public ChessRogueMoneyInfo mergeFrom(final ChessRogueMoneyInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasMoney()) {
setMoney(other.money);
}
return this;
}
@Override
public ChessRogueMoneyInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
money = 0;
return this;
}
@Override
public ChessRogueMoneyInfo 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 ChessRogueMoneyInfo)) {
return false;
}
ChessRogueMoneyInfo other = (ChessRogueMoneyInfo) o;
return bitField0_ == other.bitField0_
&& (!hasMoney() || money == other.money);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 120);
output.writeUInt32NoTag(money);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(money);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueMoneyInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 120: {
// money
money = input.readUInt32();
bitField0_ |= 0x00000001;
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.money, money);
}
output.endObject();
}
@Override
public ChessRogueMoneyInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 104079552: {
if (input.isAtField(FieldNames.money)) {
if (!input.trySkipNullValue()) {
money = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueMoneyInfo clone() {
return new ChessRogueMoneyInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueMoneyInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueMoneyInfo(), data).checkInitialized();
}
public static ChessRogueMoneyInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueMoneyInfo(), input).checkInitialized();
}
public static ChessRogueMoneyInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueMoneyInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueMoneyInfo messages
*/
public static MessageFactory<ChessRogueMoneyInfo> getFactory() {
return ChessRogueMoneyInfoFactory.INSTANCE;
}
private enum ChessRogueMoneyInfoFactory implements MessageFactory<ChessRogueMoneyInfo> {
INSTANCE;
@Override
public ChessRogueMoneyInfo create() {
return ChessRogueMoneyInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName money = FieldName.forField("money");
}
}
}

View File

@ -0,0 +1,541 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueNousDiceInfoOuterClass {
/**
* Protobuf type {@code ChessRogueNousDiceInfo}
*/
public static final class ChessRogueNousDiceInfo extends ProtoMessage<ChessRogueNousDiceInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 dice_branch_id = 5;</code>
*/
private int diceBranchId;
/**
* <code>optional uint32 question_difficulty = 10;</code>
*/
private int questionDifficulty;
/**
* <code>optional uint32 max_difficulty = 14;</code>
*/
private int maxDifficulty;
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</code>
*/
private final RepeatedMessage<ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo> diceSurface = RepeatedMessage.newEmptyInstance(ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo.getFactory());
private ChessRogueNousDiceInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueNousDiceInfo}
*/
public static ChessRogueNousDiceInfo newInstance() {
return new ChessRogueNousDiceInfo();
}
/**
* <code>optional uint32 dice_branch_id = 5;</code>
* @return whether the diceBranchId field is set
*/
public boolean hasDiceBranchId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 dice_branch_id = 5;</code>
* @return this
*/
public ChessRogueNousDiceInfo clearDiceBranchId() {
bitField0_ &= ~0x00000001;
diceBranchId = 0;
return this;
}
/**
* <code>optional uint32 dice_branch_id = 5;</code>
* @return the diceBranchId
*/
public int getDiceBranchId() {
return diceBranchId;
}
/**
* <code>optional uint32 dice_branch_id = 5;</code>
* @param value the diceBranchId to set
* @return this
*/
public ChessRogueNousDiceInfo setDiceBranchId(final int value) {
bitField0_ |= 0x00000001;
diceBranchId = value;
return this;
}
/**
* <code>optional uint32 question_difficulty = 10;</code>
* @return whether the questionDifficulty field is set
*/
public boolean hasQuestionDifficulty() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 question_difficulty = 10;</code>
* @return this
*/
public ChessRogueNousDiceInfo clearQuestionDifficulty() {
bitField0_ &= ~0x00000002;
questionDifficulty = 0;
return this;
}
/**
* <code>optional uint32 question_difficulty = 10;</code>
* @return the questionDifficulty
*/
public int getQuestionDifficulty() {
return questionDifficulty;
}
/**
* <code>optional uint32 question_difficulty = 10;</code>
* @param value the questionDifficulty to set
* @return this
*/
public ChessRogueNousDiceInfo setQuestionDifficulty(final int value) {
bitField0_ |= 0x00000002;
questionDifficulty = value;
return this;
}
/**
* <code>optional uint32 max_difficulty = 14;</code>
* @return whether the maxDifficulty field is set
*/
public boolean hasMaxDifficulty() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 max_difficulty = 14;</code>
* @return this
*/
public ChessRogueNousDiceInfo clearMaxDifficulty() {
bitField0_ &= ~0x00000004;
maxDifficulty = 0;
return this;
}
/**
* <code>optional uint32 max_difficulty = 14;</code>
* @return the maxDifficulty
*/
public int getMaxDifficulty() {
return maxDifficulty;
}
/**
* <code>optional uint32 max_difficulty = 14;</code>
* @param value the maxDifficulty to set
* @return this
*/
public ChessRogueNousDiceInfo setMaxDifficulty(final int value) {
bitField0_ |= 0x00000004;
maxDifficulty = value;
return this;
}
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</code>
* @return whether the diceSurface field is set
*/
public boolean hasDiceSurface() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</code>
* @return this
*/
public ChessRogueNousDiceInfo clearDiceSurface() {
bitField0_ &= ~0x00000008;
diceSurface.clear();
return this;
}
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</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 #getMutableDiceSurface()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo> getDiceSurface(
) {
return diceSurface;
}
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</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 RepeatedMessage<ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo> getMutableDiceSurface(
) {
bitField0_ |= 0x00000008;
return diceSurface;
}
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</code>
* @param value the diceSurface to add
* @return this
*/
public ChessRogueNousDiceInfo addDiceSurface(
final ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo value) {
bitField0_ |= 0x00000008;
diceSurface.add(value);
return this;
}
/**
* <code>repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2;</code>
* @param values the diceSurface to add
* @return this
*/
public ChessRogueNousDiceInfo addAllDiceSurface(
final ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo... values) {
bitField0_ |= 0x00000008;
diceSurface.addAll(values);
return this;
}
@Override
public ChessRogueNousDiceInfo copyFrom(final ChessRogueNousDiceInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
diceBranchId = other.diceBranchId;
questionDifficulty = other.questionDifficulty;
maxDifficulty = other.maxDifficulty;
diceSurface.copyFrom(other.diceSurface);
}
return this;
}
@Override
public ChessRogueNousDiceInfo mergeFrom(final ChessRogueNousDiceInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasDiceBranchId()) {
setDiceBranchId(other.diceBranchId);
}
if (other.hasQuestionDifficulty()) {
setQuestionDifficulty(other.questionDifficulty);
}
if (other.hasMaxDifficulty()) {
setMaxDifficulty(other.maxDifficulty);
}
if (other.hasDiceSurface()) {
getMutableDiceSurface().addAll(other.diceSurface);
}
return this;
}
@Override
public ChessRogueNousDiceInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
diceBranchId = 0;
questionDifficulty = 0;
maxDifficulty = 0;
diceSurface.clear();
return this;
}
@Override
public ChessRogueNousDiceInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
diceSurface.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueNousDiceInfo)) {
return false;
}
ChessRogueNousDiceInfo other = (ChessRogueNousDiceInfo) o;
return bitField0_ == other.bitField0_
&& (!hasDiceBranchId() || diceBranchId == other.diceBranchId)
&& (!hasQuestionDifficulty() || questionDifficulty == other.questionDifficulty)
&& (!hasMaxDifficulty() || maxDifficulty == other.maxDifficulty)
&& (!hasDiceSurface() || diceSurface.equals(other.diceSurface));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(diceBranchId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 80);
output.writeUInt32NoTag(questionDifficulty);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 112);
output.writeUInt32NoTag(maxDifficulty);
}
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < diceSurface.length(); i++) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(diceSurface.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(questionDifficulty);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(maxDifficulty);
}
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * diceSurface.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(diceSurface);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousDiceInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 40: {
// diceBranchId
diceBranchId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 80) {
break;
}
}
case 80: {
// questionDifficulty
questionDifficulty = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 112) {
break;
}
}
case 112: {
// maxDifficulty
maxDifficulty = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 18) {
break;
}
}
case 18: {
// diceSurface
tag = input.readRepeatedMessage(diceSurface, tag);
bitField0_ |= 0x00000008;
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.diceBranchId, diceBranchId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.questionDifficulty, questionDifficulty);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.maxDifficulty, maxDifficulty);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedMessage(FieldNames.diceSurface, diceSurface);
}
output.endObject();
}
@Override
public ChessRogueNousDiceInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 216999716:
case 1050456640: {
if (input.isAtField(FieldNames.diceBranchId)) {
if (!input.trySkipNullValue()) {
diceBranchId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1586161729:
case -1998600780: {
if (input.isAtField(FieldNames.questionDifficulty)) {
if (!input.trySkipNullValue()) {
questionDifficulty = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 657132607:
case -733732490: {
if (input.isAtField(FieldNames.maxDifficulty)) {
if (!input.trySkipNullValue()) {
maxDifficulty = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -1568317690:
case 682756117: {
if (input.isAtField(FieldNames.diceSurface)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(diceSurface);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousDiceInfo clone() {
return new ChessRogueNousDiceInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousDiceInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousDiceInfo(), data).checkInitialized();
}
public static ChessRogueNousDiceInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousDiceInfo(), input).checkInitialized();
}
public static ChessRogueNousDiceInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousDiceInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousDiceInfo messages
*/
public static MessageFactory<ChessRogueNousDiceInfo> getFactory() {
return ChessRogueNousDiceInfoFactory.INSTANCE;
}
private enum ChessRogueNousDiceInfoFactory implements MessageFactory<ChessRogueNousDiceInfo> {
INSTANCE;
@Override
public ChessRogueNousDiceInfo create() {
return ChessRogueNousDiceInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName diceBranchId = FieldName.forField("diceBranchId", "dice_branch_id");
static final FieldName questionDifficulty = FieldName.forField("questionDifficulty", "question_difficulty");
static final FieldName maxDifficulty = FieldName.forField("maxDifficulty", "max_difficulty");
static final FieldName diceSurface = FieldName.forField("diceSurface", "dice_surface");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,342 @@
// 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 ChessRogueNousDiceSurfaceInfoOuterClass {
/**
* Protobuf type {@code ChessRogueNousDiceSurfaceInfo}
*/
public static final class ChessRogueNousDiceSurfaceInfo extends ProtoMessage<ChessRogueNousDiceSurfaceInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 index = 5;</code>
*/
private int index;
/**
* <code>optional uint32 dice_id = 9;</code>
*/
private int diceId;
private ChessRogueNousDiceSurfaceInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueNousDiceSurfaceInfo}
*/
public static ChessRogueNousDiceSurfaceInfo newInstance() {
return new ChessRogueNousDiceSurfaceInfo();
}
/**
* <code>optional uint32 index = 5;</code>
* @return whether the index field is set
*/
public boolean hasIndex() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 index = 5;</code>
* @return this
*/
public ChessRogueNousDiceSurfaceInfo clearIndex() {
bitField0_ &= ~0x00000001;
index = 0;
return this;
}
/**
* <code>optional uint32 index = 5;</code>
* @return the index
*/
public int getIndex() {
return index;
}
/**
* <code>optional uint32 index = 5;</code>
* @param value the index to set
* @return this
*/
public ChessRogueNousDiceSurfaceInfo setIndex(final int value) {
bitField0_ |= 0x00000001;
index = value;
return this;
}
/**
* <code>optional uint32 dice_id = 9;</code>
* @return whether the diceId field is set
*/
public boolean hasDiceId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 dice_id = 9;</code>
* @return this
*/
public ChessRogueNousDiceSurfaceInfo clearDiceId() {
bitField0_ &= ~0x00000002;
diceId = 0;
return this;
}
/**
* <code>optional uint32 dice_id = 9;</code>
* @return the diceId
*/
public int getDiceId() {
return diceId;
}
/**
* <code>optional uint32 dice_id = 9;</code>
* @param value the diceId to set
* @return this
*/
public ChessRogueNousDiceSurfaceInfo setDiceId(final int value) {
bitField0_ |= 0x00000002;
diceId = value;
return this;
}
@Override
public ChessRogueNousDiceSurfaceInfo copyFrom(final ChessRogueNousDiceSurfaceInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
index = other.index;
diceId = other.diceId;
}
return this;
}
@Override
public ChessRogueNousDiceSurfaceInfo mergeFrom(final ChessRogueNousDiceSurfaceInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasIndex()) {
setIndex(other.index);
}
if (other.hasDiceId()) {
setDiceId(other.diceId);
}
return this;
}
@Override
public ChessRogueNousDiceSurfaceInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
index = 0;
diceId = 0;
return this;
}
@Override
public ChessRogueNousDiceSurfaceInfo 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 ChessRogueNousDiceSurfaceInfo)) {
return false;
}
ChessRogueNousDiceSurfaceInfo other = (ChessRogueNousDiceSurfaceInfo) o;
return bitField0_ == other.bitField0_
&& (!hasIndex() || index == other.index)
&& (!hasDiceId() || diceId == other.diceId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(index);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(diceId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(index);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(diceId);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousDiceSurfaceInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 40: {
// index
index = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 72) {
break;
}
}
case 72: {
// diceId
diceId = input.readUInt32();
bitField0_ |= 0x00000002;
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.index, index);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.diceId, diceId);
}
output.endObject();
}
@Override
public ChessRogueNousDiceSurfaceInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 100346066: {
if (input.isAtField(FieldNames.index)) {
if (!input.trySkipNullValue()) {
index = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1332033758:
case 1656647859: {
if (input.isAtField(FieldNames.diceId)) {
if (!input.trySkipNullValue()) {
diceId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousDiceSurfaceInfo clone() {
return new ChessRogueNousDiceSurfaceInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousDiceSurfaceInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceInfo(), data).checkInitialized();
}
public static ChessRogueNousDiceSurfaceInfo parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceInfo(), input).checkInitialized();
}
public static ChessRogueNousDiceSurfaceInfo parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousDiceSurfaceInfo messages
*/
public static MessageFactory<ChessRogueNousDiceSurfaceInfo> getFactory() {
return ChessRogueNousDiceSurfaceInfoFactory.INSTANCE;
}
private enum ChessRogueNousDiceSurfaceInfoFactory implements MessageFactory<ChessRogueNousDiceSurfaceInfo> {
INSTANCE;
@Override
public ChessRogueNousDiceSurfaceInfo create() {
return ChessRogueNousDiceSurfaceInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName index = FieldName.forField("index");
static final FieldName diceId = FieldName.forField("diceId", "dice_id");
}
}
}

View File

@ -0,0 +1,283 @@
// 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 ChessRogueNousEditDiceCsReqOuterClass {
/**
* Protobuf type {@code ChessRogueNousEditDiceCsReq}
*/
public static final class ChessRogueNousEditDiceCsReq extends ProtoMessage<ChessRogueNousEditDiceCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 12;</code>
*/
private final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo diceInfo = ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.newInstance();
private ChessRogueNousEditDiceCsReq() {
}
/**
* @return a new empty instance of {@code ChessRogueNousEditDiceCsReq}
*/
public static ChessRogueNousEditDiceCsReq newInstance() {
return new ChessRogueNousEditDiceCsReq();
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 12;</code>
* @return whether the diceInfo field is set
*/
public boolean hasDiceInfo() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 12;</code>
* @return this
*/
public ChessRogueNousEditDiceCsReq clearDiceInfo() {
bitField0_ &= ~0x00000001;
diceInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 12;</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 #getMutableDiceInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getDiceInfo() {
return diceInfo;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 12;</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 ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getMutableDiceInfo() {
bitField0_ |= 0x00000001;
return diceInfo;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 12;</code>
* @param value the diceInfo to set
* @return this
*/
public ChessRogueNousEditDiceCsReq setDiceInfo(
final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) {
bitField0_ |= 0x00000001;
diceInfo.copyFrom(value);
return this;
}
@Override
public ChessRogueNousEditDiceCsReq copyFrom(final ChessRogueNousEditDiceCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
diceInfo.copyFrom(other.diceInfo);
}
return this;
}
@Override
public ChessRogueNousEditDiceCsReq mergeFrom(final ChessRogueNousEditDiceCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasDiceInfo()) {
getMutableDiceInfo().mergeFrom(other.diceInfo);
}
return this;
}
@Override
public ChessRogueNousEditDiceCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
diceInfo.clear();
return this;
}
@Override
public ChessRogueNousEditDiceCsReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
diceInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueNousEditDiceCsReq)) {
return false;
}
ChessRogueNousEditDiceCsReq other = (ChessRogueNousEditDiceCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasDiceInfo() || diceInfo.equals(other.diceInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 98);
output.writeMessageNoTag(diceInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(diceInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousEditDiceCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 98: {
// diceInfo
input.readMessage(diceInfo);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.diceInfo, diceInfo);
}
output.endObject();
}
@Override
public ChessRogueNousEditDiceCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -184174347:
case -1394261434: {
if (input.isAtField(FieldNames.diceInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(diceInfo);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousEditDiceCsReq clone() {
return new ChessRogueNousEditDiceCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousEditDiceCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceCsReq(), data).checkInitialized();
}
public static ChessRogueNousEditDiceCsReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceCsReq(), input).checkInitialized();
}
public static ChessRogueNousEditDiceCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceCsReq(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousEditDiceCsReq messages
*/
public static MessageFactory<ChessRogueNousEditDiceCsReq> getFactory() {
return ChessRogueNousEditDiceCsReqFactory.INSTANCE;
}
private enum ChessRogueNousEditDiceCsReqFactory implements MessageFactory<ChessRogueNousEditDiceCsReq> {
INSTANCE;
@Override
public ChessRogueNousEditDiceCsReq create() {
return ChessRogueNousEditDiceCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info");
}
}
}

View File

@ -0,0 +1,363 @@
// 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 ChessRogueNousEditDiceScRspOuterClass {
/**
* Protobuf type {@code ChessRogueNousEditDiceScRsp}
*/
public static final class ChessRogueNousEditDiceScRsp extends ProtoMessage<ChessRogueNousEditDiceScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 11;</code>
*/
private int retcode;
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 13;</code>
*/
private final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo diceInfo = ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.newInstance();
private ChessRogueNousEditDiceScRsp() {
}
/**
* @return a new empty instance of {@code ChessRogueNousEditDiceScRsp}
*/
public static ChessRogueNousEditDiceScRsp newInstance() {
return new ChessRogueNousEditDiceScRsp();
}
/**
* <code>optional uint32 retcode = 11;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 retcode = 11;</code>
* @return this
*/
public ChessRogueNousEditDiceScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 11;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 11;</code>
* @param value the retcode to set
* @return this
*/
public ChessRogueNousEditDiceScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 13;</code>
* @return whether the diceInfo field is set
*/
public boolean hasDiceInfo() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 13;</code>
* @return this
*/
public ChessRogueNousEditDiceScRsp clearDiceInfo() {
bitField0_ &= ~0x00000002;
diceInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 13;</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 #getMutableDiceInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getDiceInfo() {
return diceInfo;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 13;</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 ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getMutableDiceInfo() {
bitField0_ |= 0x00000002;
return diceInfo;
}
/**
* <code>optional .ChessRogueNousDiceInfo dice_info = 13;</code>
* @param value the diceInfo to set
* @return this
*/
public ChessRogueNousEditDiceScRsp setDiceInfo(
final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) {
bitField0_ |= 0x00000002;
diceInfo.copyFrom(value);
return this;
}
@Override
public ChessRogueNousEditDiceScRsp copyFrom(final ChessRogueNousEditDiceScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
diceInfo.copyFrom(other.diceInfo);
}
return this;
}
@Override
public ChessRogueNousEditDiceScRsp mergeFrom(final ChessRogueNousEditDiceScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasDiceInfo()) {
getMutableDiceInfo().mergeFrom(other.diceInfo);
}
return this;
}
@Override
public ChessRogueNousEditDiceScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
diceInfo.clear();
return this;
}
@Override
public ChessRogueNousEditDiceScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
diceInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueNousEditDiceScRsp)) {
return false;
}
ChessRogueNousEditDiceScRsp other = (ChessRogueNousEditDiceScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasDiceInfo() || diceInfo.equals(other.diceInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 106);
output.writeMessageNoTag(diceInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(diceInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousEditDiceScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 88: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 106) {
break;
}
}
case 106: {
// diceInfo
input.readMessage(diceInfo);
bitField0_ |= 0x00000002;
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.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.diceInfo, diceInfo);
}
output.endObject();
}
@Override
public ChessRogueNousEditDiceScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -184174347:
case -1394261434: {
if (input.isAtField(FieldNames.diceInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(diceInfo);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousEditDiceScRsp clone() {
return new ChessRogueNousEditDiceScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousEditDiceScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceScRsp(), data).checkInitialized();
}
public static ChessRogueNousEditDiceScRsp parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceScRsp(), input).checkInitialized();
}
public static ChessRogueNousEditDiceScRsp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceScRsp(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousEditDiceScRsp messages
*/
public static MessageFactory<ChessRogueNousEditDiceScRsp> getFactory() {
return ChessRogueNousEditDiceScRspFactory.INSTANCE;
}
private enum ChessRogueNousEditDiceScRspFactory implements MessageFactory<ChessRogueNousEditDiceScRsp> {
INSTANCE;
@Override
public ChessRogueNousEditDiceScRsp create() {
return ChessRogueNousEditDiceScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info");
}
}
}

View File

@ -0,0 +1,361 @@
// 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 ChessRogueNousMainStoryInfoOuterClass {
/**
* Protobuf type {@code ChessRogueNousMainStoryInfo}
*/
public static final class ChessRogueNousMainStoryInfo extends ProtoMessage<ChessRogueNousMainStoryInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 story_id = 10;</code>
*/
private int storyId;
/**
* <pre>
* 2 finished
* </pre>
*
* <code>optional uint32 status = 11;</code>
*/
private int status;
private ChessRogueNousMainStoryInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueNousMainStoryInfo}
*/
public static ChessRogueNousMainStoryInfo newInstance() {
return new ChessRogueNousMainStoryInfo();
}
/**
* <code>optional uint32 story_id = 10;</code>
* @return whether the storyId field is set
*/
public boolean hasStoryId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 story_id = 10;</code>
* @return this
*/
public ChessRogueNousMainStoryInfo clearStoryId() {
bitField0_ &= ~0x00000001;
storyId = 0;
return this;
}
/**
* <code>optional uint32 story_id = 10;</code>
* @return the storyId
*/
public int getStoryId() {
return storyId;
}
/**
* <code>optional uint32 story_id = 10;</code>
* @param value the storyId to set
* @return this
*/
public ChessRogueNousMainStoryInfo setStoryId(final int value) {
bitField0_ |= 0x00000001;
storyId = value;
return this;
}
/**
* <pre>
* 2 finished
* </pre>
*
* <code>optional uint32 status = 11;</code>
* @return whether the status field is set
*/
public boolean hasStatus() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <pre>
* 2 finished
* </pre>
*
* <code>optional uint32 status = 11;</code>
* @return this
*/
public ChessRogueNousMainStoryInfo clearStatus() {
bitField0_ &= ~0x00000002;
status = 0;
return this;
}
/**
* <pre>
* 2 finished
* </pre>
*
* <code>optional uint32 status = 11;</code>
* @return the status
*/
public int getStatus() {
return status;
}
/**
* <pre>
* 2 finished
* </pre>
*
* <code>optional uint32 status = 11;</code>
* @param value the status to set
* @return this
*/
public ChessRogueNousMainStoryInfo setStatus(final int value) {
bitField0_ |= 0x00000002;
status = value;
return this;
}
@Override
public ChessRogueNousMainStoryInfo copyFrom(final ChessRogueNousMainStoryInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
storyId = other.storyId;
status = other.status;
}
return this;
}
@Override
public ChessRogueNousMainStoryInfo mergeFrom(final ChessRogueNousMainStoryInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasStoryId()) {
setStoryId(other.storyId);
}
if (other.hasStatus()) {
setStatus(other.status);
}
return this;
}
@Override
public ChessRogueNousMainStoryInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
storyId = 0;
status = 0;
return this;
}
@Override
public ChessRogueNousMainStoryInfo 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 ChessRogueNousMainStoryInfo)) {
return false;
}
ChessRogueNousMainStoryInfo other = (ChessRogueNousMainStoryInfo) o;
return bitField0_ == other.bitField0_
&& (!hasStoryId() || storyId == other.storyId)
&& (!hasStatus() || status == other.status);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 80);
output.writeUInt32NoTag(storyId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(status);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(status);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousMainStoryInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 80: {
// storyId
storyId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 88) {
break;
}
}
case 88: {
// status
status = input.readUInt32();
bitField0_ |= 0x00000002;
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.storyId, storyId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.status, status);
}
output.endObject();
}
@Override
public ChessRogueNousMainStoryInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1884251920:
case 1717754021: {
if (input.isAtField(FieldNames.storyId)) {
if (!input.trySkipNullValue()) {
storyId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -892481550: {
if (input.isAtField(FieldNames.status)) {
if (!input.trySkipNullValue()) {
status = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousMainStoryInfo clone() {
return new ChessRogueNousMainStoryInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousMainStoryInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousMainStoryInfo(), data).checkInitialized();
}
public static ChessRogueNousMainStoryInfo parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousMainStoryInfo(), input).checkInitialized();
}
public static ChessRogueNousMainStoryInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousMainStoryInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousMainStoryInfo messages
*/
public static MessageFactory<ChessRogueNousMainStoryInfo> getFactory() {
return ChessRogueNousMainStoryInfoFactory.INSTANCE;
}
private enum ChessRogueNousMainStoryInfoFactory implements MessageFactory<ChessRogueNousMainStoryInfo> {
INSTANCE;
@Override
public ChessRogueNousMainStoryInfo create() {
return ChessRogueNousMainStoryInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName storyId = FieldName.forField("storyId", "story_id");
static final FieldName status = FieldName.forField("status");
}
}
}

View File

@ -0,0 +1,559 @@
// 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;
import us.hebi.quickbuf.RepeatedInt;
public final class ChessRogueNousQueryInfoOuterClass {
/**
* Protobuf type {@code ChessRogueNousQueryInfo}
*/
public static final class ChessRogueNousQueryInfo extends ProtoMessage<ChessRogueNousQueryInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <pre>
* MAKPHMAOCHI talent_info = 1;
* OFHBFINPHAG JNAGMIALOII = 6;
* CLIDPGPDFGK IKGPADCBBPN = 4;
* </pre>
*
* <code>optional .ChessRogueQuery query_info = 13;</code>
*/
private final ChessRogueQueryOuterClass.ChessRogueQuery queryInfo = ChessRogueQueryOuterClass.ChessRogueQuery.newInstance();
/**
* <code>repeated uint32 PHJAFGJHOCO = 7;</code>
*/
private final RepeatedInt pHJAFGJHOCO = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</code>
*/
private final RepeatedInt cMNHLKGFKOP = RepeatedInt.newEmptyInstance();
private ChessRogueNousQueryInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueNousQueryInfo}
*/
public static ChessRogueNousQueryInfo newInstance() {
return new ChessRogueNousQueryInfo();
}
/**
* <pre>
* MAKPHMAOCHI talent_info = 1;
* OFHBFINPHAG JNAGMIALOII = 6;
* CLIDPGPDFGK IKGPADCBBPN = 4;
* </pre>
*
* <code>optional .ChessRogueQuery query_info = 13;</code>
* @return whether the queryInfo field is set
*/
public boolean hasQueryInfo() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <pre>
* MAKPHMAOCHI talent_info = 1;
* OFHBFINPHAG JNAGMIALOII = 6;
* CLIDPGPDFGK IKGPADCBBPN = 4;
* </pre>
*
* <code>optional .ChessRogueQuery query_info = 13;</code>
* @return this
*/
public ChessRogueNousQueryInfo clearQueryInfo() {
bitField0_ &= ~0x00000001;
queryInfo.clear();
return this;
}
/**
* <pre>
* MAKPHMAOCHI talent_info = 1;
* OFHBFINPHAG JNAGMIALOII = 6;
* CLIDPGPDFGK IKGPADCBBPN = 4;
* </pre>
*
* <code>optional .ChessRogueQuery query_info = 13;</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 #getMutableQueryInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueQueryOuterClass.ChessRogueQuery getQueryInfo() {
return queryInfo;
}
/**
* <pre>
* MAKPHMAOCHI talent_info = 1;
* OFHBFINPHAG JNAGMIALOII = 6;
* CLIDPGPDFGK IKGPADCBBPN = 4;
* </pre>
*
* <code>optional .ChessRogueQuery query_info = 13;</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 ChessRogueQueryOuterClass.ChessRogueQuery getMutableQueryInfo() {
bitField0_ |= 0x00000001;
return queryInfo;
}
/**
* <pre>
* MAKPHMAOCHI talent_info = 1;
* OFHBFINPHAG JNAGMIALOII = 6;
* CLIDPGPDFGK IKGPADCBBPN = 4;
* </pre>
*
* <code>optional .ChessRogueQuery query_info = 13;</code>
* @param value the queryInfo to set
* @return this
*/
public ChessRogueNousQueryInfo setQueryInfo(
final ChessRogueQueryOuterClass.ChessRogueQuery value) {
bitField0_ |= 0x00000001;
queryInfo.copyFrom(value);
return this;
}
/**
* <code>repeated uint32 PHJAFGJHOCO = 7;</code>
* @return whether the pHJAFGJHOCO field is set
*/
public boolean hasPHJAFGJHOCO() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated uint32 PHJAFGJHOCO = 7;</code>
* @return this
*/
public ChessRogueNousQueryInfo clearPHJAFGJHOCO() {
bitField0_ &= ~0x00000002;
pHJAFGJHOCO.clear();
return this;
}
/**
* <code>repeated uint32 PHJAFGJHOCO = 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 #getMutablePHJAFGJHOCO()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getPHJAFGJHOCO() {
return pHJAFGJHOCO;
}
/**
* <code>repeated uint32 PHJAFGJHOCO = 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 RepeatedInt getMutablePHJAFGJHOCO() {
bitField0_ |= 0x00000002;
return pHJAFGJHOCO;
}
/**
* <code>repeated uint32 PHJAFGJHOCO = 7;</code>
* @param value the pHJAFGJHOCO to add
* @return this
*/
public ChessRogueNousQueryInfo addPHJAFGJHOCO(final int value) {
bitField0_ |= 0x00000002;
pHJAFGJHOCO.add(value);
return this;
}
/**
* <code>repeated uint32 PHJAFGJHOCO = 7;</code>
* @param values the pHJAFGJHOCO to add
* @return this
*/
public ChessRogueNousQueryInfo addAllPHJAFGJHOCO(final int... values) {
bitField0_ |= 0x00000002;
pHJAFGJHOCO.addAll(values);
return this;
}
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</code>
* @return whether the cMNHLKGFKOP field is set
*/
public boolean hasCMNHLKGFKOP() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</code>
* @return this
*/
public ChessRogueNousQueryInfo clearCMNHLKGFKOP() {
bitField0_ &= ~0x00000004;
cMNHLKGFKOP.clear();
return this;
}
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</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 #getMutableCMNHLKGFKOP()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getCMNHLKGFKOP() {
return cMNHLKGFKOP;
}
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</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 RepeatedInt getMutableCMNHLKGFKOP() {
bitField0_ |= 0x00000004;
return cMNHLKGFKOP;
}
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</code>
* @param value the cMNHLKGFKOP to add
* @return this
*/
public ChessRogueNousQueryInfo addCMNHLKGFKOP(final int value) {
bitField0_ |= 0x00000004;
cMNHLKGFKOP.add(value);
return this;
}
/**
* <code>repeated uint32 CMNHLKGFKOP = 8;</code>
* @param values the cMNHLKGFKOP to add
* @return this
*/
public ChessRogueNousQueryInfo addAllCMNHLKGFKOP(final int... values) {
bitField0_ |= 0x00000004;
cMNHLKGFKOP.addAll(values);
return this;
}
@Override
public ChessRogueNousQueryInfo copyFrom(final ChessRogueNousQueryInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
queryInfo.copyFrom(other.queryInfo);
pHJAFGJHOCO.copyFrom(other.pHJAFGJHOCO);
cMNHLKGFKOP.copyFrom(other.cMNHLKGFKOP);
}
return this;
}
@Override
public ChessRogueNousQueryInfo mergeFrom(final ChessRogueNousQueryInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasQueryInfo()) {
getMutableQueryInfo().mergeFrom(other.queryInfo);
}
if (other.hasPHJAFGJHOCO()) {
getMutablePHJAFGJHOCO().addAll(other.pHJAFGJHOCO);
}
if (other.hasCMNHLKGFKOP()) {
getMutableCMNHLKGFKOP().addAll(other.cMNHLKGFKOP);
}
return this;
}
@Override
public ChessRogueNousQueryInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
queryInfo.clear();
pHJAFGJHOCO.clear();
cMNHLKGFKOP.clear();
return this;
}
@Override
public ChessRogueNousQueryInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
queryInfo.clearQuick();
pHJAFGJHOCO.clear();
cMNHLKGFKOP.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueNousQueryInfo)) {
return false;
}
ChessRogueNousQueryInfo other = (ChessRogueNousQueryInfo) o;
return bitField0_ == other.bitField0_
&& (!hasQueryInfo() || queryInfo.equals(other.queryInfo))
&& (!hasPHJAFGJHOCO() || pHJAFGJHOCO.equals(other.pHJAFGJHOCO))
&& (!hasCMNHLKGFKOP() || cMNHLKGFKOP.equals(other.cMNHLKGFKOP));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 106);
output.writeMessageNoTag(queryInfo);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < pHJAFGJHOCO.length(); i++) {
output.writeRawByte((byte) 56);
output.writeUInt32NoTag(pHJAFGJHOCO.array()[i]);
}
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < cMNHLKGFKOP.length(); i++) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(cMNHLKGFKOP.array()[i]);
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(queryInfo);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * pHJAFGJHOCO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pHJAFGJHOCO);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * cMNHLKGFKOP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cMNHLKGFKOP);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousQueryInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 106: {
// queryInfo
input.readMessage(queryInfo);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 58) {
break;
}
}
case 58: {
// pHJAFGJHOCO [packed=true]
input.readPackedUInt32(pHJAFGJHOCO, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 66) {
break;
}
}
case 66: {
// cMNHLKGFKOP [packed=true]
input.readPackedUInt32(cMNHLKGFKOP, tag);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 56: {
// pHJAFGJHOCO [packed=false]
tag = input.readRepeatedUInt32(pHJAFGJHOCO, tag);
bitField0_ |= 0x00000002;
break;
}
case 64: {
// cMNHLKGFKOP [packed=false]
tag = input.readRepeatedUInt32(cMNHLKGFKOP, tag);
bitField0_ |= 0x00000004;
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeMessage(FieldNames.queryInfo, queryInfo);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedUInt32(FieldNames.pHJAFGJHOCO, pHJAFGJHOCO);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedUInt32(FieldNames.cMNHLKGFKOP, cMNHLKGFKOP);
}
output.endObject();
}
@Override
public ChessRogueNousQueryInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1807200874:
case -168476219: {
if (input.isAtField(FieldNames.queryInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(queryInfo);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1818568397: {
if (input.isAtField(FieldNames.pHJAFGJHOCO)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(pHJAFGJHOCO);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 243189738: {
if (input.isAtField(FieldNames.cMNHLKGFKOP)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(cMNHLKGFKOP);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousQueryInfo clone() {
return new ChessRogueNousQueryInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousQueryInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousQueryInfo(), data).checkInitialized();
}
public static ChessRogueNousQueryInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousQueryInfo(), input).checkInitialized();
}
public static ChessRogueNousQueryInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousQueryInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousQueryInfo messages
*/
public static MessageFactory<ChessRogueNousQueryInfo> getFactory() {
return ChessRogueNousQueryInfoFactory.INSTANCE;
}
private enum ChessRogueNousQueryInfoFactory implements MessageFactory<ChessRogueNousQueryInfo> {
INSTANCE;
@Override
public ChessRogueNousQueryInfo create() {
return ChessRogueNousQueryInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName queryInfo = FieldName.forField("queryInfo", "query_info");
static final FieldName pHJAFGJHOCO = FieldName.forField("PHJAFGJHOCO");
static final FieldName cMNHLKGFKOP = FieldName.forField("CMNHLKGFKOP");
}
}
}

View File

@ -0,0 +1,942 @@
// 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;
import us.hebi.quickbuf.RepeatedInt;
public final class ChessRogueNousStoryInfoOuterClass {
/**
* Protobuf type {@code ChessRogueNousStoryInfo}
*/
public static final class ChessRogueNousStoryInfo extends ProtoMessage<ChessRogueNousStoryInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 story_id = 3;</code>
*/
private int storyId;
/**
* <code>optional uint32 sub_story_id = 7;</code>
*/
private int subStoryId;
/**
* <code>optional uint32 ACLGLHEFFON = 14;</code>
*/
private int aCLGLHEFFON;
/**
* <code>optional bool CKEKKMGIHKJ = 8;</code>
*/
private boolean cKEKKMGIHKJ;
/**
* <code>optional bool AHOJIDMLFPE = 12;</code>
*/
private boolean aHOJIDMLFPE;
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</code>
*/
private final RepeatedInt hCPCJBDBBGC = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 CMHLEEKNFKH = 4;</code>
*/
private final RepeatedInt cMHLEEKNFKH = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 INPDLILFOCO = 9;</code>
*/
private final RepeatedInt iNPDLILFOCO = RepeatedInt.newEmptyInstance();
private ChessRogueNousStoryInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueNousStoryInfo}
*/
public static ChessRogueNousStoryInfo newInstance() {
return new ChessRogueNousStoryInfo();
}
/**
* <code>optional uint32 story_id = 3;</code>
* @return whether the storyId field is set
*/
public boolean hasStoryId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 story_id = 3;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearStoryId() {
bitField0_ &= ~0x00000001;
storyId = 0;
return this;
}
/**
* <code>optional uint32 story_id = 3;</code>
* @return the storyId
*/
public int getStoryId() {
return storyId;
}
/**
* <code>optional uint32 story_id = 3;</code>
* @param value the storyId to set
* @return this
*/
public ChessRogueNousStoryInfo setStoryId(final int value) {
bitField0_ |= 0x00000001;
storyId = value;
return this;
}
/**
* <code>optional uint32 sub_story_id = 7;</code>
* @return whether the subStoryId field is set
*/
public boolean hasSubStoryId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 sub_story_id = 7;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearSubStoryId() {
bitField0_ &= ~0x00000002;
subStoryId = 0;
return this;
}
/**
* <code>optional uint32 sub_story_id = 7;</code>
* @return the subStoryId
*/
public int getSubStoryId() {
return subStoryId;
}
/**
* <code>optional uint32 sub_story_id = 7;</code>
* @param value the subStoryId to set
* @return this
*/
public ChessRogueNousStoryInfo setSubStoryId(final int value) {
bitField0_ |= 0x00000002;
subStoryId = value;
return this;
}
/**
* <code>optional uint32 ACLGLHEFFON = 14;</code>
* @return whether the aCLGLHEFFON field is set
*/
public boolean hasACLGLHEFFON() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 ACLGLHEFFON = 14;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearACLGLHEFFON() {
bitField0_ &= ~0x00000004;
aCLGLHEFFON = 0;
return this;
}
/**
* <code>optional uint32 ACLGLHEFFON = 14;</code>
* @return the aCLGLHEFFON
*/
public int getACLGLHEFFON() {
return aCLGLHEFFON;
}
/**
* <code>optional uint32 ACLGLHEFFON = 14;</code>
* @param value the aCLGLHEFFON to set
* @return this
*/
public ChessRogueNousStoryInfo setACLGLHEFFON(final int value) {
bitField0_ |= 0x00000004;
aCLGLHEFFON = value;
return this;
}
/**
* <code>optional bool CKEKKMGIHKJ = 8;</code>
* @return whether the cKEKKMGIHKJ field is set
*/
public boolean hasCKEKKMGIHKJ() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional bool CKEKKMGIHKJ = 8;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearCKEKKMGIHKJ() {
bitField0_ &= ~0x00000008;
cKEKKMGIHKJ = false;
return this;
}
/**
* <code>optional bool CKEKKMGIHKJ = 8;</code>
* @return the cKEKKMGIHKJ
*/
public boolean getCKEKKMGIHKJ() {
return cKEKKMGIHKJ;
}
/**
* <code>optional bool CKEKKMGIHKJ = 8;</code>
* @param value the cKEKKMGIHKJ to set
* @return this
*/
public ChessRogueNousStoryInfo setCKEKKMGIHKJ(final boolean value) {
bitField0_ |= 0x00000008;
cKEKKMGIHKJ = value;
return this;
}
/**
* <code>optional bool AHOJIDMLFPE = 12;</code>
* @return whether the aHOJIDMLFPE field is set
*/
public boolean hasAHOJIDMLFPE() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional bool AHOJIDMLFPE = 12;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearAHOJIDMLFPE() {
bitField0_ &= ~0x00000010;
aHOJIDMLFPE = false;
return this;
}
/**
* <code>optional bool AHOJIDMLFPE = 12;</code>
* @return the aHOJIDMLFPE
*/
public boolean getAHOJIDMLFPE() {
return aHOJIDMLFPE;
}
/**
* <code>optional bool AHOJIDMLFPE = 12;</code>
* @param value the aHOJIDMLFPE to set
* @return this
*/
public ChessRogueNousStoryInfo setAHOJIDMLFPE(final boolean value) {
bitField0_ |= 0x00000010;
aHOJIDMLFPE = value;
return this;
}
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</code>
* @return whether the hCPCJBDBBGC field is set
*/
public boolean hasHCPCJBDBBGC() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearHCPCJBDBBGC() {
bitField0_ &= ~0x00000020;
hCPCJBDBBGC.clear();
return this;
}
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</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 #getMutableHCPCJBDBBGC()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getHCPCJBDBBGC() {
return hCPCJBDBBGC;
}
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</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 RepeatedInt getMutableHCPCJBDBBGC() {
bitField0_ |= 0x00000020;
return hCPCJBDBBGC;
}
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</code>
* @param value the hCPCJBDBBGC to add
* @return this
*/
public ChessRogueNousStoryInfo addHCPCJBDBBGC(final int value) {
bitField0_ |= 0x00000020;
hCPCJBDBBGC.add(value);
return this;
}
/**
* <code>repeated uint32 HCPCJBDBBGC = 1;</code>
* @param values the hCPCJBDBBGC to add
* @return this
*/
public ChessRogueNousStoryInfo addAllHCPCJBDBBGC(final int... values) {
bitField0_ |= 0x00000020;
hCPCJBDBBGC.addAll(values);
return this;
}
/**
* <code>repeated uint32 CMHLEEKNFKH = 4;</code>
* @return whether the cMHLEEKNFKH field is set
*/
public boolean hasCMHLEEKNFKH() {
return (bitField0_ & 0x00000040) != 0;
}
/**
* <code>repeated uint32 CMHLEEKNFKH = 4;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearCMHLEEKNFKH() {
bitField0_ &= ~0x00000040;
cMHLEEKNFKH.clear();
return this;
}
/**
* <code>repeated uint32 CMHLEEKNFKH = 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 #getMutableCMHLEEKNFKH()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getCMHLEEKNFKH() {
return cMHLEEKNFKH;
}
/**
* <code>repeated uint32 CMHLEEKNFKH = 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 RepeatedInt getMutableCMHLEEKNFKH() {
bitField0_ |= 0x00000040;
return cMHLEEKNFKH;
}
/**
* <code>repeated uint32 CMHLEEKNFKH = 4;</code>
* @param value the cMHLEEKNFKH to add
* @return this
*/
public ChessRogueNousStoryInfo addCMHLEEKNFKH(final int value) {
bitField0_ |= 0x00000040;
cMHLEEKNFKH.add(value);
return this;
}
/**
* <code>repeated uint32 CMHLEEKNFKH = 4;</code>
* @param values the cMHLEEKNFKH to add
* @return this
*/
public ChessRogueNousStoryInfo addAllCMHLEEKNFKH(final int... values) {
bitField0_ |= 0x00000040;
cMHLEEKNFKH.addAll(values);
return this;
}
/**
* <code>repeated uint32 INPDLILFOCO = 9;</code>
* @return whether the iNPDLILFOCO field is set
*/
public boolean hasINPDLILFOCO() {
return (bitField0_ & 0x00000080) != 0;
}
/**
* <code>repeated uint32 INPDLILFOCO = 9;</code>
* @return this
*/
public ChessRogueNousStoryInfo clearINPDLILFOCO() {
bitField0_ &= ~0x00000080;
iNPDLILFOCO.clear();
return this;
}
/**
* <code>repeated uint32 INPDLILFOCO = 9;</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 #getMutableINPDLILFOCO()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getINPDLILFOCO() {
return iNPDLILFOCO;
}
/**
* <code>repeated uint32 INPDLILFOCO = 9;</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 RepeatedInt getMutableINPDLILFOCO() {
bitField0_ |= 0x00000080;
return iNPDLILFOCO;
}
/**
* <code>repeated uint32 INPDLILFOCO = 9;</code>
* @param value the iNPDLILFOCO to add
* @return this
*/
public ChessRogueNousStoryInfo addINPDLILFOCO(final int value) {
bitField0_ |= 0x00000080;
iNPDLILFOCO.add(value);
return this;
}
/**
* <code>repeated uint32 INPDLILFOCO = 9;</code>
* @param values the iNPDLILFOCO to add
* @return this
*/
public ChessRogueNousStoryInfo addAllINPDLILFOCO(final int... values) {
bitField0_ |= 0x00000080;
iNPDLILFOCO.addAll(values);
return this;
}
@Override
public ChessRogueNousStoryInfo copyFrom(final ChessRogueNousStoryInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
storyId = other.storyId;
subStoryId = other.subStoryId;
aCLGLHEFFON = other.aCLGLHEFFON;
cKEKKMGIHKJ = other.cKEKKMGIHKJ;
aHOJIDMLFPE = other.aHOJIDMLFPE;
hCPCJBDBBGC.copyFrom(other.hCPCJBDBBGC);
cMHLEEKNFKH.copyFrom(other.cMHLEEKNFKH);
iNPDLILFOCO.copyFrom(other.iNPDLILFOCO);
}
return this;
}
@Override
public ChessRogueNousStoryInfo mergeFrom(final ChessRogueNousStoryInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasStoryId()) {
setStoryId(other.storyId);
}
if (other.hasSubStoryId()) {
setSubStoryId(other.subStoryId);
}
if (other.hasACLGLHEFFON()) {
setACLGLHEFFON(other.aCLGLHEFFON);
}
if (other.hasCKEKKMGIHKJ()) {
setCKEKKMGIHKJ(other.cKEKKMGIHKJ);
}
if (other.hasAHOJIDMLFPE()) {
setAHOJIDMLFPE(other.aHOJIDMLFPE);
}
if (other.hasHCPCJBDBBGC()) {
getMutableHCPCJBDBBGC().addAll(other.hCPCJBDBBGC);
}
if (other.hasCMHLEEKNFKH()) {
getMutableCMHLEEKNFKH().addAll(other.cMHLEEKNFKH);
}
if (other.hasINPDLILFOCO()) {
getMutableINPDLILFOCO().addAll(other.iNPDLILFOCO);
}
return this;
}
@Override
public ChessRogueNousStoryInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
storyId = 0;
subStoryId = 0;
aCLGLHEFFON = 0;
cKEKKMGIHKJ = false;
aHOJIDMLFPE = false;
hCPCJBDBBGC.clear();
cMHLEEKNFKH.clear();
iNPDLILFOCO.clear();
return this;
}
@Override
public ChessRogueNousStoryInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
hCPCJBDBBGC.clear();
cMHLEEKNFKH.clear();
iNPDLILFOCO.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueNousStoryInfo)) {
return false;
}
ChessRogueNousStoryInfo other = (ChessRogueNousStoryInfo) o;
return bitField0_ == other.bitField0_
&& (!hasStoryId() || storyId == other.storyId)
&& (!hasSubStoryId() || subStoryId == other.subStoryId)
&& (!hasACLGLHEFFON() || aCLGLHEFFON == other.aCLGLHEFFON)
&& (!hasCKEKKMGIHKJ() || cKEKKMGIHKJ == other.cKEKKMGIHKJ)
&& (!hasAHOJIDMLFPE() || aHOJIDMLFPE == other.aHOJIDMLFPE)
&& (!hasHCPCJBDBBGC() || hCPCJBDBBGC.equals(other.hCPCJBDBBGC))
&& (!hasCMHLEEKNFKH() || cMHLEEKNFKH.equals(other.cMHLEEKNFKH))
&& (!hasINPDLILFOCO() || iNPDLILFOCO.equals(other.iNPDLILFOCO));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(storyId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 56);
output.writeUInt32NoTag(subStoryId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 112);
output.writeUInt32NoTag(aCLGLHEFFON);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 64);
output.writeBoolNoTag(cKEKKMGIHKJ);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 96);
output.writeBoolNoTag(aHOJIDMLFPE);
}
if ((bitField0_ & 0x00000020) != 0) {
for (int i = 0; i < hCPCJBDBBGC.length(); i++) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(hCPCJBDBBGC.array()[i]);
}
}
if ((bitField0_ & 0x00000040) != 0) {
for (int i = 0; i < cMHLEEKNFKH.length(); i++) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(cMHLEEKNFKH.array()[i]);
}
}
if ((bitField0_ & 0x00000080) != 0) {
for (int i = 0; i < iNPDLILFOCO.length(); i++) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(iNPDLILFOCO.array()[i]);
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(subStoryId);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(aCLGLHEFFON);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000020) != 0) {
size += (1 * hCPCJBDBBGC.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hCPCJBDBBGC);
}
if ((bitField0_ & 0x00000040) != 0) {
size += (1 * cMHLEEKNFKH.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cMHLEEKNFKH);
}
if ((bitField0_ & 0x00000080) != 0) {
size += (1 * iNPDLILFOCO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iNPDLILFOCO);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousStoryInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 24: {
// storyId
storyId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 56) {
break;
}
}
case 56: {
// subStoryId
subStoryId = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 112) {
break;
}
}
case 112: {
// aCLGLHEFFON
aCLGLHEFFON = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 64) {
break;
}
}
case 64: {
// cKEKKMGIHKJ
cKEKKMGIHKJ = input.readBool();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 96) {
break;
}
}
case 96: {
// aHOJIDMLFPE
aHOJIDMLFPE = input.readBool();
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 10) {
break;
}
}
case 10: {
// hCPCJBDBBGC [packed=true]
input.readPackedUInt32(hCPCJBDBBGC, tag);
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 34) {
break;
}
}
case 34: {
// cMHLEEKNFKH [packed=true]
input.readPackedUInt32(cMHLEEKNFKH, tag);
bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 74) {
break;
}
}
case 74: {
// iNPDLILFOCO [packed=true]
input.readPackedUInt32(iNPDLILFOCO, tag);
bitField0_ |= 0x00000080;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 8: {
// hCPCJBDBBGC [packed=false]
tag = input.readRepeatedUInt32(hCPCJBDBBGC, tag);
bitField0_ |= 0x00000020;
break;
}
case 32: {
// cMHLEEKNFKH [packed=false]
tag = input.readRepeatedUInt32(cMHLEEKNFKH, tag);
bitField0_ |= 0x00000040;
break;
}
case 72: {
// iNPDLILFOCO [packed=false]
tag = input.readRepeatedUInt32(iNPDLILFOCO, tag);
bitField0_ |= 0x00000080;
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.storyId, storyId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.subStoryId, subStoryId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.aCLGLHEFFON, aCLGLHEFFON);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBool(FieldNames.cKEKKMGIHKJ, cKEKKMGIHKJ);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBool(FieldNames.aHOJIDMLFPE, aHOJIDMLFPE);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRepeatedUInt32(FieldNames.hCPCJBDBBGC, hCPCJBDBBGC);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeRepeatedUInt32(FieldNames.cMHLEEKNFKH, cMHLEEKNFKH);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeRepeatedUInt32(FieldNames.iNPDLILFOCO, iNPDLILFOCO);
}
output.endObject();
}
@Override
public ChessRogueNousStoryInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1884251920:
case 1717754021: {
if (input.isAtField(FieldNames.storyId)) {
if (!input.trySkipNullValue()) {
storyId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 929098384:
case 1899516868: {
if (input.isAtField(FieldNames.subStoryId)) {
if (!input.trySkipNullValue()) {
subStoryId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1003347797: {
if (input.isAtField(FieldNames.aCLGLHEFFON)) {
if (!input.trySkipNullValue()) {
aCLGLHEFFON = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -173257579: {
if (input.isAtField(FieldNames.cKEKKMGIHKJ)) {
if (!input.trySkipNullValue()) {
cKEKKMGIHKJ = input.readBool();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case -654341121: {
if (input.isAtField(FieldNames.aHOJIDMLFPE)) {
if (!input.trySkipNullValue()) {
aHOJIDMLFPE = input.readBool();
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case 333875514: {
if (input.isAtField(FieldNames.hCPCJBDBBGC)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(hCPCJBDBBGC);
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
case -1206117230: {
if (input.isAtField(FieldNames.cMHLEEKNFKH)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(cMHLEEKNFKH);
bitField0_ |= 0x00000040;
}
} else {
input.skipUnknownField();
}
break;
}
case 101017067: {
if (input.isAtField(FieldNames.iNPDLILFOCO)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(iNPDLILFOCO);
bitField0_ |= 0x00000080;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousStoryInfo clone() {
return new ChessRogueNousStoryInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousStoryInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousStoryInfo(), data).checkInitialized();
}
public static ChessRogueNousStoryInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousStoryInfo(), input).checkInitialized();
}
public static ChessRogueNousStoryInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousStoryInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousStoryInfo messages
*/
public static MessageFactory<ChessRogueNousStoryInfo> getFactory() {
return ChessRogueNousStoryInfoFactory.INSTANCE;
}
private enum ChessRogueNousStoryInfoFactory implements MessageFactory<ChessRogueNousStoryInfo> {
INSTANCE;
@Override
public ChessRogueNousStoryInfo create() {
return ChessRogueNousStoryInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName storyId = FieldName.forField("storyId", "story_id");
static final FieldName subStoryId = FieldName.forField("subStoryId", "sub_story_id");
static final FieldName aCLGLHEFFON = FieldName.forField("ACLGLHEFFON");
static final FieldName cKEKKMGIHKJ = FieldName.forField("CKEKKMGIHKJ");
static final FieldName aHOJIDMLFPE = FieldName.forField("AHOJIDMLFPE");
static final FieldName hCPCJBDBBGC = FieldName.forField("HCPCJBDBBGC");
static final FieldName cMHLEEKNFKH = FieldName.forField("CMHLEEKNFKH");
static final FieldName iNPDLILFOCO = FieldName.forField("INPDLILFOCO");
}
}
}

View File

@ -0,0 +1,260 @@
// 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 ChessRogueNousSubStoryInfoOuterClass {
/**
* Protobuf type {@code ChessRogueNousSubStoryInfo}
*/
public static final class ChessRogueNousSubStoryInfo extends ProtoMessage<ChessRogueNousSubStoryInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 sub_story_id = 4;</code>
*/
private int subStoryId;
private ChessRogueNousSubStoryInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueNousSubStoryInfo}
*/
public static ChessRogueNousSubStoryInfo newInstance() {
return new ChessRogueNousSubStoryInfo();
}
/**
* <code>optional uint32 sub_story_id = 4;</code>
* @return whether the subStoryId field is set
*/
public boolean hasSubStoryId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 sub_story_id = 4;</code>
* @return this
*/
public ChessRogueNousSubStoryInfo clearSubStoryId() {
bitField0_ &= ~0x00000001;
subStoryId = 0;
return this;
}
/**
* <code>optional uint32 sub_story_id = 4;</code>
* @return the subStoryId
*/
public int getSubStoryId() {
return subStoryId;
}
/**
* <code>optional uint32 sub_story_id = 4;</code>
* @param value the subStoryId to set
* @return this
*/
public ChessRogueNousSubStoryInfo setSubStoryId(final int value) {
bitField0_ |= 0x00000001;
subStoryId = value;
return this;
}
@Override
public ChessRogueNousSubStoryInfo copyFrom(final ChessRogueNousSubStoryInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
subStoryId = other.subStoryId;
}
return this;
}
@Override
public ChessRogueNousSubStoryInfo mergeFrom(final ChessRogueNousSubStoryInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasSubStoryId()) {
setSubStoryId(other.subStoryId);
}
return this;
}
@Override
public ChessRogueNousSubStoryInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
subStoryId = 0;
return this;
}
@Override
public ChessRogueNousSubStoryInfo 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 ChessRogueNousSubStoryInfo)) {
return false;
}
ChessRogueNousSubStoryInfo other = (ChessRogueNousSubStoryInfo) o;
return bitField0_ == other.bitField0_
&& (!hasSubStoryId() || subStoryId == other.subStoryId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(subStoryId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(subStoryId);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousSubStoryInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 32: {
// subStoryId
subStoryId = input.readUInt32();
bitField0_ |= 0x00000001;
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.subStoryId, subStoryId);
}
output.endObject();
}
@Override
public ChessRogueNousSubStoryInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 929098384:
case 1899516868: {
if (input.isAtField(FieldNames.subStoryId)) {
if (!input.trySkipNullValue()) {
subStoryId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousSubStoryInfo clone() {
return new ChessRogueNousSubStoryInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousSubStoryInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousSubStoryInfo(), data).checkInitialized();
}
public static ChessRogueNousSubStoryInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousSubStoryInfo(), input).checkInitialized();
}
public static ChessRogueNousSubStoryInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousSubStoryInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousSubStoryInfo messages
*/
public static MessageFactory<ChessRogueNousSubStoryInfo> getFactory() {
return ChessRogueNousSubStoryInfoFactory.INSTANCE;
}
private enum ChessRogueNousSubStoryInfoFactory implements MessageFactory<ChessRogueNousSubStoryInfo> {
INSTANCE;
@Override
public ChessRogueNousSubStoryInfo create() {
return ChessRogueNousSubStoryInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName subStoryId = FieldName.forField("subStoryId", "sub_story_id");
}
}
}

View File

@ -0,0 +1,259 @@
// 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 ChessRogueNousValueOuterClass {
/**
* Protobuf type {@code ChessRogueNousValue}
*/
public static final class ChessRogueNousValue extends ProtoMessage<ChessRogueNousValue> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional sint32 value = 13;</code>
*/
private int value_;
private ChessRogueNousValue() {
}
/**
* @return a new empty instance of {@code ChessRogueNousValue}
*/
public static ChessRogueNousValue newInstance() {
return new ChessRogueNousValue();
}
/**
* <code>optional sint32 value = 13;</code>
* @return whether the value_ field is set
*/
public boolean hasValue() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional sint32 value = 13;</code>
* @return this
*/
public ChessRogueNousValue clearValue() {
bitField0_ &= ~0x00000001;
value_ = 0;
return this;
}
/**
* <code>optional sint32 value = 13;</code>
* @return the value_
*/
public int getValue() {
return value_;
}
/**
* <code>optional sint32 value = 13;</code>
* @param value the value_ to set
* @return this
*/
public ChessRogueNousValue setValue(final int value) {
bitField0_ |= 0x00000001;
value_ = value;
return this;
}
@Override
public ChessRogueNousValue copyFrom(final ChessRogueNousValue other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
value_ = other.value_;
}
return this;
}
@Override
public ChessRogueNousValue mergeFrom(final ChessRogueNousValue other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasValue()) {
setValue(other.value_);
}
return this;
}
@Override
public ChessRogueNousValue clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
value_ = 0;
return this;
}
@Override
public ChessRogueNousValue 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 ChessRogueNousValue)) {
return false;
}
ChessRogueNousValue other = (ChessRogueNousValue) o;
return bitField0_ == other.bitField0_
&& (!hasValue() || value_ == other.value_);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeSInt32NoTag(value_);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeSInt32SizeNoTag(value_);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueNousValue mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
// value_
value_ = input.readSInt32();
bitField0_ |= 0x00000001;
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.writeSInt32(FieldNames.value_, value_);
}
output.endObject();
}
@Override
public ChessRogueNousValue mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 111972721: {
if (input.isAtField(FieldNames.value_)) {
if (!input.trySkipNullValue()) {
value_ = input.readSInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueNousValue clone() {
return new ChessRogueNousValue().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueNousValue parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueNousValue(), data).checkInitialized();
}
public static ChessRogueNousValue parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousValue(), input).checkInitialized();
}
public static ChessRogueNousValue parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueNousValue(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueNousValue messages
*/
public static MessageFactory<ChessRogueNousValue> getFactory() {
return ChessRogueNousValueFactory.INSTANCE;
}
private enum ChessRogueNousValueFactory implements MessageFactory<ChessRogueNousValue> {
INSTANCE;
@Override
public ChessRogueNousValue create() {
return ChessRogueNousValue.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName value_ = FieldName.forField("value");
}
}
}

View File

@ -0,0 +1,937 @@
// 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;
import us.hebi.quickbuf.RepeatedInt;
import us.hebi.quickbuf.RepeatedMessage;
public final class ChessRogueQueryOuterClass {
/**
* Protobuf type {@code ChessRogueQuery}
*/
public static final class ChessRogueQuery extends ProtoMessage<ChessRogueQuery> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 KDHBPKCKEAL = 10;</code>
*/
private int kDHBPKCKEAL;
/**
* <code>repeated uint32 main_story_id = 8;</code>
*/
private final RepeatedInt mainStoryId = RepeatedInt.newEmptyInstance();
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</code>
*/
private final RepeatedMessage<EKLAFMBHNIPEntry> eKLAFMBHNIP = RepeatedMessage.newEmptyInstance(EKLAFMBHNIPEntry.getFactory());
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</code>
*/
private final RepeatedMessage<ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo> diceInfo = RepeatedMessage.newEmptyInstance(ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.getFactory());
private ChessRogueQuery() {
}
/**
* @return a new empty instance of {@code ChessRogueQuery}
*/
public static ChessRogueQuery newInstance() {
return new ChessRogueQuery();
}
/**
* <code>optional uint32 KDHBPKCKEAL = 10;</code>
* @return whether the kDHBPKCKEAL field is set
*/
public boolean hasKDHBPKCKEAL() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 KDHBPKCKEAL = 10;</code>
* @return this
*/
public ChessRogueQuery clearKDHBPKCKEAL() {
bitField0_ &= ~0x00000001;
kDHBPKCKEAL = 0;
return this;
}
/**
* <code>optional uint32 KDHBPKCKEAL = 10;</code>
* @return the kDHBPKCKEAL
*/
public int getKDHBPKCKEAL() {
return kDHBPKCKEAL;
}
/**
* <code>optional uint32 KDHBPKCKEAL = 10;</code>
* @param value the kDHBPKCKEAL to set
* @return this
*/
public ChessRogueQuery setKDHBPKCKEAL(final int value) {
bitField0_ |= 0x00000001;
kDHBPKCKEAL = value;
return this;
}
/**
* <code>repeated uint32 main_story_id = 8;</code>
* @return whether the mainStoryId field is set
*/
public boolean hasMainStoryId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated uint32 main_story_id = 8;</code>
* @return this
*/
public ChessRogueQuery clearMainStoryId() {
bitField0_ &= ~0x00000002;
mainStoryId.clear();
return this;
}
/**
* <code>repeated uint32 main_story_id = 8;</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 #getMutableMainStoryId()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getMainStoryId() {
return mainStoryId;
}
/**
* <code>repeated uint32 main_story_id = 8;</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 RepeatedInt getMutableMainStoryId() {
bitField0_ |= 0x00000002;
return mainStoryId;
}
/**
* <code>repeated uint32 main_story_id = 8;</code>
* @param value the mainStoryId to add
* @return this
*/
public ChessRogueQuery addMainStoryId(final int value) {
bitField0_ |= 0x00000002;
mainStoryId.add(value);
return this;
}
/**
* <code>repeated uint32 main_story_id = 8;</code>
* @param values the mainStoryId to add
* @return this
*/
public ChessRogueQuery addAllMainStoryId(final int... values) {
bitField0_ |= 0x00000002;
mainStoryId.addAll(values);
return this;
}
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</code>
* @return whether the eKLAFMBHNIP field is set
*/
public boolean hasEKLAFMBHNIP() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</code>
* @return this
*/
public ChessRogueQuery clearEKLAFMBHNIP() {
bitField0_ &= ~0x00000004;
eKLAFMBHNIP.clear();
return this;
}
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</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 #getMutableEKLAFMBHNIP()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<EKLAFMBHNIPEntry> getEKLAFMBHNIP() {
return eKLAFMBHNIP;
}
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</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 RepeatedMessage<EKLAFMBHNIPEntry> getMutableEKLAFMBHNIP() {
bitField0_ |= 0x00000004;
return eKLAFMBHNIP;
}
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</code>
* @param value the eKLAFMBHNIP to add
* @return this
*/
public ChessRogueQuery addEKLAFMBHNIP(final EKLAFMBHNIPEntry value) {
bitField0_ |= 0x00000004;
eKLAFMBHNIP.add(value);
return this;
}
/**
* <code>repeated .ChessRogueQuery.EKLAFMBHNIPEntry EKLAFMBHNIP = 6;</code>
* @param values the eKLAFMBHNIP to add
* @return this
*/
public ChessRogueQuery addAllEKLAFMBHNIP(final EKLAFMBHNIPEntry... values) {
bitField0_ |= 0x00000004;
eKLAFMBHNIP.addAll(values);
return this;
}
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</code>
* @return whether the diceInfo field is set
*/
public boolean hasDiceInfo() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</code>
* @return this
*/
public ChessRogueQuery clearDiceInfo() {
bitField0_ &= ~0x00000008;
diceInfo.clear();
return this;
}
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</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 #getMutableDiceInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo> getDiceInfo() {
return diceInfo;
}
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</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 RepeatedMessage<ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo> getMutableDiceInfo(
) {
bitField0_ |= 0x00000008;
return diceInfo;
}
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</code>
* @param value the diceInfo to add
* @return this
*/
public ChessRogueQuery addDiceInfo(
final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) {
bitField0_ |= 0x00000008;
diceInfo.add(value);
return this;
}
/**
* <code>repeated .ChessRogueNousDiceInfo dice_info = 12;</code>
* @param values the diceInfo to add
* @return this
*/
public ChessRogueQuery addAllDiceInfo(
final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo... values) {
bitField0_ |= 0x00000008;
diceInfo.addAll(values);
return this;
}
@Override
public ChessRogueQuery copyFrom(final ChessRogueQuery other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
kDHBPKCKEAL = other.kDHBPKCKEAL;
mainStoryId.copyFrom(other.mainStoryId);
eKLAFMBHNIP.copyFrom(other.eKLAFMBHNIP);
diceInfo.copyFrom(other.diceInfo);
}
return this;
}
@Override
public ChessRogueQuery mergeFrom(final ChessRogueQuery other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasKDHBPKCKEAL()) {
setKDHBPKCKEAL(other.kDHBPKCKEAL);
}
if (other.hasMainStoryId()) {
getMutableMainStoryId().addAll(other.mainStoryId);
}
if (other.hasEKLAFMBHNIP()) {
getMutableEKLAFMBHNIP().addAll(other.eKLAFMBHNIP);
}
if (other.hasDiceInfo()) {
getMutableDiceInfo().addAll(other.diceInfo);
}
return this;
}
@Override
public ChessRogueQuery clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
kDHBPKCKEAL = 0;
mainStoryId.clear();
eKLAFMBHNIP.clear();
diceInfo.clear();
return this;
}
@Override
public ChessRogueQuery clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
mainStoryId.clear();
eKLAFMBHNIP.clearQuick();
diceInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueQuery)) {
return false;
}
ChessRogueQuery other = (ChessRogueQuery) o;
return bitField0_ == other.bitField0_
&& (!hasKDHBPKCKEAL() || kDHBPKCKEAL == other.kDHBPKCKEAL)
&& (!hasMainStoryId() || mainStoryId.equals(other.mainStoryId))
&& (!hasEKLAFMBHNIP() || eKLAFMBHNIP.equals(other.eKLAFMBHNIP))
&& (!hasDiceInfo() || diceInfo.equals(other.diceInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 80);
output.writeUInt32NoTag(kDHBPKCKEAL);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < mainStoryId.length(); i++) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(mainStoryId.array()[i]);
}
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < eKLAFMBHNIP.length(); i++) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(eKLAFMBHNIP.get(i));
}
}
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < diceInfo.length(); i++) {
output.writeRawByte((byte) 98);
output.writeMessageNoTag(diceInfo.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(kDHBPKCKEAL);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * mainStoryId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainStoryId);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * eKLAFMBHNIP.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eKLAFMBHNIP);
}
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * diceInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(diceInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueQuery mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 80: {
// kDHBPKCKEAL
kDHBPKCKEAL = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 66) {
break;
}
}
case 66: {
// mainStoryId [packed=true]
input.readPackedUInt32(mainStoryId, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// eKLAFMBHNIP
tag = input.readRepeatedMessage(eKLAFMBHNIP, tag);
bitField0_ |= 0x00000004;
if (tag != 98) {
break;
}
}
case 98: {
// diceInfo
tag = input.readRepeatedMessage(diceInfo, tag);
bitField0_ |= 0x00000008;
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 64: {
// mainStoryId [packed=false]
tag = input.readRepeatedUInt32(mainStoryId, tag);
bitField0_ |= 0x00000002;
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.kDHBPKCKEAL, kDHBPKCKEAL);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedUInt32(FieldNames.mainStoryId, mainStoryId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedMessage(FieldNames.eKLAFMBHNIP, eKLAFMBHNIP);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedMessage(FieldNames.diceInfo, diceInfo);
}
output.endObject();
}
@Override
public ChessRogueQuery mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 160463162: {
if (input.isAtField(FieldNames.kDHBPKCKEAL)) {
if (!input.trySkipNullValue()) {
kDHBPKCKEAL = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1525676279:
case -314743701: {
if (input.isAtField(FieldNames.mainStoryId)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(mainStoryId);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 365100685: {
if (input.isAtField(FieldNames.eKLAFMBHNIP)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(eKLAFMBHNIP);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -184174347:
case -1394261434: {
if (input.isAtField(FieldNames.diceInfo)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(diceInfo);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueQuery clone() {
return new ChessRogueQuery().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueQuery parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueQuery(), data).checkInitialized();
}
public static ChessRogueQuery parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueQuery(), input).checkInitialized();
}
public static ChessRogueQuery parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueQuery(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueQuery messages
*/
public static MessageFactory<ChessRogueQuery> getFactory() {
return ChessRogueQueryFactory.INSTANCE;
}
/**
* Protobuf type {@code EKLAFMBHNIPEntry}
*/
public static final class EKLAFMBHNIPEntry extends ProtoMessage<EKLAFMBHNIPEntry> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 key = 1;</code>
*/
private int key;
/**
* <code>optional bool value = 2;</code>
*/
private boolean value_;
private EKLAFMBHNIPEntry() {
}
/**
* @return a new empty instance of {@code EKLAFMBHNIPEntry}
*/
public static EKLAFMBHNIPEntry newInstance() {
return new EKLAFMBHNIPEntry();
}
/**
* <code>optional uint32 key = 1;</code>
* @return whether the key field is set
*/
public boolean hasKey() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 key = 1;</code>
* @return this
*/
public EKLAFMBHNIPEntry clearKey() {
bitField0_ &= ~0x00000001;
key = 0;
return this;
}
/**
* <code>optional uint32 key = 1;</code>
* @return the key
*/
public int getKey() {
return key;
}
/**
* <code>optional uint32 key = 1;</code>
* @param value the key to set
* @return this
*/
public EKLAFMBHNIPEntry setKey(final int value) {
bitField0_ |= 0x00000001;
key = value;
return this;
}
/**
* <code>optional bool value = 2;</code>
* @return whether the value_ field is set
*/
public boolean hasValue() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bool value = 2;</code>
* @return this
*/
public EKLAFMBHNIPEntry clearValue() {
bitField0_ &= ~0x00000002;
value_ = false;
return this;
}
/**
* <code>optional bool value = 2;</code>
* @return the value_
*/
public boolean getValue() {
return value_;
}
/**
* <code>optional bool value = 2;</code>
* @param value the value_ to set
* @return this
*/
public EKLAFMBHNIPEntry setValue(final boolean value) {
bitField0_ |= 0x00000002;
value_ = value;
return this;
}
@Override
public EKLAFMBHNIPEntry copyFrom(final EKLAFMBHNIPEntry other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
key = other.key;
value_ = other.value_;
}
return this;
}
@Override
public EKLAFMBHNIPEntry mergeFrom(final EKLAFMBHNIPEntry other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasKey()) {
setKey(other.key);
}
if (other.hasValue()) {
setValue(other.value_);
}
return this;
}
@Override
public EKLAFMBHNIPEntry clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
key = 0;
value_ = false;
return this;
}
@Override
public EKLAFMBHNIPEntry 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 EKLAFMBHNIPEntry)) {
return false;
}
EKLAFMBHNIPEntry other = (EKLAFMBHNIPEntry) o;
return bitField0_ == other.bitField0_
&& (!hasKey() || key == other.key)
&& (!hasValue() || value_ == other.value_);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(key);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 16);
output.writeBoolNoTag(value_);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(key);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2;
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public EKLAFMBHNIPEntry mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// key
key = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16) {
break;
}
}
case 16: {
// value_
value_ = input.readBool();
bitField0_ |= 0x00000002;
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.key, key);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBool(FieldNames.value_, value_);
}
output.endObject();
}
@Override
public EKLAFMBHNIPEntry mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 106079: {
if (input.isAtField(FieldNames.key)) {
if (!input.trySkipNullValue()) {
key = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 111972721: {
if (input.isAtField(FieldNames.value_)) {
if (!input.trySkipNullValue()) {
value_ = input.readBool();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public EKLAFMBHNIPEntry clone() {
return new EKLAFMBHNIPEntry().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static EKLAFMBHNIPEntry parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new EKLAFMBHNIPEntry(), data).checkInitialized();
}
public static EKLAFMBHNIPEntry parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new EKLAFMBHNIPEntry(), input).checkInitialized();
}
public static EKLAFMBHNIPEntry parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new EKLAFMBHNIPEntry(), input).checkInitialized();
}
/**
* @return factory for creating EKLAFMBHNIPEntry messages
*/
public static MessageFactory<EKLAFMBHNIPEntry> getFactory() {
return EKLAFMBHNIPEntryFactory.INSTANCE;
}
private enum EKLAFMBHNIPEntryFactory implements MessageFactory<EKLAFMBHNIPEntry> {
INSTANCE;
@Override
public EKLAFMBHNIPEntry create() {
return EKLAFMBHNIPEntry.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName key = FieldName.forField("key");
static final FieldName value_ = FieldName.forField("value");
}
}
private enum ChessRogueQueryFactory implements MessageFactory<ChessRogueQuery> {
INSTANCE;
@Override
public ChessRogueQuery create() {
return ChessRogueQuery.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName kDHBPKCKEAL = FieldName.forField("KDHBPKCKEAL");
static final FieldName mainStoryId = FieldName.forField("mainStoryId", "main_story_id");
static final FieldName eKLAFMBHNIP = FieldName.forField("EKLAFMBHNIP");
static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info");
}
}
}

View File

@ -0,0 +1,501 @@
// 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 ChessRogueQueryScRspOuterClass {
/**
* Protobuf type {@code ChessRogueQueryScRsp}
*/
public static final class ChessRogueQueryScRsp extends ProtoMessage<ChessRogueQueryScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 3;</code>
*/
private int retcode;
/**
* <code>optional .ChessRogueNousQueryInfo rogue_nous = 10;</code>
*/
private final ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo rogueNous = ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo.newInstance();
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 15;
* HFKELKECMJE MKCLHOMEICF = 4;
* JDFLHMLFFIL NOGDNLNLMJH = 9;
* </pre>
*
* <code>optional .ChessRogueCurrentInfo current_info = 12;</code>
*/
private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo currentInfo = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance();
private ChessRogueQueryScRsp() {
}
/**
* @return a new empty instance of {@code ChessRogueQueryScRsp}
*/
public static ChessRogueQueryScRsp newInstance() {
return new ChessRogueQueryScRsp();
}
/**
* <code>optional uint32 retcode = 3;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 retcode = 3;</code>
* @return this
*/
public ChessRogueQueryScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 3;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 3;</code>
* @param value the retcode to set
* @return this
*/
public ChessRogueQueryScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>optional .ChessRogueNousQueryInfo rogue_nous = 10;</code>
* @return whether the rogueNous field is set
*/
public boolean hasRogueNous() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .ChessRogueNousQueryInfo rogue_nous = 10;</code>
* @return this
*/
public ChessRogueQueryScRsp clearRogueNous() {
bitField0_ &= ~0x00000002;
rogueNous.clear();
return this;
}
/**
* <code>optional .ChessRogueNousQueryInfo rogue_nous = 10;</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 #getMutableRogueNous()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo getRogueNous() {
return rogueNous;
}
/**
* <code>optional .ChessRogueNousQueryInfo rogue_nous = 10;</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 ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo getMutableRogueNous() {
bitField0_ |= 0x00000002;
return rogueNous;
}
/**
* <code>optional .ChessRogueNousQueryInfo rogue_nous = 10;</code>
* @param value the rogueNous to set
* @return this
*/
public ChessRogueQueryScRsp setRogueNous(
final ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo value) {
bitField0_ |= 0x00000002;
rogueNous.copyFrom(value);
return this;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 15;
* HFKELKECMJE MKCLHOMEICF = 4;
* JDFLHMLFFIL NOGDNLNLMJH = 9;
* </pre>
*
* <code>optional .ChessRogueCurrentInfo current_info = 12;</code>
* @return whether the currentInfo field is set
*/
public boolean hasCurrentInfo() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 15;
* HFKELKECMJE MKCLHOMEICF = 4;
* JDFLHMLFFIL NOGDNLNLMJH = 9;
* </pre>
*
* <code>optional .ChessRogueCurrentInfo current_info = 12;</code>
* @return this
*/
public ChessRogueQueryScRsp clearCurrentInfo() {
bitField0_ &= ~0x00000004;
currentInfo.clear();
return this;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 15;
* HFKELKECMJE MKCLHOMEICF = 4;
* JDFLHMLFFIL NOGDNLNLMJH = 9;
* </pre>
*
* <code>optional .ChessRogueCurrentInfo current_info = 12;</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 #getMutableCurrentInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getCurrentInfo() {
return currentInfo;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 15;
* HFKELKECMJE MKCLHOMEICF = 4;
* JDFLHMLFFIL NOGDNLNLMJH = 9;
* </pre>
*
* <code>optional .ChessRogueCurrentInfo current_info = 12;</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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableCurrentInfo() {
bitField0_ |= 0x00000004;
return currentInfo;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 15;
* HFKELKECMJE MKCLHOMEICF = 4;
* JDFLHMLFFIL NOGDNLNLMJH = 9;
* </pre>
*
* <code>optional .ChessRogueCurrentInfo current_info = 12;</code>
* @param value the currentInfo to set
* @return this
*/
public ChessRogueQueryScRsp setCurrentInfo(
final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) {
bitField0_ |= 0x00000004;
currentInfo.copyFrom(value);
return this;
}
@Override
public ChessRogueQueryScRsp copyFrom(final ChessRogueQueryScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
rogueNous.copyFrom(other.rogueNous);
currentInfo.copyFrom(other.currentInfo);
}
return this;
}
@Override
public ChessRogueQueryScRsp mergeFrom(final ChessRogueQueryScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasRogueNous()) {
getMutableRogueNous().mergeFrom(other.rogueNous);
}
if (other.hasCurrentInfo()) {
getMutableCurrentInfo().mergeFrom(other.currentInfo);
}
return this;
}
@Override
public ChessRogueQueryScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
rogueNous.clear();
currentInfo.clear();
return this;
}
@Override
public ChessRogueQueryScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
rogueNous.clearQuick();
currentInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueQueryScRsp)) {
return false;
}
ChessRogueQueryScRsp other = (ChessRogueQueryScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasRogueNous() || rogueNous.equals(other.rogueNous))
&& (!hasCurrentInfo() || currentInfo.equals(other.currentInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 82);
output.writeMessageNoTag(rogueNous);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 98);
output.writeMessageNoTag(currentInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(rogueNous);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(currentInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueQueryScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 24: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 82) {
break;
}
}
case 82: {
// rogueNous
input.readMessage(rogueNous);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 98) {
break;
}
}
case 98: {
// currentInfo
input.readMessage(currentInfo);
bitField0_ |= 0x00000004;
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.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.rogueNous, rogueNous);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeMessage(FieldNames.currentInfo, currentInfo);
}
output.endObject();
}
@Override
public ChessRogueQueryScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 655959321:
case -1124433052: {
if (input.isAtField(FieldNames.rogueNous)) {
if (!input.trySkipNullValue()) {
input.readMessage(rogueNous);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 600912327:
case 1468588980: {
if (input.isAtField(FieldNames.currentInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(currentInfo);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueQueryScRsp clone() {
return new ChessRogueQueryScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueQueryScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), data).checkInitialized();
}
public static ChessRogueQueryScRsp parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), input).checkInitialized();
}
public static ChessRogueQueryScRsp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueQueryScRsp(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueQueryScRsp messages
*/
public static MessageFactory<ChessRogueQueryScRsp> getFactory() {
return ChessRogueQueryScRspFactory.INSTANCE;
}
private enum ChessRogueQueryScRspFactory implements MessageFactory<ChessRogueQueryScRsp> {
INSTANCE;
@Override
public ChessRogueQueryScRsp create() {
return ChessRogueQueryScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName rogueNous = FieldName.forField("rogueNous", "rogue_nous");
static final FieldName currentInfo = FieldName.forField("currentInfo", "current_info");
}
}
}

View File

@ -0,0 +1,260 @@
// 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 ChessRogueReRollDiceCsReqOuterClass {
/**
* Protobuf type {@code ChessRogueReRollDiceCsReq}
*/
public static final class ChessRogueReRollDiceCsReq extends ProtoMessage<ChessRogueReRollDiceCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 entity_id = 14;</code>
*/
private int entityId;
private ChessRogueReRollDiceCsReq() {
}
/**
* @return a new empty instance of {@code ChessRogueReRollDiceCsReq}
*/
public static ChessRogueReRollDiceCsReq newInstance() {
return new ChessRogueReRollDiceCsReq();
}
/**
* <code>optional uint32 entity_id = 14;</code>
* @return whether the entityId field is set
*/
public boolean hasEntityId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 entity_id = 14;</code>
* @return this
*/
public ChessRogueReRollDiceCsReq clearEntityId() {
bitField0_ &= ~0x00000001;
entityId = 0;
return this;
}
/**
* <code>optional uint32 entity_id = 14;</code>
* @return the entityId
*/
public int getEntityId() {
return entityId;
}
/**
* <code>optional uint32 entity_id = 14;</code>
* @param value the entityId to set
* @return this
*/
public ChessRogueReRollDiceCsReq setEntityId(final int value) {
bitField0_ |= 0x00000001;
entityId = value;
return this;
}
@Override
public ChessRogueReRollDiceCsReq copyFrom(final ChessRogueReRollDiceCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
entityId = other.entityId;
}
return this;
}
@Override
public ChessRogueReRollDiceCsReq mergeFrom(final ChessRogueReRollDiceCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasEntityId()) {
setEntityId(other.entityId);
}
return this;
}
@Override
public ChessRogueReRollDiceCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
entityId = 0;
return this;
}
@Override
public ChessRogueReRollDiceCsReq 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 ChessRogueReRollDiceCsReq)) {
return false;
}
ChessRogueReRollDiceCsReq other = (ChessRogueReRollDiceCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasEntityId() || entityId == other.entityId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 112);
output.writeUInt32NoTag(entityId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueReRollDiceCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 112: {
// entityId
entityId = input.readUInt32();
bitField0_ |= 0x00000001;
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.entityId, entityId);
}
output.endObject();
}
@Override
public ChessRogueReRollDiceCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -2102099874:
case -740565257: {
if (input.isAtField(FieldNames.entityId)) {
if (!input.trySkipNullValue()) {
entityId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueReRollDiceCsReq clone() {
return new ChessRogueReRollDiceCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueReRollDiceCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueReRollDiceCsReq(), data).checkInitialized();
}
public static ChessRogueReRollDiceCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueReRollDiceCsReq(), input).checkInitialized();
}
public static ChessRogueReRollDiceCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueReRollDiceCsReq(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueReRollDiceCsReq messages
*/
public static MessageFactory<ChessRogueReRollDiceCsReq> getFactory() {
return ChessRogueReRollDiceCsReqFactory.INSTANCE;
}
private enum ChessRogueReRollDiceCsReqFactory implements MessageFactory<ChessRogueReRollDiceCsReq> {
INSTANCE;
@Override
public ChessRogueReRollDiceCsReq create() {
return ChessRogueReRollDiceCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName entityId = FieldName.forField("entityId", "entity_id");
}
}
}

View File

@ -0,0 +1,260 @@
// 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 ChessRogueRollDiceCsReqOuterClass {
/**
* Protobuf type {@code ChessRogueRollDiceCsReq}
*/
public static final class ChessRogueRollDiceCsReq extends ProtoMessage<ChessRogueRollDiceCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 entity_id = 4;</code>
*/
private int entityId;
private ChessRogueRollDiceCsReq() {
}
/**
* @return a new empty instance of {@code ChessRogueRollDiceCsReq}
*/
public static ChessRogueRollDiceCsReq newInstance() {
return new ChessRogueRollDiceCsReq();
}
/**
* <code>optional uint32 entity_id = 4;</code>
* @return whether the entityId field is set
*/
public boolean hasEntityId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 entity_id = 4;</code>
* @return this
*/
public ChessRogueRollDiceCsReq clearEntityId() {
bitField0_ &= ~0x00000001;
entityId = 0;
return this;
}
/**
* <code>optional uint32 entity_id = 4;</code>
* @return the entityId
*/
public int getEntityId() {
return entityId;
}
/**
* <code>optional uint32 entity_id = 4;</code>
* @param value the entityId to set
* @return this
*/
public ChessRogueRollDiceCsReq setEntityId(final int value) {
bitField0_ |= 0x00000001;
entityId = value;
return this;
}
@Override
public ChessRogueRollDiceCsReq copyFrom(final ChessRogueRollDiceCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
entityId = other.entityId;
}
return this;
}
@Override
public ChessRogueRollDiceCsReq mergeFrom(final ChessRogueRollDiceCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasEntityId()) {
setEntityId(other.entityId);
}
return this;
}
@Override
public ChessRogueRollDiceCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
entityId = 0;
return this;
}
@Override
public ChessRogueRollDiceCsReq 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 ChessRogueRollDiceCsReq)) {
return false;
}
ChessRogueRollDiceCsReq other = (ChessRogueRollDiceCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasEntityId() || entityId == other.entityId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(entityId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueRollDiceCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 32: {
// entityId
entityId = input.readUInt32();
bitField0_ |= 0x00000001;
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.entityId, entityId);
}
output.endObject();
}
@Override
public ChessRogueRollDiceCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -2102099874:
case -740565257: {
if (input.isAtField(FieldNames.entityId)) {
if (!input.trySkipNullValue()) {
entityId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueRollDiceCsReq clone() {
return new ChessRogueRollDiceCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueRollDiceCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueRollDiceCsReq(), data).checkInitialized();
}
public static ChessRogueRollDiceCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueRollDiceCsReq(), input).checkInitialized();
}
public static ChessRogueRollDiceCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueRollDiceCsReq(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueRollDiceCsReq messages
*/
public static MessageFactory<ChessRogueRollDiceCsReq> getFactory() {
return ChessRogueRollDiceCsReqFactory.INSTANCE;
}
private enum ChessRogueRollDiceCsReqFactory implements MessageFactory<ChessRogueRollDiceCsReq> {
INSTANCE;
@Override
public ChessRogueRollDiceCsReq create() {
return ChessRogueRollDiceCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName entityId = FieldName.forField("entityId", "entity_id");
}
}
}

View File

@ -0,0 +1,442 @@
// 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 ChessRogueRollDiceScRspOuterClass {
/**
* Protobuf type {@code ChessRogueRollDiceScRsp}
*/
public static final class ChessRogueRollDiceScRsp extends ProtoMessage<ChessRogueRollDiceScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 10;</code>
*/
private int retcode;
/**
* <code>optional uint32 OHNDNDDKAEG = 11;</code>
*/
private int oHNDNDDKAEG;
/**
* <code>optional .ChessRogueNousDice nous_dice = 6;</code>
*/
private final ChessRogueNousDiceOuterClass.ChessRogueNousDice nousDice = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance();
private ChessRogueRollDiceScRsp() {
}
/**
* @return a new empty instance of {@code ChessRogueRollDiceScRsp}
*/
public static ChessRogueRollDiceScRsp newInstance() {
return new ChessRogueRollDiceScRsp();
}
/**
* <code>optional uint32 retcode = 10;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 retcode = 10;</code>
* @return this
*/
public ChessRogueRollDiceScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 10;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 10;</code>
* @param value the retcode to set
* @return this
*/
public ChessRogueRollDiceScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>optional uint32 OHNDNDDKAEG = 11;</code>
* @return whether the oHNDNDDKAEG field is set
*/
public boolean hasOHNDNDDKAEG() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 OHNDNDDKAEG = 11;</code>
* @return this
*/
public ChessRogueRollDiceScRsp clearOHNDNDDKAEG() {
bitField0_ &= ~0x00000002;
oHNDNDDKAEG = 0;
return this;
}
/**
* <code>optional uint32 OHNDNDDKAEG = 11;</code>
* @return the oHNDNDDKAEG
*/
public int getOHNDNDDKAEG() {
return oHNDNDDKAEG;
}
/**
* <code>optional uint32 OHNDNDDKAEG = 11;</code>
* @param value the oHNDNDDKAEG to set
* @return this
*/
public ChessRogueRollDiceScRsp setOHNDNDDKAEG(final int value) {
bitField0_ |= 0x00000002;
oHNDNDDKAEG = value;
return this;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 6;</code>
* @return whether the nousDice field is set
*/
public boolean hasNousDice() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 6;</code>
* @return this
*/
public ChessRogueRollDiceScRsp clearNousDice() {
bitField0_ &= ~0x00000004;
nousDice.clear();
return this;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 6;</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 #getMutableNousDice()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousDiceOuterClass.ChessRogueNousDice getNousDice() {
return nousDice;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 6;</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 ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableNousDice() {
bitField0_ |= 0x00000004;
return nousDice;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 6;</code>
* @param value the nousDice to set
* @return this
*/
public ChessRogueRollDiceScRsp setNousDice(
final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) {
bitField0_ |= 0x00000004;
nousDice.copyFrom(value);
return this;
}
@Override
public ChessRogueRollDiceScRsp copyFrom(final ChessRogueRollDiceScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
oHNDNDDKAEG = other.oHNDNDDKAEG;
nousDice.copyFrom(other.nousDice);
}
return this;
}
@Override
public ChessRogueRollDiceScRsp mergeFrom(final ChessRogueRollDiceScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasOHNDNDDKAEG()) {
setOHNDNDDKAEG(other.oHNDNDDKAEG);
}
if (other.hasNousDice()) {
getMutableNousDice().mergeFrom(other.nousDice);
}
return this;
}
@Override
public ChessRogueRollDiceScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
oHNDNDDKAEG = 0;
nousDice.clear();
return this;
}
@Override
public ChessRogueRollDiceScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nousDice.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueRollDiceScRsp)) {
return false;
}
ChessRogueRollDiceScRsp other = (ChessRogueRollDiceScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasOHNDNDDKAEG() || oHNDNDDKAEG == other.oHNDNDDKAEG)
&& (!hasNousDice() || nousDice.equals(other.nousDice));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 80);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(oHNDNDDKAEG);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(nousDice);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(oHNDNDDKAEG);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(nousDice);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueRollDiceScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 80: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 88) {
break;
}
}
case 88: {
// oHNDNDDKAEG
oHNDNDDKAEG = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// nousDice
input.readMessage(nousDice);
bitField0_ |= 0x00000004;
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.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.oHNDNDDKAEG, oHNDNDDKAEG);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeMessage(FieldNames.nousDice, nousDice);
}
output.endObject();
}
@Override
public ChessRogueRollDiceScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 32875159: {
if (input.isAtField(FieldNames.oHNDNDDKAEG)) {
if (!input.trySkipNullValue()) {
oHNDNDDKAEG = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 1622214758:
case -1226158137: {
if (input.isAtField(FieldNames.nousDice)) {
if (!input.trySkipNullValue()) {
input.readMessage(nousDice);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueRollDiceScRsp clone() {
return new ChessRogueRollDiceScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueRollDiceScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueRollDiceScRsp(), data).checkInitialized();
}
public static ChessRogueRollDiceScRsp parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueRollDiceScRsp(), input).checkInitialized();
}
public static ChessRogueRollDiceScRsp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueRollDiceScRsp(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueRollDiceScRsp messages
*/
public static MessageFactory<ChessRogueRollDiceScRsp> getFactory() {
return ChessRogueRollDiceScRspFactory.INSTANCE;
}
private enum ChessRogueRollDiceScRspFactory implements MessageFactory<ChessRogueRollDiceScRsp> {
INSTANCE;
@Override
public ChessRogueRollDiceScRsp create() {
return ChessRogueRollDiceScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName oHNDNDDKAEG = FieldName.forField("OHNDNDDKAEG");
static final FieldName nousDice = FieldName.forField("nousDice", "nous_dice");
}
}
}

View File

@ -0,0 +1,260 @@
// 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 ChessRogueSelectCellCsReqOuterClass {
/**
* Protobuf type {@code ChessRogueSelectCellCsReq}
*/
public static final class ChessRogueSelectCellCsReq extends ProtoMessage<ChessRogueSelectCellCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 cell_id = 11;</code>
*/
private int cellId;
private ChessRogueSelectCellCsReq() {
}
/**
* @return a new empty instance of {@code ChessRogueSelectCellCsReq}
*/
public static ChessRogueSelectCellCsReq newInstance() {
return new ChessRogueSelectCellCsReq();
}
/**
* <code>optional uint32 cell_id = 11;</code>
* @return whether the cellId field is set
*/
public boolean hasCellId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 cell_id = 11;</code>
* @return this
*/
public ChessRogueSelectCellCsReq clearCellId() {
bitField0_ &= ~0x00000001;
cellId = 0;
return this;
}
/**
* <code>optional uint32 cell_id = 11;</code>
* @return the cellId
*/
public int getCellId() {
return cellId;
}
/**
* <code>optional uint32 cell_id = 11;</code>
* @param value the cellId to set
* @return this
*/
public ChessRogueSelectCellCsReq setCellId(final int value) {
bitField0_ |= 0x00000001;
cellId = value;
return this;
}
@Override
public ChessRogueSelectCellCsReq copyFrom(final ChessRogueSelectCellCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
cellId = other.cellId;
}
return this;
}
@Override
public ChessRogueSelectCellCsReq mergeFrom(final ChessRogueSelectCellCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasCellId()) {
setCellId(other.cellId);
}
return this;
}
@Override
public ChessRogueSelectCellCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
cellId = 0;
return this;
}
@Override
public ChessRogueSelectCellCsReq 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 ChessRogueSelectCellCsReq)) {
return false;
}
ChessRogueSelectCellCsReq other = (ChessRogueSelectCellCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasCellId() || cellId == other.cellId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(cellId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueSelectCellCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 88: {
// cellId
cellId = input.readUInt32();
bitField0_ |= 0x00000001;
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.cellId, cellId);
}
output.endObject();
}
@Override
public ChessRogueSelectCellCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1364082147:
case 663147800: {
if (input.isAtField(FieldNames.cellId)) {
if (!input.trySkipNullValue()) {
cellId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueSelectCellCsReq clone() {
return new ChessRogueSelectCellCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueSelectCellCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueSelectCellCsReq(), data).checkInitialized();
}
public static ChessRogueSelectCellCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueSelectCellCsReq(), input).checkInitialized();
}
public static ChessRogueSelectCellCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueSelectCellCsReq(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueSelectCellCsReq messages
*/
public static MessageFactory<ChessRogueSelectCellCsReq> getFactory() {
return ChessRogueSelectCellCsReqFactory.INSTANCE;
}
private enum ChessRogueSelectCellCsReqFactory implements MessageFactory<ChessRogueSelectCellCsReq> {
INSTANCE;
@Override
public ChessRogueSelectCellCsReq create() {
return ChessRogueSelectCellCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName cellId = FieldName.forField("cellId", "cell_id");
}
}
}

View File

@ -0,0 +1,521 @@
// 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 ChessRogueSelectCellScRspOuterClass {
/**
* Protobuf type {@code ChessRogueSelectCellScRsp}
*/
public static final class ChessRogueSelectCellScRsp extends ProtoMessage<ChessRogueSelectCellScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 JNBHLHFBBBJ = 5;</code>
*/
private int jNBHLHFBBBJ;
/**
* <code>optional uint32 retcode = 7;</code>
*/
private int retcode;
/**
* <code>optional uint32 cell_id = 13;</code>
*/
private int cellId;
/**
* <code>optional .LLJFPKKLGAK NDGOHDPDKAD = 10;</code>
*/
private final LLJFPKKLGAKOuterClass.LLJFPKKLGAK nDGOHDPDKAD = LLJFPKKLGAKOuterClass.LLJFPKKLGAK.newInstance();
private ChessRogueSelectCellScRsp() {
}
/**
* @return a new empty instance of {@code ChessRogueSelectCellScRsp}
*/
public static ChessRogueSelectCellScRsp newInstance() {
return new ChessRogueSelectCellScRsp();
}
/**
* <code>optional uint32 JNBHLHFBBBJ = 5;</code>
* @return whether the jNBHLHFBBBJ field is set
*/
public boolean hasJNBHLHFBBBJ() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 JNBHLHFBBBJ = 5;</code>
* @return this
*/
public ChessRogueSelectCellScRsp clearJNBHLHFBBBJ() {
bitField0_ &= ~0x00000001;
jNBHLHFBBBJ = 0;
return this;
}
/**
* <code>optional uint32 JNBHLHFBBBJ = 5;</code>
* @return the jNBHLHFBBBJ
*/
public int getJNBHLHFBBBJ() {
return jNBHLHFBBBJ;
}
/**
* <code>optional uint32 JNBHLHFBBBJ = 5;</code>
* @param value the jNBHLHFBBBJ to set
* @return this
*/
public ChessRogueSelectCellScRsp setJNBHLHFBBBJ(final int value) {
bitField0_ |= 0x00000001;
jNBHLHFBBBJ = value;
return this;
}
/**
* <code>optional uint32 retcode = 7;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 retcode = 7;</code>
* @return this
*/
public ChessRogueSelectCellScRsp clearRetcode() {
bitField0_ &= ~0x00000002;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 7;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 7;</code>
* @param value the retcode to set
* @return this
*/
public ChessRogueSelectCellScRsp setRetcode(final int value) {
bitField0_ |= 0x00000002;
retcode = value;
return this;
}
/**
* <code>optional uint32 cell_id = 13;</code>
* @return whether the cellId field is set
*/
public boolean hasCellId() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 cell_id = 13;</code>
* @return this
*/
public ChessRogueSelectCellScRsp clearCellId() {
bitField0_ &= ~0x00000004;
cellId = 0;
return this;
}
/**
* <code>optional uint32 cell_id = 13;</code>
* @return the cellId
*/
public int getCellId() {
return cellId;
}
/**
* <code>optional uint32 cell_id = 13;</code>
* @param value the cellId to set
* @return this
*/
public ChessRogueSelectCellScRsp setCellId(final int value) {
bitField0_ |= 0x00000004;
cellId = value;
return this;
}
/**
* <code>optional .LLJFPKKLGAK NDGOHDPDKAD = 10;</code>
* @return whether the nDGOHDPDKAD field is set
*/
public boolean hasNDGOHDPDKAD() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional .LLJFPKKLGAK NDGOHDPDKAD = 10;</code>
* @return this
*/
public ChessRogueSelectCellScRsp clearNDGOHDPDKAD() {
bitField0_ &= ~0x00000008;
nDGOHDPDKAD.clear();
return this;
}
/**
* <code>optional .LLJFPKKLGAK NDGOHDPDKAD = 10;</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 #getMutableNDGOHDPDKAD()} if you want to modify it.
*
* @return internal storage object for reading
*/
public LLJFPKKLGAKOuterClass.LLJFPKKLGAK getNDGOHDPDKAD() {
return nDGOHDPDKAD;
}
/**
* <code>optional .LLJFPKKLGAK NDGOHDPDKAD = 10;</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 LLJFPKKLGAKOuterClass.LLJFPKKLGAK getMutableNDGOHDPDKAD() {
bitField0_ |= 0x00000008;
return nDGOHDPDKAD;
}
/**
* <code>optional .LLJFPKKLGAK NDGOHDPDKAD = 10;</code>
* @param value the nDGOHDPDKAD to set
* @return this
*/
public ChessRogueSelectCellScRsp setNDGOHDPDKAD(final LLJFPKKLGAKOuterClass.LLJFPKKLGAK value) {
bitField0_ |= 0x00000008;
nDGOHDPDKAD.copyFrom(value);
return this;
}
@Override
public ChessRogueSelectCellScRsp copyFrom(final ChessRogueSelectCellScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
jNBHLHFBBBJ = other.jNBHLHFBBBJ;
retcode = other.retcode;
cellId = other.cellId;
nDGOHDPDKAD.copyFrom(other.nDGOHDPDKAD);
}
return this;
}
@Override
public ChessRogueSelectCellScRsp mergeFrom(final ChessRogueSelectCellScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasJNBHLHFBBBJ()) {
setJNBHLHFBBBJ(other.jNBHLHFBBBJ);
}
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasCellId()) {
setCellId(other.cellId);
}
if (other.hasNDGOHDPDKAD()) {
getMutableNDGOHDPDKAD().mergeFrom(other.nDGOHDPDKAD);
}
return this;
}
@Override
public ChessRogueSelectCellScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
jNBHLHFBBBJ = 0;
retcode = 0;
cellId = 0;
nDGOHDPDKAD.clear();
return this;
}
@Override
public ChessRogueSelectCellScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nDGOHDPDKAD.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueSelectCellScRsp)) {
return false;
}
ChessRogueSelectCellScRsp other = (ChessRogueSelectCellScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasJNBHLHFBBBJ() || jNBHLHFBBBJ == other.jNBHLHFBBBJ)
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasCellId() || cellId == other.cellId)
&& (!hasNDGOHDPDKAD() || nDGOHDPDKAD.equals(other.nDGOHDPDKAD));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(jNBHLHFBBBJ);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 56);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(cellId);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 82);
output.writeMessageNoTag(nDGOHDPDKAD);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(jNBHLHFBBBJ);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(nDGOHDPDKAD);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueSelectCellScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 40: {
// jNBHLHFBBBJ
jNBHLHFBBBJ = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 56) {
break;
}
}
case 56: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 104) {
break;
}
}
case 104: {
// cellId
cellId = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 82) {
break;
}
}
case 82: {
// nDGOHDPDKAD
input.readMessage(nDGOHDPDKAD);
bitField0_ |= 0x00000008;
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.jNBHLHFBBBJ, jNBHLHFBBBJ);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.retcode, retcode);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.cellId, cellId);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeMessage(FieldNames.nDGOHDPDKAD, nDGOHDPDKAD);
}
output.endObject();
}
@Override
public ChessRogueSelectCellScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 480596488: {
if (input.isAtField(FieldNames.jNBHLHFBBBJ)) {
if (!input.trySkipNullValue()) {
jNBHLHFBBBJ = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1364082147:
case 663147800: {
if (input.isAtField(FieldNames.cellId)) {
if (!input.trySkipNullValue()) {
cellId = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -939934496: {
if (input.isAtField(FieldNames.nDGOHDPDKAD)) {
if (!input.trySkipNullValue()) {
input.readMessage(nDGOHDPDKAD);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueSelectCellScRsp clone() {
return new ChessRogueSelectCellScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueSelectCellScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueSelectCellScRsp(), data).checkInitialized();
}
public static ChessRogueSelectCellScRsp parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueSelectCellScRsp(), input).checkInitialized();
}
public static ChessRogueSelectCellScRsp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueSelectCellScRsp(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueSelectCellScRsp messages
*/
public static MessageFactory<ChessRogueSelectCellScRsp> getFactory() {
return ChessRogueSelectCellScRspFactory.INSTANCE;
}
private enum ChessRogueSelectCellScRspFactory implements MessageFactory<ChessRogueSelectCellScRsp> {
INSTANCE;
@Override
public ChessRogueSelectCellScRsp create() {
return ChessRogueSelectCellScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName jNBHLHFBBBJ = FieldName.forField("JNBHLHFBBBJ");
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName cellId = FieldName.forField("cellId", "cell_id");
static final FieldName nDGOHDPDKAD = FieldName.forField("NDGOHDPDKAD");
}
}
}

View File

@ -0,0 +1,924 @@
// 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;
import us.hebi.quickbuf.RepeatedInt;
public final class ChessRogueStartCsReqOuterClass {
/**
* Protobuf type {@code ChessRogueStartCsReq}
*/
public static final class ChessRogueStartCsReq extends ProtoMessage<ChessRogueStartCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <pre>
* guess this is the difficulty level
* </pre>
*
* <code>optional uint32 KOLEFJKMFLF = 1;</code>
*/
private int kOLEFJKMFLF;
/**
* <code>optional uint32 area_id = 5;</code>
*/
private int areaId;
/**
* <code>optional uint32 dice_branch_id = 9;</code>
*/
private int diceBranchId;
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</code>
*/
private final RepeatedInt dDDICOEFHPM = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</code>
*/
private final RepeatedInt jDCMGPJHGLG = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 disable_aeon_id = 13;</code>
*/
private final RepeatedInt disableAeonId = RepeatedInt.newEmptyInstance();
/**
* <code>repeated uint32 base_avatar_id_list = 15;</code>
*/
private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance();
private ChessRogueStartCsReq() {
}
/**
* @return a new empty instance of {@code ChessRogueStartCsReq}
*/
public static ChessRogueStartCsReq newInstance() {
return new ChessRogueStartCsReq();
}
/**
* <pre>
* guess this is the difficulty level
* </pre>
*
* <code>optional uint32 KOLEFJKMFLF = 1;</code>
* @return whether the kOLEFJKMFLF field is set
*/
public boolean hasKOLEFJKMFLF() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <pre>
* guess this is the difficulty level
* </pre>
*
* <code>optional uint32 KOLEFJKMFLF = 1;</code>
* @return this
*/
public ChessRogueStartCsReq clearKOLEFJKMFLF() {
bitField0_ &= ~0x00000001;
kOLEFJKMFLF = 0;
return this;
}
/**
* <pre>
* guess this is the difficulty level
* </pre>
*
* <code>optional uint32 KOLEFJKMFLF = 1;</code>
* @return the kOLEFJKMFLF
*/
public int getKOLEFJKMFLF() {
return kOLEFJKMFLF;
}
/**
* <pre>
* guess this is the difficulty level
* </pre>
*
* <code>optional uint32 KOLEFJKMFLF = 1;</code>
* @param value the kOLEFJKMFLF to set
* @return this
*/
public ChessRogueStartCsReq setKOLEFJKMFLF(final int value) {
bitField0_ |= 0x00000001;
kOLEFJKMFLF = value;
return this;
}
/**
* <code>optional uint32 area_id = 5;</code>
* @return whether the areaId field is set
*/
public boolean hasAreaId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 area_id = 5;</code>
* @return this
*/
public ChessRogueStartCsReq clearAreaId() {
bitField0_ &= ~0x00000002;
areaId = 0;
return this;
}
/**
* <code>optional uint32 area_id = 5;</code>
* @return the areaId
*/
public int getAreaId() {
return areaId;
}
/**
* <code>optional uint32 area_id = 5;</code>
* @param value the areaId to set
* @return this
*/
public ChessRogueStartCsReq setAreaId(final int value) {
bitField0_ |= 0x00000002;
areaId = value;
return this;
}
/**
* <code>optional uint32 dice_branch_id = 9;</code>
* @return whether the diceBranchId field is set
*/
public boolean hasDiceBranchId() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 dice_branch_id = 9;</code>
* @return this
*/
public ChessRogueStartCsReq clearDiceBranchId() {
bitField0_ &= ~0x00000004;
diceBranchId = 0;
return this;
}
/**
* <code>optional uint32 dice_branch_id = 9;</code>
* @return the diceBranchId
*/
public int getDiceBranchId() {
return diceBranchId;
}
/**
* <code>optional uint32 dice_branch_id = 9;</code>
* @param value the diceBranchId to set
* @return this
*/
public ChessRogueStartCsReq setDiceBranchId(final int value) {
bitField0_ |= 0x00000004;
diceBranchId = value;
return this;
}
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</code>
* @return whether the dDDICOEFHPM field is set
*/
public boolean hasDDDICOEFHPM() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</code>
* @return this
*/
public ChessRogueStartCsReq clearDDDICOEFHPM() {
bitField0_ &= ~0x00000008;
dDDICOEFHPM.clear();
return this;
}
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</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 #getMutableDDDICOEFHPM()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getDDDICOEFHPM() {
return dDDICOEFHPM;
}
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</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 RepeatedInt getMutableDDDICOEFHPM() {
bitField0_ |= 0x00000008;
return dDDICOEFHPM;
}
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</code>
* @param value the dDDICOEFHPM to add
* @return this
*/
public ChessRogueStartCsReq addDDDICOEFHPM(final int value) {
bitField0_ |= 0x00000008;
dDDICOEFHPM.add(value);
return this;
}
/**
* <code>repeated uint32 DDDICOEFHPM = 6;</code>
* @param values the dDDICOEFHPM to add
* @return this
*/
public ChessRogueStartCsReq addAllDDDICOEFHPM(final int... values) {
bitField0_ |= 0x00000008;
dDDICOEFHPM.addAll(values);
return this;
}
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</code>
* @return whether the jDCMGPJHGLG field is set
*/
public boolean hasJDCMGPJHGLG() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</code>
* @return this
*/
public ChessRogueStartCsReq clearJDCMGPJHGLG() {
bitField0_ &= ~0x00000010;
jDCMGPJHGLG.clear();
return this;
}
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</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 #getMutableJDCMGPJHGLG()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getJDCMGPJHGLG() {
return jDCMGPJHGLG;
}
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</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 RepeatedInt getMutableJDCMGPJHGLG() {
bitField0_ |= 0x00000010;
return jDCMGPJHGLG;
}
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</code>
* @param value the jDCMGPJHGLG to add
* @return this
*/
public ChessRogueStartCsReq addJDCMGPJHGLG(final int value) {
bitField0_ |= 0x00000010;
jDCMGPJHGLG.add(value);
return this;
}
/**
* <code>repeated uint32 JDCMGPJHGLG = 8;</code>
* @param values the jDCMGPJHGLG to add
* @return this
*/
public ChessRogueStartCsReq addAllJDCMGPJHGLG(final int... values) {
bitField0_ |= 0x00000010;
jDCMGPJHGLG.addAll(values);
return this;
}
/**
* <code>repeated uint32 disable_aeon_id = 13;</code>
* @return whether the disableAeonId field is set
*/
public boolean hasDisableAeonId() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>repeated uint32 disable_aeon_id = 13;</code>
* @return this
*/
public ChessRogueStartCsReq clearDisableAeonId() {
bitField0_ &= ~0x00000020;
disableAeonId.clear();
return this;
}
/**
* <code>repeated uint32 disable_aeon_id = 13;</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 #getMutableDisableAeonId()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getDisableAeonId() {
return disableAeonId;
}
/**
* <code>repeated uint32 disable_aeon_id = 13;</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 RepeatedInt getMutableDisableAeonId() {
bitField0_ |= 0x00000020;
return disableAeonId;
}
/**
* <code>repeated uint32 disable_aeon_id = 13;</code>
* @param value the disableAeonId to add
* @return this
*/
public ChessRogueStartCsReq addDisableAeonId(final int value) {
bitField0_ |= 0x00000020;
disableAeonId.add(value);
return this;
}
/**
* <code>repeated uint32 disable_aeon_id = 13;</code>
* @param values the disableAeonId to add
* @return this
*/
public ChessRogueStartCsReq addAllDisableAeonId(final int... values) {
bitField0_ |= 0x00000020;
disableAeonId.addAll(values);
return this;
}
/**
* <code>repeated uint32 base_avatar_id_list = 15;</code>
* @return whether the baseAvatarIdList field is set
*/
public boolean hasBaseAvatarIdList() {
return (bitField0_ & 0x00000040) != 0;
}
/**
* <code>repeated uint32 base_avatar_id_list = 15;</code>
* @return this
*/
public ChessRogueStartCsReq clearBaseAvatarIdList() {
bitField0_ &= ~0x00000040;
baseAvatarIdList.clear();
return this;
}
/**
* <code>repeated uint32 base_avatar_id_list = 15;</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 #getMutableBaseAvatarIdList()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getBaseAvatarIdList() {
return baseAvatarIdList;
}
/**
* <code>repeated uint32 base_avatar_id_list = 15;</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 RepeatedInt getMutableBaseAvatarIdList() {
bitField0_ |= 0x00000040;
return baseAvatarIdList;
}
/**
* <code>repeated uint32 base_avatar_id_list = 15;</code>
* @param value the baseAvatarIdList to add
* @return this
*/
public ChessRogueStartCsReq addBaseAvatarIdList(final int value) {
bitField0_ |= 0x00000040;
baseAvatarIdList.add(value);
return this;
}
/**
* <code>repeated uint32 base_avatar_id_list = 15;</code>
* @param values the baseAvatarIdList to add
* @return this
*/
public ChessRogueStartCsReq addAllBaseAvatarIdList(final int... values) {
bitField0_ |= 0x00000040;
baseAvatarIdList.addAll(values);
return this;
}
@Override
public ChessRogueStartCsReq copyFrom(final ChessRogueStartCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
kOLEFJKMFLF = other.kOLEFJKMFLF;
areaId = other.areaId;
diceBranchId = other.diceBranchId;
dDDICOEFHPM.copyFrom(other.dDDICOEFHPM);
jDCMGPJHGLG.copyFrom(other.jDCMGPJHGLG);
disableAeonId.copyFrom(other.disableAeonId);
baseAvatarIdList.copyFrom(other.baseAvatarIdList);
}
return this;
}
@Override
public ChessRogueStartCsReq mergeFrom(final ChessRogueStartCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasKOLEFJKMFLF()) {
setKOLEFJKMFLF(other.kOLEFJKMFLF);
}
if (other.hasAreaId()) {
setAreaId(other.areaId);
}
if (other.hasDiceBranchId()) {
setDiceBranchId(other.diceBranchId);
}
if (other.hasDDDICOEFHPM()) {
getMutableDDDICOEFHPM().addAll(other.dDDICOEFHPM);
}
if (other.hasJDCMGPJHGLG()) {
getMutableJDCMGPJHGLG().addAll(other.jDCMGPJHGLG);
}
if (other.hasDisableAeonId()) {
getMutableDisableAeonId().addAll(other.disableAeonId);
}
if (other.hasBaseAvatarIdList()) {
getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList);
}
return this;
}
@Override
public ChessRogueStartCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
kOLEFJKMFLF = 0;
areaId = 0;
diceBranchId = 0;
dDDICOEFHPM.clear();
jDCMGPJHGLG.clear();
disableAeonId.clear();
baseAvatarIdList.clear();
return this;
}
@Override
public ChessRogueStartCsReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
dDDICOEFHPM.clear();
jDCMGPJHGLG.clear();
disableAeonId.clear();
baseAvatarIdList.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueStartCsReq)) {
return false;
}
ChessRogueStartCsReq other = (ChessRogueStartCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasKOLEFJKMFLF() || kOLEFJKMFLF == other.kOLEFJKMFLF)
&& (!hasAreaId() || areaId == other.areaId)
&& (!hasDiceBranchId() || diceBranchId == other.diceBranchId)
&& (!hasDDDICOEFHPM() || dDDICOEFHPM.equals(other.dDDICOEFHPM))
&& (!hasJDCMGPJHGLG() || jDCMGPJHGLG.equals(other.jDCMGPJHGLG))
&& (!hasDisableAeonId() || disableAeonId.equals(other.disableAeonId))
&& (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(kOLEFJKMFLF);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(areaId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(diceBranchId);
}
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < dDDICOEFHPM.length(); i++) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(dDDICOEFHPM.array()[i]);
}
}
if ((bitField0_ & 0x00000010) != 0) {
for (int i = 0; i < jDCMGPJHGLG.length(); i++) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(jDCMGPJHGLG.array()[i]);
}
}
if ((bitField0_ & 0x00000020) != 0) {
for (int i = 0; i < disableAeonId.length(); i++) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(disableAeonId.array()[i]);
}
}
if ((bitField0_ & 0x00000040) != 0) {
for (int i = 0; i < baseAvatarIdList.length(); i++) {
output.writeRawByte((byte) 120);
output.writeUInt32NoTag(baseAvatarIdList.array()[i]);
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(kOLEFJKMFLF);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchId);
}
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * dDDICOEFHPM.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dDDICOEFHPM);
}
if ((bitField0_ & 0x00000010) != 0) {
size += (1 * jDCMGPJHGLG.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(jDCMGPJHGLG);
}
if ((bitField0_ & 0x00000020) != 0) {
size += (1 * disableAeonId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disableAeonId);
}
if ((bitField0_ & 0x00000040) != 0) {
size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueStartCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// kOLEFJKMFLF
kOLEFJKMFLF = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 40) {
break;
}
}
case 40: {
// areaId
areaId = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 72) {
break;
}
}
case 72: {
// diceBranchId
diceBranchId = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// dDDICOEFHPM [packed=true]
input.readPackedUInt32(dDDICOEFHPM, tag);
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 66) {
break;
}
}
case 66: {
// jDCMGPJHGLG [packed=true]
input.readPackedUInt32(jDCMGPJHGLG, tag);
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 106) {
break;
}
}
case 106: {
// disableAeonId [packed=true]
input.readPackedUInt32(disableAeonId, tag);
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 122) {
break;
}
}
case 122: {
// baseAvatarIdList [packed=true]
input.readPackedUInt32(baseAvatarIdList, tag);
bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 48: {
// dDDICOEFHPM [packed=false]
tag = input.readRepeatedUInt32(dDDICOEFHPM, tag);
bitField0_ |= 0x00000008;
break;
}
case 64: {
// jDCMGPJHGLG [packed=false]
tag = input.readRepeatedUInt32(jDCMGPJHGLG, tag);
bitField0_ |= 0x00000010;
break;
}
case 104: {
// disableAeonId [packed=false]
tag = input.readRepeatedUInt32(disableAeonId, tag);
bitField0_ |= 0x00000020;
break;
}
case 120: {
// baseAvatarIdList [packed=false]
tag = input.readRepeatedUInt32(baseAvatarIdList, tag);
bitField0_ |= 0x00000040;
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.kOLEFJKMFLF, kOLEFJKMFLF);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.areaId, areaId);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.diceBranchId, diceBranchId);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedUInt32(FieldNames.dDDICOEFHPM, dDDICOEFHPM);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRepeatedUInt32(FieldNames.jDCMGPJHGLG, jDCMGPJHGLG);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRepeatedUInt32(FieldNames.disableAeonId, disableAeonId);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList);
}
output.endObject();
}
@Override
public ChessRogueStartCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -13887267: {
if (input.isAtField(FieldNames.kOLEFJKMFLF)) {
if (!input.trySkipNullValue()) {
kOLEFJKMFLF = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1409553784:
case -746472947: {
if (input.isAtField(FieldNames.areaId)) {
if (!input.trySkipNullValue()) {
areaId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 216999716:
case 1050456640: {
if (input.isAtField(FieldNames.diceBranchId)) {
if (!input.trySkipNullValue()) {
diceBranchId = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -727553421: {
if (input.isAtField(FieldNames.dDDICOEFHPM)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(dDDICOEFHPM);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case 852754199: {
if (input.isAtField(FieldNames.jDCMGPJHGLG)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(jDCMGPJHGLG);
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case -1370442106:
case -1529483392: {
if (input.isAtField(FieldNames.disableAeonId)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(disableAeonId);
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
case -1212654461:
case 914628490: {
if (input.isAtField(FieldNames.baseAvatarIdList)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(baseAvatarIdList);
bitField0_ |= 0x00000040;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueStartCsReq clone() {
return new ChessRogueStartCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueStartCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueStartCsReq(), data).checkInitialized();
}
public static ChessRogueStartCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueStartCsReq(), input).checkInitialized();
}
public static ChessRogueStartCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueStartCsReq(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueStartCsReq messages
*/
public static MessageFactory<ChessRogueStartCsReq> getFactory() {
return ChessRogueStartCsReqFactory.INSTANCE;
}
private enum ChessRogueStartCsReqFactory implements MessageFactory<ChessRogueStartCsReq> {
INSTANCE;
@Override
public ChessRogueStartCsReq create() {
return ChessRogueStartCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName kOLEFJKMFLF = FieldName.forField("KOLEFJKMFLF");
static final FieldName areaId = FieldName.forField("areaId", "area_id");
static final FieldName diceBranchId = FieldName.forField("diceBranchId", "dice_branch_id");
static final FieldName dDDICOEFHPM = FieldName.forField("DDDICOEFHPM");
static final FieldName jDCMGPJHGLG = FieldName.forField("JDCMGPJHGLG");
static final FieldName disableAeonId = FieldName.forField("disableAeonId", "disable_aeon_id");
static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list");
}
}
}

View File

@ -0,0 +1,794 @@
// 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 ChessRogueStartScRspOuterClass {
/**
* Protobuf type {@code ChessRogueStartScRsp}
*/
public static final class ChessRogueStartScRsp extends ProtoMessage<ChessRogueStartScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 2;</code>
*/
private int retcode;
/**
* <code>optional .LineupInfo lineup = 1;</code>
*/
private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance();
/**
* <code>optional .SceneInfo scene = 4;</code>
*/
private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance();
/**
* <code>optional .ChessRogueCellInfo cell_info = 7;</code>
*/
private final ChessRogueCellInfoOuterClass.ChessRogueCellInfo cellInfo = ChessRogueCellInfoOuterClass.ChessRogueCellInfo.newInstance();
/**
* <code>optional .ChessRogueCurrentInfo current_info = 10;</code>
*/
private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo currentInfo = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance();
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 13;
* </pre>
*
* <code>optional .ChessRogueInfo chess_rogue_info = 11;</code>
*/
private final ChessRogueInfoOuterClass.ChessRogueInfo chessRogueInfo = ChessRogueInfoOuterClass.ChessRogueInfo.newInstance();
private ChessRogueStartScRsp() {
}
/**
* @return a new empty instance of {@code ChessRogueStartScRsp}
*/
public static ChessRogueStartScRsp newInstance() {
return new ChessRogueStartScRsp();
}
/**
* <code>optional uint32 retcode = 2;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 retcode = 2;</code>
* @return this
*/
public ChessRogueStartScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 2;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 2;</code>
* @param value the retcode to set
* @return this
*/
public ChessRogueStartScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>optional .LineupInfo lineup = 1;</code>
* @return whether the lineup field is set
*/
public boolean hasLineup() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .LineupInfo lineup = 1;</code>
* @return this
*/
public ChessRogueStartScRsp clearLineup() {
bitField0_ &= ~0x00000002;
lineup.clear();
return this;
}
/**
* <code>optional .LineupInfo lineup = 1;</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 #getMutableLineup()} if you want to modify it.
*
* @return internal storage object for reading
*/
public LineupInfoOuterClass.LineupInfo getLineup() {
return lineup;
}
/**
* <code>optional .LineupInfo lineup = 1;</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 LineupInfoOuterClass.LineupInfo getMutableLineup() {
bitField0_ |= 0x00000002;
return lineup;
}
/**
* <code>optional .LineupInfo lineup = 1;</code>
* @param value the lineup to set
* @return this
*/
public ChessRogueStartScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) {
bitField0_ |= 0x00000002;
lineup.copyFrom(value);
return this;
}
/**
* <code>optional .SceneInfo scene = 4;</code>
* @return whether the scene field is set
*/
public boolean hasScene() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional .SceneInfo scene = 4;</code>
* @return this
*/
public ChessRogueStartScRsp clearScene() {
bitField0_ &= ~0x00000004;
scene.clear();
return this;
}
/**
* <code>optional .SceneInfo scene = 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 #getMutableScene()} if you want to modify it.
*
* @return internal storage object for reading
*/
public SceneInfoOuterClass.SceneInfo getScene() {
return scene;
}
/**
* <code>optional .SceneInfo scene = 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 SceneInfoOuterClass.SceneInfo getMutableScene() {
bitField0_ |= 0x00000004;
return scene;
}
/**
* <code>optional .SceneInfo scene = 4;</code>
* @param value the scene to set
* @return this
*/
public ChessRogueStartScRsp setScene(final SceneInfoOuterClass.SceneInfo value) {
bitField0_ |= 0x00000004;
scene.copyFrom(value);
return this;
}
/**
* <code>optional .ChessRogueCellInfo cell_info = 7;</code>
* @return whether the cellInfo field is set
*/
public boolean hasCellInfo() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional .ChessRogueCellInfo cell_info = 7;</code>
* @return this
*/
public ChessRogueStartScRsp clearCellInfo() {
bitField0_ &= ~0x00000008;
cellInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueCellInfo cell_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 #getMutableCellInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueCellInfoOuterClass.ChessRogueCellInfo getCellInfo() {
return cellInfo;
}
/**
* <code>optional .ChessRogueCellInfo cell_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 ChessRogueCellInfoOuterClass.ChessRogueCellInfo getMutableCellInfo() {
bitField0_ |= 0x00000008;
return cellInfo;
}
/**
* <code>optional .ChessRogueCellInfo cell_info = 7;</code>
* @param value the cellInfo to set
* @return this
*/
public ChessRogueStartScRsp setCellInfo(
final ChessRogueCellInfoOuterClass.ChessRogueCellInfo value) {
bitField0_ |= 0x00000008;
cellInfo.copyFrom(value);
return this;
}
/**
* <code>optional .ChessRogueCurrentInfo current_info = 10;</code>
* @return whether the currentInfo field is set
*/
public boolean hasCurrentInfo() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional .ChessRogueCurrentInfo current_info = 10;</code>
* @return this
*/
public ChessRogueStartScRsp clearCurrentInfo() {
bitField0_ &= ~0x00000010;
currentInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueCurrentInfo current_info = 10;</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 #getMutableCurrentInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getCurrentInfo() {
return currentInfo;
}
/**
* <code>optional .ChessRogueCurrentInfo current_info = 10;</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 ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableCurrentInfo() {
bitField0_ |= 0x00000010;
return currentInfo;
}
/**
* <code>optional .ChessRogueCurrentInfo current_info = 10;</code>
* @param value the currentInfo to set
* @return this
*/
public ChessRogueStartScRsp setCurrentInfo(
final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) {
bitField0_ |= 0x00000010;
currentInfo.copyFrom(value);
return this;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 13;
* </pre>
*
* <code>optional .ChessRogueInfo chess_rogue_info = 11;</code>
* @return whether the chessRogueInfo field is set
*/
public boolean hasChessRogueInfo() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 13;
* </pre>
*
* <code>optional .ChessRogueInfo chess_rogue_info = 11;</code>
* @return this
*/
public ChessRogueStartScRsp clearChessRogueInfo() {
bitField0_ &= ~0x00000020;
chessRogueInfo.clear();
return this;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 13;
* </pre>
*
* <code>optional .ChessRogueInfo chess_rogue_info = 11;</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 #getMutableChessRogueInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueInfoOuterClass.ChessRogueInfo getChessRogueInfo() {
return chessRogueInfo;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 13;
* </pre>
*
* <code>optional .ChessRogueInfo chess_rogue_info = 11;</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 ChessRogueInfoOuterClass.ChessRogueInfo getMutableChessRogueInfo() {
bitField0_ |= 0x00000020;
return chessRogueInfo;
}
/**
* <pre>
* HLODEEONDBF OBGFEMEOJCE = 13;
* </pre>
*
* <code>optional .ChessRogueInfo chess_rogue_info = 11;</code>
* @param value the chessRogueInfo to set
* @return this
*/
public ChessRogueStartScRsp setChessRogueInfo(
final ChessRogueInfoOuterClass.ChessRogueInfo value) {
bitField0_ |= 0x00000020;
chessRogueInfo.copyFrom(value);
return this;
}
@Override
public ChessRogueStartScRsp copyFrom(final ChessRogueStartScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
lineup.copyFrom(other.lineup);
scene.copyFrom(other.scene);
cellInfo.copyFrom(other.cellInfo);
currentInfo.copyFrom(other.currentInfo);
chessRogueInfo.copyFrom(other.chessRogueInfo);
}
return this;
}
@Override
public ChessRogueStartScRsp mergeFrom(final ChessRogueStartScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasLineup()) {
getMutableLineup().mergeFrom(other.lineup);
}
if (other.hasScene()) {
getMutableScene().mergeFrom(other.scene);
}
if (other.hasCellInfo()) {
getMutableCellInfo().mergeFrom(other.cellInfo);
}
if (other.hasCurrentInfo()) {
getMutableCurrentInfo().mergeFrom(other.currentInfo);
}
if (other.hasChessRogueInfo()) {
getMutableChessRogueInfo().mergeFrom(other.chessRogueInfo);
}
return this;
}
@Override
public ChessRogueStartScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
lineup.clear();
scene.clear();
cellInfo.clear();
currentInfo.clear();
chessRogueInfo.clear();
return this;
}
@Override
public ChessRogueStartScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
lineup.clearQuick();
scene.clearQuick();
cellInfo.clearQuick();
currentInfo.clearQuick();
chessRogueInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueStartScRsp)) {
return false;
}
ChessRogueStartScRsp other = (ChessRogueStartScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasLineup() || lineup.equals(other.lineup))
&& (!hasScene() || scene.equals(other.scene))
&& (!hasCellInfo() || cellInfo.equals(other.cellInfo))
&& (!hasCurrentInfo() || currentInfo.equals(other.currentInfo))
&& (!hasChessRogueInfo() || chessRogueInfo.equals(other.chessRogueInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 10);
output.writeMessageNoTag(lineup);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 34);
output.writeMessageNoTag(scene);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 58);
output.writeMessageNoTag(cellInfo);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 82);
output.writeMessageNoTag(currentInfo);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 90);
output.writeMessageNoTag(chessRogueInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(lineup);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(scene);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(cellInfo);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(currentInfo);
}
if ((bitField0_ & 0x00000020) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(chessRogueInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueStartScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 16: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 10) {
break;
}
}
case 10: {
// lineup
input.readMessage(lineup);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 34) {
break;
}
}
case 34: {
// scene
input.readMessage(scene);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 58) {
break;
}
}
case 58: {
// cellInfo
input.readMessage(cellInfo);
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 82) {
break;
}
}
case 82: {
// currentInfo
input.readMessage(currentInfo);
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 90) {
break;
}
}
case 90: {
// chessRogueInfo
input.readMessage(chessRogueInfo);
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.writeUInt32(FieldNames.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.lineup, lineup);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeMessage(FieldNames.scene, scene);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeMessage(FieldNames.cellInfo, cellInfo);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeMessage(FieldNames.currentInfo, currentInfo);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeMessage(FieldNames.chessRogueInfo, chessRogueInfo);
}
output.endObject();
}
@Override
public ChessRogueStartScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1102671473: {
if (input.isAtField(FieldNames.lineup)) {
if (!input.trySkipNullValue()) {
input.readMessage(lineup);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 109254796: {
if (input.isAtField(FieldNames.scene)) {
if (!input.trySkipNullValue()) {
input.readMessage(scene);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -917905104:
case 1629888875: {
if (input.isAtField(FieldNames.cellInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(cellInfo);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case 600912327:
case 1468588980: {
if (input.isAtField(FieldNames.currentInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(currentInfo);
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case -2057768312:
case 1888241298: {
if (input.isAtField(FieldNames.chessRogueInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(chessRogueInfo);
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueStartScRsp clone() {
return new ChessRogueStartScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueStartScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueStartScRsp(), data).checkInitialized();
}
public static ChessRogueStartScRsp parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueStartScRsp(), input).checkInitialized();
}
public static ChessRogueStartScRsp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueStartScRsp(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueStartScRsp messages
*/
public static MessageFactory<ChessRogueStartScRsp> getFactory() {
return ChessRogueStartScRspFactory.INSTANCE;
}
private enum ChessRogueStartScRspFactory implements MessageFactory<ChessRogueStartScRsp> {
INSTANCE;
@Override
public ChessRogueStartScRsp create() {
return ChessRogueStartScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName lineup = FieldName.forField("lineup");
static final FieldName scene = FieldName.forField("scene");
static final FieldName cellInfo = FieldName.forField("cellInfo", "cell_info");
static final FieldName currentInfo = FieldName.forField("currentInfo", "current_info");
static final FieldName chessRogueInfo = FieldName.forField("chessRogueInfo", "chess_rogue_info");
}
}
}

View File

@ -0,0 +1,266 @@
// 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 ChessRogueUpdateActionPointScNotifyOuterClass {
/**
* Protobuf type {@code ChessRogueUpdateActionPointScNotify}
*/
public static final class ChessRogueUpdateActionPointScNotify extends ProtoMessage<ChessRogueUpdateActionPointScNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 action_point = 9;</code>
*/
private int actionPoint;
private ChessRogueUpdateActionPointScNotify() {
}
/**
* @return a new empty instance of {@code ChessRogueUpdateActionPointScNotify}
*/
public static ChessRogueUpdateActionPointScNotify newInstance() {
return new ChessRogueUpdateActionPointScNotify();
}
/**
* <code>optional uint32 action_point = 9;</code>
* @return whether the actionPoint field is set
*/
public boolean hasActionPoint() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 action_point = 9;</code>
* @return this
*/
public ChessRogueUpdateActionPointScNotify clearActionPoint() {
bitField0_ &= ~0x00000001;
actionPoint = 0;
return this;
}
/**
* <code>optional uint32 action_point = 9;</code>
* @return the actionPoint
*/
public int getActionPoint() {
return actionPoint;
}
/**
* <code>optional uint32 action_point = 9;</code>
* @param value the actionPoint to set
* @return this
*/
public ChessRogueUpdateActionPointScNotify setActionPoint(final int value) {
bitField0_ |= 0x00000001;
actionPoint = value;
return this;
}
@Override
public ChessRogueUpdateActionPointScNotify copyFrom(
final ChessRogueUpdateActionPointScNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
actionPoint = other.actionPoint;
}
return this;
}
@Override
public ChessRogueUpdateActionPointScNotify mergeFrom(
final ChessRogueUpdateActionPointScNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasActionPoint()) {
setActionPoint(other.actionPoint);
}
return this;
}
@Override
public ChessRogueUpdateActionPointScNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
actionPoint = 0;
return this;
}
@Override
public ChessRogueUpdateActionPointScNotify 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 ChessRogueUpdateActionPointScNotify)) {
return false;
}
ChessRogueUpdateActionPointScNotify other = (ChessRogueUpdateActionPointScNotify) o;
return bitField0_ == other.bitField0_
&& (!hasActionPoint() || actionPoint == other.actionPoint);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(actionPoint);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(actionPoint);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueUpdateActionPointScNotify mergeFrom(final ProtoSource input) throws
IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 72: {
// actionPoint
actionPoint = input.readUInt32();
bitField0_ |= 0x00000001;
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.actionPoint, actionPoint);
}
output.endObject();
}
@Override
public ChessRogueUpdateActionPointScNotify mergeFrom(final JsonSource input) throws
IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1569741050:
case 1847866951: {
if (input.isAtField(FieldNames.actionPoint)) {
if (!input.trySkipNullValue()) {
actionPoint = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueUpdateActionPointScNotify clone() {
return new ChessRogueUpdateActionPointScNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueUpdateActionPointScNotify parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateActionPointScNotify(), data).checkInitialized();
}
public static ChessRogueUpdateActionPointScNotify parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateActionPointScNotify(), input).checkInitialized();
}
public static ChessRogueUpdateActionPointScNotify parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateActionPointScNotify(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueUpdateActionPointScNotify messages
*/
public static MessageFactory<ChessRogueUpdateActionPointScNotify> getFactory() {
return ChessRogueUpdateActionPointScNotifyFactory.INSTANCE;
}
private enum ChessRogueUpdateActionPointScNotifyFactory implements MessageFactory<ChessRogueUpdateActionPointScNotify> {
INSTANCE;
@Override
public ChessRogueUpdateActionPointScNotify create() {
return ChessRogueUpdateActionPointScNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName actionPoint = FieldName.forField("actionPoint", "action_point");
}
}
}

View File

@ -0,0 +1,388 @@
// 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;
import us.hebi.quickbuf.RepeatedInt;
public final class ChessRogueUpdateAllowedSelectCellScNotifyOuterClass {
/**
* Protobuf type {@code ChessRogueUpdateAllowedSelectCellScNotify}
*/
public static final class ChessRogueUpdateAllowedSelectCellScNotify extends ProtoMessage<ChessRogueUpdateAllowedSelectCellScNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 room_id = 12;</code>
*/
private int roomId;
/**
* <code>repeated uint32 cell_id_list = 11;</code>
*/
private final RepeatedInt cellIdList = RepeatedInt.newEmptyInstance();
private ChessRogueUpdateAllowedSelectCellScNotify() {
}
/**
* @return a new empty instance of {@code ChessRogueUpdateAllowedSelectCellScNotify}
*/
public static ChessRogueUpdateAllowedSelectCellScNotify newInstance() {
return new ChessRogueUpdateAllowedSelectCellScNotify();
}
/**
* <code>optional uint32 room_id = 12;</code>
* @return whether the roomId field is set
*/
public boolean hasRoomId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 room_id = 12;</code>
* @return this
*/
public ChessRogueUpdateAllowedSelectCellScNotify clearRoomId() {
bitField0_ &= ~0x00000001;
roomId = 0;
return this;
}
/**
* <code>optional uint32 room_id = 12;</code>
* @return the roomId
*/
public int getRoomId() {
return roomId;
}
/**
* <code>optional uint32 room_id = 12;</code>
* @param value the roomId to set
* @return this
*/
public ChessRogueUpdateAllowedSelectCellScNotify setRoomId(final int value) {
bitField0_ |= 0x00000001;
roomId = value;
return this;
}
/**
* <code>repeated uint32 cell_id_list = 11;</code>
* @return whether the cellIdList field is set
*/
public boolean hasCellIdList() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated uint32 cell_id_list = 11;</code>
* @return this
*/
public ChessRogueUpdateAllowedSelectCellScNotify clearCellIdList() {
bitField0_ &= ~0x00000002;
cellIdList.clear();
return this;
}
/**
* <code>repeated uint32 cell_id_list = 11;</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 #getMutableCellIdList()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getCellIdList() {
return cellIdList;
}
/**
* <code>repeated uint32 cell_id_list = 11;</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 RepeatedInt getMutableCellIdList() {
bitField0_ |= 0x00000002;
return cellIdList;
}
/**
* <code>repeated uint32 cell_id_list = 11;</code>
* @param value the cellIdList to add
* @return this
*/
public ChessRogueUpdateAllowedSelectCellScNotify addCellIdList(final int value) {
bitField0_ |= 0x00000002;
cellIdList.add(value);
return this;
}
/**
* <code>repeated uint32 cell_id_list = 11;</code>
* @param values the cellIdList to add
* @return this
*/
public ChessRogueUpdateAllowedSelectCellScNotify addAllCellIdList(final int... values) {
bitField0_ |= 0x00000002;
cellIdList.addAll(values);
return this;
}
@Override
public ChessRogueUpdateAllowedSelectCellScNotify copyFrom(
final ChessRogueUpdateAllowedSelectCellScNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
roomId = other.roomId;
cellIdList.copyFrom(other.cellIdList);
}
return this;
}
@Override
public ChessRogueUpdateAllowedSelectCellScNotify mergeFrom(
final ChessRogueUpdateAllowedSelectCellScNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRoomId()) {
setRoomId(other.roomId);
}
if (other.hasCellIdList()) {
getMutableCellIdList().addAll(other.cellIdList);
}
return this;
}
@Override
public ChessRogueUpdateAllowedSelectCellScNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
roomId = 0;
cellIdList.clear();
return this;
}
@Override
public ChessRogueUpdateAllowedSelectCellScNotify clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
cellIdList.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueUpdateAllowedSelectCellScNotify)) {
return false;
}
ChessRogueUpdateAllowedSelectCellScNotify other = (ChessRogueUpdateAllowedSelectCellScNotify) o;
return bitField0_ == other.bitField0_
&& (!hasRoomId() || roomId == other.roomId)
&& (!hasCellIdList() || cellIdList.equals(other.cellIdList));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 96);
output.writeUInt32NoTag(roomId);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < cellIdList.length(); i++) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(cellIdList.array()[i]);
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * cellIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cellIdList);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueUpdateAllowedSelectCellScNotify mergeFrom(final ProtoSource input) throws
IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 96: {
// roomId
roomId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 90) {
break;
}
}
case 90: {
// cellIdList [packed=true]
input.readPackedUInt32(cellIdList, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 88: {
// cellIdList [packed=false]
tag = input.readRepeatedUInt32(cellIdList, tag);
bitField0_ |= 0x00000002;
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.roomId, roomId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedUInt32(FieldNames.cellIdList, cellIdList);
}
output.endObject();
}
@Override
public ChessRogueUpdateAllowedSelectCellScNotify mergeFrom(final JsonSource input) throws
IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -925319338:
case 1379892991: {
if (input.isAtField(FieldNames.roomId)) {
if (!input.trySkipNullValue()) {
roomId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1648521125:
case 1121452901: {
if (input.isAtField(FieldNames.cellIdList)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(cellIdList);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueUpdateAllowedSelectCellScNotify clone() {
return new ChessRogueUpdateAllowedSelectCellScNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueUpdateAllowedSelectCellScNotify parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateAllowedSelectCellScNotify(), data).checkInitialized();
}
public static ChessRogueUpdateAllowedSelectCellScNotify parseFrom(final ProtoSource input)
throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateAllowedSelectCellScNotify(), input).checkInitialized();
}
public static ChessRogueUpdateAllowedSelectCellScNotify parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateAllowedSelectCellScNotify(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueUpdateAllowedSelectCellScNotify messages
*/
public static MessageFactory<ChessRogueUpdateAllowedSelectCellScNotify> getFactory() {
return ChessRogueUpdateAllowedSelectCellScNotifyFactory.INSTANCE;
}
private enum ChessRogueUpdateAllowedSelectCellScNotifyFactory implements MessageFactory<ChessRogueUpdateAllowedSelectCellScNotify> {
INSTANCE;
@Override
public ChessRogueUpdateAllowedSelectCellScNotify create() {
return ChessRogueUpdateAllowedSelectCellScNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName roomId = FieldName.forField("roomId", "room_id");
static final FieldName cellIdList = FieldName.forField("cellIdList", "cell_id_list");
}
}
}

View File

@ -0,0 +1,285 @@
// 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 ChessRogueUpdateDiceInfoScNotifyOuterClass {
/**
* Protobuf type {@code ChessRogueUpdateDiceInfoScNotify}
*/
public static final class ChessRogueUpdateDiceInfoScNotify extends ProtoMessage<ChessRogueUpdateDiceInfoScNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
*/
private final ChessRogueNousDiceOuterClass.ChessRogueNousDice nousDice = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance();
private ChessRogueUpdateDiceInfoScNotify() {
}
/**
* @return a new empty instance of {@code ChessRogueUpdateDiceInfoScNotify}
*/
public static ChessRogueUpdateDiceInfoScNotify newInstance() {
return new ChessRogueUpdateDiceInfoScNotify();
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
* @return whether the nousDice field is set
*/
public boolean hasNousDice() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
* @return this
*/
public ChessRogueUpdateDiceInfoScNotify clearNousDice() {
bitField0_ &= ~0x00000001;
nousDice.clear();
return this;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</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 #getMutableNousDice()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousDiceOuterClass.ChessRogueNousDice getNousDice() {
return nousDice;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</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 ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableNousDice() {
bitField0_ |= 0x00000001;
return nousDice;
}
/**
* <code>optional .ChessRogueNousDice nous_dice = 5;</code>
* @param value the nousDice to set
* @return this
*/
public ChessRogueUpdateDiceInfoScNotify setNousDice(
final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) {
bitField0_ |= 0x00000001;
nousDice.copyFrom(value);
return this;
}
@Override
public ChessRogueUpdateDiceInfoScNotify copyFrom(final ChessRogueUpdateDiceInfoScNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
nousDice.copyFrom(other.nousDice);
}
return this;
}
@Override
public ChessRogueUpdateDiceInfoScNotify mergeFrom(
final ChessRogueUpdateDiceInfoScNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasNousDice()) {
getMutableNousDice().mergeFrom(other.nousDice);
}
return this;
}
@Override
public ChessRogueUpdateDiceInfoScNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nousDice.clear();
return this;
}
@Override
public ChessRogueUpdateDiceInfoScNotify clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nousDice.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueUpdateDiceInfoScNotify)) {
return false;
}
ChessRogueUpdateDiceInfoScNotify other = (ChessRogueUpdateDiceInfoScNotify) o;
return bitField0_ == other.bitField0_
&& (!hasNousDice() || nousDice.equals(other.nousDice));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 42);
output.writeMessageNoTag(nousDice);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(nousDice);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueUpdateDiceInfoScNotify mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 42: {
// nousDice
input.readMessage(nousDice);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.nousDice, nousDice);
}
output.endObject();
}
@Override
public ChessRogueUpdateDiceInfoScNotify mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1622214758:
case -1226158137: {
if (input.isAtField(FieldNames.nousDice)) {
if (!input.trySkipNullValue()) {
input.readMessage(nousDice);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueUpdateDiceInfoScNotify clone() {
return new ChessRogueUpdateDiceInfoScNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueUpdateDiceInfoScNotify parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateDiceInfoScNotify(), data).checkInitialized();
}
public static ChessRogueUpdateDiceInfoScNotify parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateDiceInfoScNotify(), input).checkInitialized();
}
public static ChessRogueUpdateDiceInfoScNotify parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateDiceInfoScNotify(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueUpdateDiceInfoScNotify messages
*/
public static MessageFactory<ChessRogueUpdateDiceInfoScNotify> getFactory() {
return ChessRogueUpdateDiceInfoScNotifyFactory.INSTANCE;
}
private enum ChessRogueUpdateDiceInfoScNotifyFactory implements MessageFactory<ChessRogueUpdateDiceInfoScNotify> {
INSTANCE;
@Override
public ChessRogueUpdateDiceInfoScNotify create() {
return ChessRogueUpdateDiceInfoScNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName nousDice = FieldName.forField("nousDice", "nous_dice");
}
}
}

View File

@ -0,0 +1,265 @@
// 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 ChessRogueUpdateDicePassiveAccumulateValueScNotifyOuterClass {
/**
* Protobuf type {@code ChessRogueUpdateDicePassiveAccumulateValueScNotify}
*/
public static final class ChessRogueUpdateDicePassiveAccumulateValueScNotify extends ProtoMessage<ChessRogueUpdateDicePassiveAccumulateValueScNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 value = 13;</code>
*/
private int value_;
private ChessRogueUpdateDicePassiveAccumulateValueScNotify() {
}
/**
* @return a new empty instance of {@code ChessRogueUpdateDicePassiveAccumulateValueScNotify}
*/
public static ChessRogueUpdateDicePassiveAccumulateValueScNotify newInstance() {
return new ChessRogueUpdateDicePassiveAccumulateValueScNotify();
}
/**
* <code>optional uint32 value = 13;</code>
* @return whether the value_ field is set
*/
public boolean hasValue() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 value = 13;</code>
* @return this
*/
public ChessRogueUpdateDicePassiveAccumulateValueScNotify clearValue() {
bitField0_ &= ~0x00000001;
value_ = 0;
return this;
}
/**
* <code>optional uint32 value = 13;</code>
* @return the value_
*/
public int getValue() {
return value_;
}
/**
* <code>optional uint32 value = 13;</code>
* @param value the value_ to set
* @return this
*/
public ChessRogueUpdateDicePassiveAccumulateValueScNotify setValue(final int value) {
bitField0_ |= 0x00000001;
value_ = value;
return this;
}
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify copyFrom(
final ChessRogueUpdateDicePassiveAccumulateValueScNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
value_ = other.value_;
}
return this;
}
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify mergeFrom(
final ChessRogueUpdateDicePassiveAccumulateValueScNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasValue()) {
setValue(other.value_);
}
return this;
}
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
value_ = 0;
return this;
}
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify 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 ChessRogueUpdateDicePassiveAccumulateValueScNotify)) {
return false;
}
ChessRogueUpdateDicePassiveAccumulateValueScNotify other = (ChessRogueUpdateDicePassiveAccumulateValueScNotify) o;
return bitField0_ == other.bitField0_
&& (!hasValue() || value_ == other.value_);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(value_);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(value_);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueUpdateDicePassiveAccumulateValueScNotify mergeFrom(final ProtoSource input)
throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
// value_
value_ = input.readUInt32();
bitField0_ |= 0x00000001;
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.value_, value_);
}
output.endObject();
}
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify mergeFrom(final JsonSource input)
throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 111972721: {
if (input.isAtField(FieldNames.value_)) {
if (!input.trySkipNullValue()) {
value_ = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify clone() {
return new ChessRogueUpdateDicePassiveAccumulateValueScNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueUpdateDicePassiveAccumulateValueScNotify parseFrom(final byte[] data)
throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateDicePassiveAccumulateValueScNotify(), data).checkInitialized();
}
public static ChessRogueUpdateDicePassiveAccumulateValueScNotify parseFrom(
final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateDicePassiveAccumulateValueScNotify(), input).checkInitialized();
}
public static ChessRogueUpdateDicePassiveAccumulateValueScNotify parseFrom(
final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateDicePassiveAccumulateValueScNotify(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueUpdateDicePassiveAccumulateValueScNotify messages
*/
public static MessageFactory<ChessRogueUpdateDicePassiveAccumulateValueScNotify> getFactory() {
return ChessRogueUpdateDicePassiveAccumulateValueScNotifyFactory.INSTANCE;
}
private enum ChessRogueUpdateDicePassiveAccumulateValueScNotifyFactory implements MessageFactory<ChessRogueUpdateDicePassiveAccumulateValueScNotify> {
INSTANCE;
@Override
public ChessRogueUpdateDicePassiveAccumulateValueScNotify create() {
return ChessRogueUpdateDicePassiveAccumulateValueScNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName value_ = FieldName.forField("value");
}
}
}

View File

@ -0,0 +1,286 @@
// 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 ChessRogueUpdateMoneyInfoScNotifyOuterClass {
/**
* Protobuf type {@code ChessRogueUpdateMoneyInfoScNotify}
*/
public static final class ChessRogueUpdateMoneyInfoScNotify extends ProtoMessage<ChessRogueUpdateMoneyInfoScNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChessRogueMoneyInfo money_info = 12;</code>
*/
private final ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo moneyInfo = ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo.newInstance();
private ChessRogueUpdateMoneyInfoScNotify() {
}
/**
* @return a new empty instance of {@code ChessRogueUpdateMoneyInfoScNotify}
*/
public static ChessRogueUpdateMoneyInfoScNotify newInstance() {
return new ChessRogueUpdateMoneyInfoScNotify();
}
/**
* <code>optional .ChessRogueMoneyInfo money_info = 12;</code>
* @return whether the moneyInfo field is set
*/
public boolean hasMoneyInfo() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChessRogueMoneyInfo money_info = 12;</code>
* @return this
*/
public ChessRogueUpdateMoneyInfoScNotify clearMoneyInfo() {
bitField0_ &= ~0x00000001;
moneyInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueMoneyInfo money_info = 12;</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 #getMutableMoneyInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo getMoneyInfo() {
return moneyInfo;
}
/**
* <code>optional .ChessRogueMoneyInfo money_info = 12;</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 ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo getMutableMoneyInfo() {
bitField0_ |= 0x00000001;
return moneyInfo;
}
/**
* <code>optional .ChessRogueMoneyInfo money_info = 12;</code>
* @param value the moneyInfo to set
* @return this
*/
public ChessRogueUpdateMoneyInfoScNotify setMoneyInfo(
final ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo value) {
bitField0_ |= 0x00000001;
moneyInfo.copyFrom(value);
return this;
}
@Override
public ChessRogueUpdateMoneyInfoScNotify copyFrom(
final ChessRogueUpdateMoneyInfoScNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
moneyInfo.copyFrom(other.moneyInfo);
}
return this;
}
@Override
public ChessRogueUpdateMoneyInfoScNotify mergeFrom(
final ChessRogueUpdateMoneyInfoScNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasMoneyInfo()) {
getMutableMoneyInfo().mergeFrom(other.moneyInfo);
}
return this;
}
@Override
public ChessRogueUpdateMoneyInfoScNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
moneyInfo.clear();
return this;
}
@Override
public ChessRogueUpdateMoneyInfoScNotify clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
moneyInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueUpdateMoneyInfoScNotify)) {
return false;
}
ChessRogueUpdateMoneyInfoScNotify other = (ChessRogueUpdateMoneyInfoScNotify) o;
return bitField0_ == other.bitField0_
&& (!hasMoneyInfo() || moneyInfo.equals(other.moneyInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 98);
output.writeMessageNoTag(moneyInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(moneyInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueUpdateMoneyInfoScNotify mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 98: {
// moneyInfo
input.readMessage(moneyInfo);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.moneyInfo, moneyInfo);
}
output.endObject();
}
@Override
public ChessRogueUpdateMoneyInfoScNotify mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1713858162:
case -1569819443: {
if (input.isAtField(FieldNames.moneyInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(moneyInfo);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueUpdateMoneyInfoScNotify clone() {
return new ChessRogueUpdateMoneyInfoScNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueUpdateMoneyInfoScNotify parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateMoneyInfoScNotify(), data).checkInitialized();
}
public static ChessRogueUpdateMoneyInfoScNotify parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateMoneyInfoScNotify(), input).checkInitialized();
}
public static ChessRogueUpdateMoneyInfoScNotify parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ChessRogueUpdateMoneyInfoScNotify(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueUpdateMoneyInfoScNotify messages
*/
public static MessageFactory<ChessRogueUpdateMoneyInfoScNotify> getFactory() {
return ChessRogueUpdateMoneyInfoScNotifyFactory.INSTANCE;
}
private enum ChessRogueUpdateMoneyInfoScNotifyFactory implements MessageFactory<ChessRogueUpdateMoneyInfoScNotify> {
INSTANCE;
@Override
public ChessRogueUpdateMoneyInfoScNotify create() {
return ChessRogueUpdateMoneyInfoScNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName moneyInfo = FieldName.forField("moneyInfo", "money_info");
}
}
}

View File

@ -0,0 +1,518 @@
// 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 ChessRogueVirtualItemInfoOuterClass {
/**
* Protobuf type {@code ChessRogueVirtualItemInfo}
*/
public static final class ChessRogueVirtualItemInfo extends ProtoMessage<ChessRogueVirtualItemInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <pre>
* LNGAAJMILOC CKJPPDKJIOH = 8;
* NNGLIKCIBCA JNAGMIALOII = 14;
* </pre>
*
* <code>optional .ChessRogueItemInfo item_info = 6;</code>
*/
private final ChessRogueItemInfoOuterClass.ChessRogueItemInfo itemInfo = ChessRogueItemInfoOuterClass.ChessRogueItemInfo.newInstance();
/**
* <code>optional .ChessRogueBuffInfo buff_info = 9;</code>
*/
private final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo buffInfo = ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo.newInstance();
/**
* <code>optional .ChessRogueMiracleInfo miracle_info = 13;</code>
*/
private final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo miracleInfo = ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo.newInstance();
private ChessRogueVirtualItemInfo() {
}
/**
* @return a new empty instance of {@code ChessRogueVirtualItemInfo}
*/
public static ChessRogueVirtualItemInfo newInstance() {
return new ChessRogueVirtualItemInfo();
}
/**
* <pre>
* LNGAAJMILOC CKJPPDKJIOH = 8;
* NNGLIKCIBCA JNAGMIALOII = 14;
* </pre>
*
* <code>optional .ChessRogueItemInfo item_info = 6;</code>
* @return whether the itemInfo field is set
*/
public boolean hasItemInfo() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <pre>
* LNGAAJMILOC CKJPPDKJIOH = 8;
* NNGLIKCIBCA JNAGMIALOII = 14;
* </pre>
*
* <code>optional .ChessRogueItemInfo item_info = 6;</code>
* @return this
*/
public ChessRogueVirtualItemInfo clearItemInfo() {
bitField0_ &= ~0x00000001;
itemInfo.clear();
return this;
}
/**
* <pre>
* LNGAAJMILOC CKJPPDKJIOH = 8;
* NNGLIKCIBCA JNAGMIALOII = 14;
* </pre>
*
* <code>optional .ChessRogueItemInfo item_info = 6;</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 #getMutableItemInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueItemInfoOuterClass.ChessRogueItemInfo getItemInfo() {
return itemInfo;
}
/**
* <pre>
* LNGAAJMILOC CKJPPDKJIOH = 8;
* NNGLIKCIBCA JNAGMIALOII = 14;
* </pre>
*
* <code>optional .ChessRogueItemInfo item_info = 6;</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 ChessRogueItemInfoOuterClass.ChessRogueItemInfo getMutableItemInfo() {
bitField0_ |= 0x00000001;
return itemInfo;
}
/**
* <pre>
* LNGAAJMILOC CKJPPDKJIOH = 8;
* NNGLIKCIBCA JNAGMIALOII = 14;
* </pre>
*
* <code>optional .ChessRogueItemInfo item_info = 6;</code>
* @param value the itemInfo to set
* @return this
*/
public ChessRogueVirtualItemInfo setItemInfo(
final ChessRogueItemInfoOuterClass.ChessRogueItemInfo value) {
bitField0_ |= 0x00000001;
itemInfo.copyFrom(value);
return this;
}
/**
* <code>optional .ChessRogueBuffInfo buff_info = 9;</code>
* @return whether the buffInfo field is set
*/
public boolean hasBuffInfo() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .ChessRogueBuffInfo buff_info = 9;</code>
* @return this
*/
public ChessRogueVirtualItemInfo clearBuffInfo() {
bitField0_ &= ~0x00000002;
buffInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueBuffInfo buff_info = 9;</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 #getMutableBuffInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getBuffInfo() {
return buffInfo;
}
/**
* <code>optional .ChessRogueBuffInfo buff_info = 9;</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 ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getMutableBuffInfo() {
bitField0_ |= 0x00000002;
return buffInfo;
}
/**
* <code>optional .ChessRogueBuffInfo buff_info = 9;</code>
* @param value the buffInfo to set
* @return this
*/
public ChessRogueVirtualItemInfo setBuffInfo(
final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo value) {
bitField0_ |= 0x00000002;
buffInfo.copyFrom(value);
return this;
}
/**
* <code>optional .ChessRogueMiracleInfo miracle_info = 13;</code>
* @return whether the miracleInfo field is set
*/
public boolean hasMiracleInfo() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional .ChessRogueMiracleInfo miracle_info = 13;</code>
* @return this
*/
public ChessRogueVirtualItemInfo clearMiracleInfo() {
bitField0_ &= ~0x00000004;
miracleInfo.clear();
return this;
}
/**
* <code>optional .ChessRogueMiracleInfo miracle_info = 13;</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 #getMutableMiracleInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMiracleInfo() {
return miracleInfo;
}
/**
* <code>optional .ChessRogueMiracleInfo miracle_info = 13;</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 ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMutableMiracleInfo() {
bitField0_ |= 0x00000004;
return miracleInfo;
}
/**
* <code>optional .ChessRogueMiracleInfo miracle_info = 13;</code>
* @param value the miracleInfo to set
* @return this
*/
public ChessRogueVirtualItemInfo setMiracleInfo(
final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo value) {
bitField0_ |= 0x00000004;
miracleInfo.copyFrom(value);
return this;
}
@Override
public ChessRogueVirtualItemInfo copyFrom(final ChessRogueVirtualItemInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
itemInfo.copyFrom(other.itemInfo);
buffInfo.copyFrom(other.buffInfo);
miracleInfo.copyFrom(other.miracleInfo);
}
return this;
}
@Override
public ChessRogueVirtualItemInfo mergeFrom(final ChessRogueVirtualItemInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasItemInfo()) {
getMutableItemInfo().mergeFrom(other.itemInfo);
}
if (other.hasBuffInfo()) {
getMutableBuffInfo().mergeFrom(other.buffInfo);
}
if (other.hasMiracleInfo()) {
getMutableMiracleInfo().mergeFrom(other.miracleInfo);
}
return this;
}
@Override
public ChessRogueVirtualItemInfo clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
itemInfo.clear();
buffInfo.clear();
miracleInfo.clear();
return this;
}
@Override
public ChessRogueVirtualItemInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
itemInfo.clearQuick();
buffInfo.clearQuick();
miracleInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ChessRogueVirtualItemInfo)) {
return false;
}
ChessRogueVirtualItemInfo other = (ChessRogueVirtualItemInfo) o;
return bitField0_ == other.bitField0_
&& (!hasItemInfo() || itemInfo.equals(other.itemInfo))
&& (!hasBuffInfo() || buffInfo.equals(other.buffInfo))
&& (!hasMiracleInfo() || miracleInfo.equals(other.miracleInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(itemInfo);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 74);
output.writeMessageNoTag(buffInfo);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 106);
output.writeMessageNoTag(miracleInfo);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(itemInfo);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(buffInfo);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(miracleInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ChessRogueVirtualItemInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 50: {
// itemInfo
input.readMessage(itemInfo);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 74) {
break;
}
}
case 74: {
// buffInfo
input.readMessage(buffInfo);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 106) {
break;
}
}
case 106: {
// miracleInfo
input.readMessage(miracleInfo);
bitField0_ |= 0x00000004;
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.writeMessage(FieldNames.itemInfo, itemInfo);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.buffInfo, buffInfo);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeMessage(FieldNames.miracleInfo, miracleInfo);
}
output.endObject();
}
@Override
public ChessRogueVirtualItemInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1177195105:
case -2141481382: {
if (input.isAtField(FieldNames.itemInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(itemInfo);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1522874463:
case 55707930: {
if (input.isAtField(FieldNames.buffInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(buffInfo);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 760306879:
case 2114852796: {
if (input.isAtField(FieldNames.miracleInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(miracleInfo);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ChessRogueVirtualItemInfo clone() {
return new ChessRogueVirtualItemInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ChessRogueVirtualItemInfo parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ChessRogueVirtualItemInfo(), data).checkInitialized();
}
public static ChessRogueVirtualItemInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueVirtualItemInfo(), input).checkInitialized();
}
public static ChessRogueVirtualItemInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ChessRogueVirtualItemInfo(), input).checkInitialized();
}
/**
* @return factory for creating ChessRogueVirtualItemInfo messages
*/
public static MessageFactory<ChessRogueVirtualItemInfo> getFactory() {
return ChessRogueVirtualItemInfoFactory.INSTANCE;
}
private enum ChessRogueVirtualItemInfoFactory implements MessageFactory<ChessRogueVirtualItemInfo> {
INSTANCE;
@Override
public ChessRogueVirtualItemInfo create() {
return ChessRogueVirtualItemInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName itemInfo = FieldName.forField("itemInfo", "item_info");
static final FieldName buffInfo = FieldName.forField("buffInfo", "buff_info");
static final FieldName miracleInfo = FieldName.forField("miracleInfo", "miracle_info");
}
}
}

View File

@ -0,0 +1,498 @@
// 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;
import us.hebi.quickbuf.RepeatedMessage;
public final class GetChessRogueNousStoryInfoScRspOuterClass {
/**
* Protobuf type {@code GetChessRogueNousStoryInfoScRsp}
*/
public static final class GetChessRogueNousStoryInfoScRsp extends ProtoMessage<GetChessRogueNousStoryInfoScRsp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 12;</code>
*/
private int retcode;
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</code>
*/
private final RepeatedMessage<ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo> subStoryInfo = RepeatedMessage.newEmptyInstance(ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo.getFactory());
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</code>
*/
private final RepeatedMessage<ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo> mainStoryInfo = RepeatedMessage.newEmptyInstance(ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo.getFactory());
private GetChessRogueNousStoryInfoScRsp() {
}
/**
* @return a new empty instance of {@code GetChessRogueNousStoryInfoScRsp}
*/
public static GetChessRogueNousStoryInfoScRsp newInstance() {
return new GetChessRogueNousStoryInfoScRsp();
}
/**
* <code>optional uint32 retcode = 12;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 retcode = 12;</code>
* @return this
*/
public GetChessRogueNousStoryInfoScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 12;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 12;</code>
* @param value the retcode to set
* @return this
*/
public GetChessRogueNousStoryInfoScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</code>
* @return whether the subStoryInfo field is set
*/
public boolean hasSubStoryInfo() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</code>
* @return this
*/
public GetChessRogueNousStoryInfoScRsp clearSubStoryInfo() {
bitField0_ &= ~0x00000002;
subStoryInfo.clear();
return this;
}
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</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 #getMutableSubStoryInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo> getSubStoryInfo(
) {
return subStoryInfo;
}
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</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 RepeatedMessage<ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo> getMutableSubStoryInfo(
) {
bitField0_ |= 0x00000002;
return subStoryInfo;
}
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</code>
* @param value the subStoryInfo to add
* @return this
*/
public GetChessRogueNousStoryInfoScRsp addSubStoryInfo(
final ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo value) {
bitField0_ |= 0x00000002;
subStoryInfo.add(value);
return this;
}
/**
* <code>repeated .ChessRogueNousSubStoryInfo sub_story_info = 6;</code>
* @param values the subStoryInfo to add
* @return this
*/
public GetChessRogueNousStoryInfoScRsp addAllSubStoryInfo(
final ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo... values) {
bitField0_ |= 0x00000002;
subStoryInfo.addAll(values);
return this;
}
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</code>
* @return whether the mainStoryInfo field is set
*/
public boolean hasMainStoryInfo() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</code>
* @return this
*/
public GetChessRogueNousStoryInfoScRsp clearMainStoryInfo() {
bitField0_ &= ~0x00000004;
mainStoryInfo.clear();
return this;
}
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</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 #getMutableMainStoryInfo()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo> getMainStoryInfo(
) {
return mainStoryInfo;
}
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</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 RepeatedMessage<ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo> getMutableMainStoryInfo(
) {
bitField0_ |= 0x00000004;
return mainStoryInfo;
}
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</code>
* @param value the mainStoryInfo to add
* @return this
*/
public GetChessRogueNousStoryInfoScRsp addMainStoryInfo(
final ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo value) {
bitField0_ |= 0x00000004;
mainStoryInfo.add(value);
return this;
}
/**
* <code>repeated .ChessRogueNousMainStoryInfo main_story_info = 10;</code>
* @param values the mainStoryInfo to add
* @return this
*/
public GetChessRogueNousStoryInfoScRsp addAllMainStoryInfo(
final ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo... values) {
bitField0_ |= 0x00000004;
mainStoryInfo.addAll(values);
return this;
}
@Override
public GetChessRogueNousStoryInfoScRsp copyFrom(final GetChessRogueNousStoryInfoScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
subStoryInfo.copyFrom(other.subStoryInfo);
mainStoryInfo.copyFrom(other.mainStoryInfo);
}
return this;
}
@Override
public GetChessRogueNousStoryInfoScRsp mergeFrom(final GetChessRogueNousStoryInfoScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasSubStoryInfo()) {
getMutableSubStoryInfo().addAll(other.subStoryInfo);
}
if (other.hasMainStoryInfo()) {
getMutableMainStoryInfo().addAll(other.mainStoryInfo);
}
return this;
}
@Override
public GetChessRogueNousStoryInfoScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
subStoryInfo.clear();
mainStoryInfo.clear();
return this;
}
@Override
public GetChessRogueNousStoryInfoScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
subStoryInfo.clearQuick();
mainStoryInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof GetChessRogueNousStoryInfoScRsp)) {
return false;
}
GetChessRogueNousStoryInfoScRsp other = (GetChessRogueNousStoryInfoScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasSubStoryInfo() || subStoryInfo.equals(other.subStoryInfo))
&& (!hasMainStoryInfo() || mainStoryInfo.equals(other.mainStoryInfo));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 96);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < subStoryInfo.length(); i++) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(subStoryInfo.get(i));
}
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < mainStoryInfo.length(); i++) {
output.writeRawByte((byte) 82);
output.writeMessageNoTag(mainStoryInfo.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * subStoryInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subStoryInfo);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * mainStoryInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainStoryInfo);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public GetChessRogueNousStoryInfoScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 96: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// subStoryInfo
tag = input.readRepeatedMessage(subStoryInfo, tag);
bitField0_ |= 0x00000002;
if (tag != 82) {
break;
}
}
case 82: {
// mainStoryInfo
tag = input.readRepeatedMessage(mainStoryInfo, tag);
bitField0_ |= 0x00000004;
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.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedMessage(FieldNames.subStoryInfo, subStoryInfo);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedMessage(FieldNames.mainStoryInfo, mainStoryInfo);
}
output.endObject();
}
@Override
public GetChessRogueNousStoryInfoScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -489637661:
case 74622231: {
if (input.isAtField(FieldNames.subStoryInfo)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(subStoryInfo);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 1591069066:
case -1820973058: {
if (input.isAtField(FieldNames.mainStoryInfo)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(mainStoryInfo);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public GetChessRogueNousStoryInfoScRsp clone() {
return new GetChessRogueNousStoryInfoScRsp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static GetChessRogueNousStoryInfoScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoScRsp(), data).checkInitialized();
}
public static GetChessRogueNousStoryInfoScRsp parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoScRsp(), input).checkInitialized();
}
public static GetChessRogueNousStoryInfoScRsp parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoScRsp(), input).checkInitialized();
}
/**
* @return factory for creating GetChessRogueNousStoryInfoScRsp messages
*/
public static MessageFactory<GetChessRogueNousStoryInfoScRsp> getFactory() {
return GetChessRogueNousStoryInfoScRspFactory.INSTANCE;
}
private enum GetChessRogueNousStoryInfoScRspFactory implements MessageFactory<GetChessRogueNousStoryInfoScRsp> {
INSTANCE;
@Override
public GetChessRogueNousStoryInfoScRsp create() {
return GetChessRogueNousStoryInfoScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
static final FieldName subStoryInfo = FieldName.forField("subStoryInfo", "sub_story_info");
static final FieldName mainStoryInfo = FieldName.forField("mainStoryInfo", "main_story_info");
}
}
}

View File

@ -0,0 +1,280 @@
// 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 LANBPBBAJLMOuterClass {
/**
* Protobuf type {@code LANBPBBAJLM}
*/
public static final class LANBPBBAJLM extends ProtoMessage<LANBPBBAJLM> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ItemList item_list = 8;</code>
*/
private final ItemListOuterClass.ItemList itemList = ItemListOuterClass.ItemList.newInstance();
private LANBPBBAJLM() {
}
/**
* @return a new empty instance of {@code LANBPBBAJLM}
*/
public static LANBPBBAJLM newInstance() {
return new LANBPBBAJLM();
}
/**
* <code>optional .ItemList item_list = 8;</code>
* @return whether the itemList field is set
*/
public boolean hasItemList() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ItemList item_list = 8;</code>
* @return this
*/
public LANBPBBAJLM clearItemList() {
bitField0_ &= ~0x00000001;
itemList.clear();
return this;
}
/**
* <code>optional .ItemList item_list = 8;</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 #getMutableItemList()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ItemListOuterClass.ItemList getItemList() {
return itemList;
}
/**
* <code>optional .ItemList item_list = 8;</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 ItemListOuterClass.ItemList getMutableItemList() {
bitField0_ |= 0x00000001;
return itemList;
}
/**
* <code>optional .ItemList item_list = 8;</code>
* @param value the itemList to set
* @return this
*/
public LANBPBBAJLM setItemList(final ItemListOuterClass.ItemList value) {
bitField0_ |= 0x00000001;
itemList.copyFrom(value);
return this;
}
@Override
public LANBPBBAJLM copyFrom(final LANBPBBAJLM other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
itemList.copyFrom(other.itemList);
}
return this;
}
@Override
public LANBPBBAJLM mergeFrom(final LANBPBBAJLM other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasItemList()) {
getMutableItemList().mergeFrom(other.itemList);
}
return this;
}
@Override
public LANBPBBAJLM clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
itemList.clear();
return this;
}
@Override
public LANBPBBAJLM clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
itemList.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof LANBPBBAJLM)) {
return false;
}
LANBPBBAJLM other = (LANBPBBAJLM) o;
return bitField0_ == other.bitField0_
&& (!hasItemList() || itemList.equals(other.itemList));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 66);
output.writeMessageNoTag(itemList);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(itemList);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public LANBPBBAJLM mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 66: {
// itemList
input.readMessage(itemList);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.itemList, itemList);
}
output.endObject();
}
@Override
public LANBPBBAJLM mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1177280081:
case -2141396406: {
if (input.isAtField(FieldNames.itemList)) {
if (!input.trySkipNullValue()) {
input.readMessage(itemList);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public LANBPBBAJLM clone() {
return new LANBPBBAJLM().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static LANBPBBAJLM parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new LANBPBBAJLM(), data).checkInitialized();
}
public static LANBPBBAJLM parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new LANBPBBAJLM(), input).checkInitialized();
}
public static LANBPBBAJLM parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new LANBPBBAJLM(), input).checkInitialized();
}
/**
* @return factory for creating LANBPBBAJLM messages
*/
public static MessageFactory<LANBPBBAJLM> getFactory() {
return LANBPBBAJLMFactory.INSTANCE;
}
private enum LANBPBBAJLMFactory implements MessageFactory<LANBPBBAJLM> {
INSTANCE;
@Override
public LANBPBBAJLM create() {
return LANBPBBAJLM.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName itemList = FieldName.forField("itemList", "item_list");
}
}
}

View File

@ -0,0 +1,381 @@
// 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 LLJFPKKLGAKOuterClass {
/**
* Protobuf type {@code LLJFPKKLGAK}
*/
public static final class LLJFPKKLGAK extends ProtoMessage<LLJFPKKLGAK> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .LANBPBBAJLM OLMCGHBDKIE = 1;</code>
*/
private final LANBPBBAJLMOuterClass.LANBPBBAJLM oLMCGHBDKIE = LANBPBBAJLMOuterClass.LANBPBBAJLM.newInstance();
/**
* <code>optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9;</code>
*/
private final RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent pJALJFEJGDD = RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent.newInstance();
private LLJFPKKLGAK() {
}
/**
* @return a new empty instance of {@code LLJFPKKLGAK}
*/
public static LLJFPKKLGAK newInstance() {
return new LLJFPKKLGAK();
}
/**
* <code>optional .LANBPBBAJLM OLMCGHBDKIE = 1;</code>
* @return whether the oLMCGHBDKIE field is set
*/
public boolean hasOLMCGHBDKIE() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .LANBPBBAJLM OLMCGHBDKIE = 1;</code>
* @return this
*/
public LLJFPKKLGAK clearOLMCGHBDKIE() {
bitField0_ &= ~0x00000001;
oLMCGHBDKIE.clear();
return this;
}
/**
* <code>optional .LANBPBBAJLM OLMCGHBDKIE = 1;</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 #getMutableOLMCGHBDKIE()} if you want to modify it.
*
* @return internal storage object for reading
*/
public LANBPBBAJLMOuterClass.LANBPBBAJLM getOLMCGHBDKIE() {
return oLMCGHBDKIE;
}
/**
* <code>optional .LANBPBBAJLM OLMCGHBDKIE = 1;</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 LANBPBBAJLMOuterClass.LANBPBBAJLM getMutableOLMCGHBDKIE() {
bitField0_ |= 0x00000001;
return oLMCGHBDKIE;
}
/**
* <code>optional .LANBPBBAJLM OLMCGHBDKIE = 1;</code>
* @param value the oLMCGHBDKIE to set
* @return this
*/
public LLJFPKKLGAK setOLMCGHBDKIE(final LANBPBBAJLMOuterClass.LANBPBBAJLM value) {
bitField0_ |= 0x00000001;
oLMCGHBDKIE.copyFrom(value);
return this;
}
/**
* <code>optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9;</code>
* @return whether the pJALJFEJGDD field is set
*/
public boolean hasPJALJFEJGDD() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9;</code>
* @return this
*/
public LLJFPKKLGAK clearPJALJFEJGDD() {
bitField0_ &= ~0x00000002;
pJALJFEJGDD.clear();
return this;
}
/**
* <code>optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9;</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 #getMutablePJALJFEJGDD()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent getPJALJFEJGDD() {
return pJALJFEJGDD;
}
/**
* <code>optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9;</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 RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent getMutablePJALJFEJGDD() {
bitField0_ |= 0x00000002;
return pJALJFEJGDD;
}
/**
* <code>optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9;</code>
* @param value the pJALJFEJGDD to set
* @return this
*/
public LLJFPKKLGAK setPJALJFEJGDD(
final RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent value) {
bitField0_ |= 0x00000002;
pJALJFEJGDD.copyFrom(value);
return this;
}
@Override
public LLJFPKKLGAK copyFrom(final LLJFPKKLGAK other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
oLMCGHBDKIE.copyFrom(other.oLMCGHBDKIE);
pJALJFEJGDD.copyFrom(other.pJALJFEJGDD);
}
return this;
}
@Override
public LLJFPKKLGAK mergeFrom(final LLJFPKKLGAK other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasOLMCGHBDKIE()) {
getMutableOLMCGHBDKIE().mergeFrom(other.oLMCGHBDKIE);
}
if (other.hasPJALJFEJGDD()) {
getMutablePJALJFEJGDD().mergeFrom(other.pJALJFEJGDD);
}
return this;
}
@Override
public LLJFPKKLGAK clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
oLMCGHBDKIE.clear();
pJALJFEJGDD.clear();
return this;
}
@Override
public LLJFPKKLGAK clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
oLMCGHBDKIE.clearQuick();
pJALJFEJGDD.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof LLJFPKKLGAK)) {
return false;
}
LLJFPKKLGAK other = (LLJFPKKLGAK) o;
return bitField0_ == other.bitField0_
&& (!hasOLMCGHBDKIE() || oLMCGHBDKIE.equals(other.oLMCGHBDKIE))
&& (!hasPJALJFEJGDD() || pJALJFEJGDD.equals(other.pJALJFEJGDD));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 10);
output.writeMessageNoTag(oLMCGHBDKIE);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 74);
output.writeMessageNoTag(pJALJFEJGDD);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(oLMCGHBDKIE);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(pJALJFEJGDD);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public LLJFPKKLGAK mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 10: {
// oLMCGHBDKIE
input.readMessage(oLMCGHBDKIE);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 74) {
break;
}
}
case 74: {
// pJALJFEJGDD
input.readMessage(pJALJFEJGDD);
bitField0_ |= 0x00000002;
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.writeMessage(FieldNames.oLMCGHBDKIE, oLMCGHBDKIE);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.pJALJFEJGDD, pJALJFEJGDD);
}
output.endObject();
}
@Override
public LLJFPKKLGAK mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1801344849: {
if (input.isAtField(FieldNames.oLMCGHBDKIE)) {
if (!input.trySkipNullValue()) {
input.readMessage(oLMCGHBDKIE);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1725659457: {
if (input.isAtField(FieldNames.pJALJFEJGDD)) {
if (!input.trySkipNullValue()) {
input.readMessage(pJALJFEJGDD);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public LLJFPKKLGAK clone() {
return new LLJFPKKLGAK().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static LLJFPKKLGAK parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new LLJFPKKLGAK(), data).checkInitialized();
}
public static LLJFPKKLGAK parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new LLJFPKKLGAK(), input).checkInitialized();
}
public static LLJFPKKLGAK parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new LLJFPKKLGAK(), input).checkInitialized();
}
/**
* @return factory for creating LLJFPKKLGAK messages
*/
public static MessageFactory<LLJFPKKLGAK> getFactory() {
return LLJFPKKLGAKFactory.INSTANCE;
}
private enum LLJFPKKLGAKFactory implements MessageFactory<LLJFPKKLGAK> {
INSTANCE;
@Override
public LLJFPKKLGAK create() {
return LLJFPKKLGAK.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName oLMCGHBDKIE = FieldName.forField("OLMCGHBDKIE");
static final FieldName pJALJFEJGDD = FieldName.forField("PJALJFEJGDD");
}
}
}

View File

@ -0,0 +1,281 @@
// 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 RogueAvatarReviveCostOuterClass {
/**
* Protobuf type {@code RogueAvatarReviveCost}
*/
public static final class RogueAvatarReviveCost extends ProtoMessage<RogueAvatarReviveCost> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ItemCostList revive_cost = 6;</code>
*/
private final ItemCostListOuterClass.ItemCostList reviveCost = ItemCostListOuterClass.ItemCostList.newInstance();
private RogueAvatarReviveCost() {
}
/**
* @return a new empty instance of {@code RogueAvatarReviveCost}
*/
public static RogueAvatarReviveCost newInstance() {
return new RogueAvatarReviveCost();
}
/**
* <code>optional .ItemCostList revive_cost = 6;</code>
* @return whether the reviveCost field is set
*/
public boolean hasReviveCost() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ItemCostList revive_cost = 6;</code>
* @return this
*/
public RogueAvatarReviveCost clearReviveCost() {
bitField0_ &= ~0x00000001;
reviveCost.clear();
return this;
}
/**
* <code>optional .ItemCostList revive_cost = 6;</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 #getMutableReviveCost()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ItemCostListOuterClass.ItemCostList getReviveCost() {
return reviveCost;
}
/**
* <code>optional .ItemCostList revive_cost = 6;</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 ItemCostListOuterClass.ItemCostList getMutableReviveCost() {
bitField0_ |= 0x00000001;
return reviveCost;
}
/**
* <code>optional .ItemCostList revive_cost = 6;</code>
* @param value the reviveCost to set
* @return this
*/
public RogueAvatarReviveCost setReviveCost(final ItemCostListOuterClass.ItemCostList value) {
bitField0_ |= 0x00000001;
reviveCost.copyFrom(value);
return this;
}
@Override
public RogueAvatarReviveCost copyFrom(final RogueAvatarReviveCost other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
reviveCost.copyFrom(other.reviveCost);
}
return this;
}
@Override
public RogueAvatarReviveCost mergeFrom(final RogueAvatarReviveCost other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasReviveCost()) {
getMutableReviveCost().mergeFrom(other.reviveCost);
}
return this;
}
@Override
public RogueAvatarReviveCost clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
reviveCost.clear();
return this;
}
@Override
public RogueAvatarReviveCost clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
reviveCost.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof RogueAvatarReviveCost)) {
return false;
}
RogueAvatarReviveCost other = (RogueAvatarReviveCost) o;
return bitField0_ == other.bitField0_
&& (!hasReviveCost() || reviveCost.equals(other.reviveCost));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(reviveCost);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(reviveCost);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public RogueAvatarReviveCost mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 50: {
// reviveCost
input.readMessage(reviveCost);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.reviveCost, reviveCost);
}
output.endObject();
}
@Override
public RogueAvatarReviveCost mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1426560318:
case -1248199561: {
if (input.isAtField(FieldNames.reviveCost)) {
if (!input.trySkipNullValue()) {
input.readMessage(reviveCost);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public RogueAvatarReviveCost clone() {
return new RogueAvatarReviveCost().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static RogueAvatarReviveCost parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new RogueAvatarReviveCost(), data).checkInitialized();
}
public static RogueAvatarReviveCost parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new RogueAvatarReviveCost(), input).checkInitialized();
}
public static RogueAvatarReviveCost parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new RogueAvatarReviveCost(), input).checkInitialized();
}
/**
* @return factory for creating RogueAvatarReviveCost messages
*/
public static MessageFactory<RogueAvatarReviveCost> getFactory() {
return RogueAvatarReviveCostFactory.INSTANCE;
}
private enum RogueAvatarReviveCostFactory implements MessageFactory<RogueAvatarReviveCost> {
INSTANCE;
@Override
public RogueAvatarReviveCost create() {
return RogueAvatarReviveCost.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName reviveCost = FieldName.forField("reviveCost", "revive_cost");
}
}
}

View File

@ -0,0 +1,341 @@
// 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 RogueSyncContextBoardEventOuterClass {
/**
* Protobuf type {@code RogueSyncContextBoardEvent}
*/
public static final class RogueSyncContextBoardEvent extends ProtoMessage<RogueSyncContextBoardEvent> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 board_event_id = 1;</code>
*/
private int boardEventId;
/**
* <code>optional uint32 modifier_effect_type = 6;</code>
*/
private int modifierEffectType;
private RogueSyncContextBoardEvent() {
}
/**
* @return a new empty instance of {@code RogueSyncContextBoardEvent}
*/
public static RogueSyncContextBoardEvent newInstance() {
return new RogueSyncContextBoardEvent();
}
/**
* <code>optional uint32 board_event_id = 1;</code>
* @return whether the boardEventId field is set
*/
public boolean hasBoardEventId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 board_event_id = 1;</code>
* @return this
*/
public RogueSyncContextBoardEvent clearBoardEventId() {
bitField0_ &= ~0x00000001;
boardEventId = 0;
return this;
}
/**
* <code>optional uint32 board_event_id = 1;</code>
* @return the boardEventId
*/
public int getBoardEventId() {
return boardEventId;
}
/**
* <code>optional uint32 board_event_id = 1;</code>
* @param value the boardEventId to set
* @return this
*/
public RogueSyncContextBoardEvent setBoardEventId(final int value) {
bitField0_ |= 0x00000001;
boardEventId = value;
return this;
}
/**
* <code>optional uint32 modifier_effect_type = 6;</code>
* @return whether the modifierEffectType field is set
*/
public boolean hasModifierEffectType() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 modifier_effect_type = 6;</code>
* @return this
*/
public RogueSyncContextBoardEvent clearModifierEffectType() {
bitField0_ &= ~0x00000002;
modifierEffectType = 0;
return this;
}
/**
* <code>optional uint32 modifier_effect_type = 6;</code>
* @return the modifierEffectType
*/
public int getModifierEffectType() {
return modifierEffectType;
}
/**
* <code>optional uint32 modifier_effect_type = 6;</code>
* @param value the modifierEffectType to set
* @return this
*/
public RogueSyncContextBoardEvent setModifierEffectType(final int value) {
bitField0_ |= 0x00000002;
modifierEffectType = value;
return this;
}
@Override
public RogueSyncContextBoardEvent copyFrom(final RogueSyncContextBoardEvent other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
boardEventId = other.boardEventId;
modifierEffectType = other.modifierEffectType;
}
return this;
}
@Override
public RogueSyncContextBoardEvent mergeFrom(final RogueSyncContextBoardEvent other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasBoardEventId()) {
setBoardEventId(other.boardEventId);
}
if (other.hasModifierEffectType()) {
setModifierEffectType(other.modifierEffectType);
}
return this;
}
@Override
public RogueSyncContextBoardEvent clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
boardEventId = 0;
modifierEffectType = 0;
return this;
}
@Override
public RogueSyncContextBoardEvent 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 RogueSyncContextBoardEvent)) {
return false;
}
RogueSyncContextBoardEvent other = (RogueSyncContextBoardEvent) o;
return bitField0_ == other.bitField0_
&& (!hasBoardEventId() || boardEventId == other.boardEventId)
&& (!hasModifierEffectType() || modifierEffectType == other.modifierEffectType);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(boardEventId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(modifierEffectType);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(boardEventId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(modifierEffectType);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public RogueSyncContextBoardEvent mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// boardEventId
boardEventId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 48) {
break;
}
}
case 48: {
// modifierEffectType
modifierEffectType = input.readUInt32();
bitField0_ |= 0x00000002;
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.boardEventId, boardEventId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.modifierEffectType, modifierEffectType);
}
output.endObject();
}
@Override
public RogueSyncContextBoardEvent mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1130727537:
case -1668848103: {
if (input.isAtField(FieldNames.boardEventId)) {
if (!input.trySkipNullValue()) {
boardEventId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1445000542:
case -145180736: {
if (input.isAtField(FieldNames.modifierEffectType)) {
if (!input.trySkipNullValue()) {
modifierEffectType = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public RogueSyncContextBoardEvent clone() {
return new RogueSyncContextBoardEvent().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static RogueSyncContextBoardEvent parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new RogueSyncContextBoardEvent(), data).checkInitialized();
}
public static RogueSyncContextBoardEvent parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new RogueSyncContextBoardEvent(), input).checkInitialized();
}
public static RogueSyncContextBoardEvent parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new RogueSyncContextBoardEvent(), input).checkInitialized();
}
/**
* @return factory for creating RogueSyncContextBoardEvent messages
*/
public static MessageFactory<RogueSyncContextBoardEvent> getFactory() {
return RogueSyncContextBoardEventFactory.INSTANCE;
}
private enum RogueSyncContextBoardEventFactory implements MessageFactory<RogueSyncContextBoardEvent> {
INSTANCE;
@Override
public RogueSyncContextBoardEvent create() {
return RogueSyncContextBoardEvent.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName boardEventId = FieldName.forField("boardEventId", "board_event_id");
static final FieldName modifierEffectType = FieldName.forField("modifierEffectType", "modifier_effect_type");
}
}
}

View File

@ -0,0 +1,283 @@
// 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 SyncChessRogueNousValueScNotifyOuterClass {
/**
* Protobuf type {@code SyncChessRogueNousValueScNotify}
*/
public static final class SyncChessRogueNousValueScNotify extends ProtoMessage<SyncChessRogueNousValueScNotify> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChessRogueNousValue value = 12;</code>
*/
private final ChessRogueNousValueOuterClass.ChessRogueNousValue value_ = ChessRogueNousValueOuterClass.ChessRogueNousValue.newInstance();
private SyncChessRogueNousValueScNotify() {
}
/**
* @return a new empty instance of {@code SyncChessRogueNousValueScNotify}
*/
public static SyncChessRogueNousValueScNotify newInstance() {
return new SyncChessRogueNousValueScNotify();
}
/**
* <code>optional .ChessRogueNousValue value = 12;</code>
* @return whether the value_ field is set
*/
public boolean hasValue() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChessRogueNousValue value = 12;</code>
* @return this
*/
public SyncChessRogueNousValueScNotify clearValue() {
bitField0_ &= ~0x00000001;
value_.clear();
return this;
}
/**
* <code>optional .ChessRogueNousValue value = 12;</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 #getMutableValue()} if you want to modify it.
*
* @return internal storage object for reading
*/
public ChessRogueNousValueOuterClass.ChessRogueNousValue getValue() {
return value_;
}
/**
* <code>optional .ChessRogueNousValue value = 12;</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 ChessRogueNousValueOuterClass.ChessRogueNousValue getMutableValue() {
bitField0_ |= 0x00000001;
return value_;
}
/**
* <code>optional .ChessRogueNousValue value = 12;</code>
* @param value the value_ to set
* @return this
*/
public SyncChessRogueNousValueScNotify setValue(
final ChessRogueNousValueOuterClass.ChessRogueNousValue value) {
bitField0_ |= 0x00000001;
value_.copyFrom(value);
return this;
}
@Override
public SyncChessRogueNousValueScNotify copyFrom(final SyncChessRogueNousValueScNotify other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
value_.copyFrom(other.value_);
}
return this;
}
@Override
public SyncChessRogueNousValueScNotify mergeFrom(final SyncChessRogueNousValueScNotify other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasValue()) {
getMutableValue().mergeFrom(other.value_);
}
return this;
}
@Override
public SyncChessRogueNousValueScNotify clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
value_.clear();
return this;
}
@Override
public SyncChessRogueNousValueScNotify clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
value_.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof SyncChessRogueNousValueScNotify)) {
return false;
}
SyncChessRogueNousValueScNotify other = (SyncChessRogueNousValueScNotify) o;
return bitField0_ == other.bitField0_
&& (!hasValue() || value_.equals(other.value_));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 98);
output.writeMessageNoTag(value_);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(value_);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public SyncChessRogueNousValueScNotify mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 98: {
// value_
input.readMessage(value_);
bitField0_ |= 0x00000001;
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.writeMessage(FieldNames.value_, value_);
}
output.endObject();
}
@Override
public SyncChessRogueNousValueScNotify mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 111972721: {
if (input.isAtField(FieldNames.value_)) {
if (!input.trySkipNullValue()) {
input.readMessage(value_);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public SyncChessRogueNousValueScNotify clone() {
return new SyncChessRogueNousValueScNotify().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static SyncChessRogueNousValueScNotify parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new SyncChessRogueNousValueScNotify(), data).checkInitialized();
}
public static SyncChessRogueNousValueScNotify parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new SyncChessRogueNousValueScNotify(), input).checkInitialized();
}
public static SyncChessRogueNousValueScNotify parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new SyncChessRogueNousValueScNotify(), input).checkInitialized();
}
/**
* @return factory for creating SyncChessRogueNousValueScNotify messages
*/
public static MessageFactory<SyncChessRogueNousValueScNotify> getFactory() {
return SyncChessRogueNousValueScNotifyFactory.INSTANCE;
}
private enum SyncChessRogueNousValueScNotifyFactory implements MessageFactory<SyncChessRogueNousValueScNotify> {
INSTANCE;
@Override
public SyncChessRogueNousValueScNotify create() {
return SyncChessRogueNousValueScNotify.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName value_ = FieldName.forField("value");
}
}
}

View File

@ -58,6 +58,10 @@ public class GameData {
@Getter private static Int2ObjectMap<DialogueEventExcel> rogueDialogueEventList = new Int2ObjectOpenHashMap<>();
@Getter private static Int2ObjectMap<RogueBuffExcel> rogueBuffTagExcelMap = new Int2ObjectOpenHashMap<>();
@Getter private static Int2ObjectMap<RogueBuffGroupExcel> rogueBuffGroupExcelMap = new Int2ObjectOpenHashMap<>();
@Getter private static Int2ObjectMap<RogueNousMainStoryExcel> rogueNousMainStoryExcelMap = new Int2ObjectOpenHashMap<>();
@Getter private static Int2ObjectMap<RogueNousSubStoryExcel> rogueNousSubStoryExcelMap = new Int2ObjectOpenHashMap<>();
@Getter private static Int2ObjectMap<RogueNousDiceBranchExcel> rogueNousDiceBranchExcelMap = new Int2ObjectOpenHashMap<>();
private static Int2ObjectMap<RogueBuffExcel> rogueBuffExcelMap = new Int2ObjectOpenHashMap<>();
private static Int2ObjectMap<AvatarPromotionExcel> avatarPromotionExcelMap = new Int2ObjectOpenHashMap<>();

View File

@ -0,0 +1,26 @@
package emu.lunarcore.data.excel;
import emu.lunarcore.data.GameData;
import emu.lunarcore.data.GameResource;
import emu.lunarcore.data.ResourceType;
import lombok.Getter;
import java.util.Set;
@Getter
@ResourceType(name = {"RogueNousDiceBranch.json"})
public class RogueNousDiceBranchExcel extends GameResource {
private int BranchId;
private int DefaultUltraSurface;
private Set<Integer> DefaultCommonSurfaceList;
@Override
public int getId() {
return BranchId;
}
@Override
public void onLoad() {
GameData.getRogueNousDiceBranchExcelMap().put(BranchId, this);
}
}

View File

@ -0,0 +1,23 @@
package emu.lunarcore.data.excel;
import emu.lunarcore.data.GameData;
import emu.lunarcore.data.GameResource;
import emu.lunarcore.data.ResourceType;
import lombok.Getter;
@Getter
@ResourceType(name = {"RogueNousMainStory.json"})
public class RogueNousMainStoryExcel extends GameResource {
private int StoryID;
private int Layer;
@Override
public int getId() {
return this.StoryID;
}
@Override
public void onLoad() {
GameData.getRogueNousMainStoryExcelMap().put(this.StoryID, this);
}
}

View File

@ -0,0 +1,23 @@
package emu.lunarcore.data.excel;
import emu.lunarcore.data.GameData;
import emu.lunarcore.data.GameResource;
import emu.lunarcore.data.ResourceType;
import lombok.Getter;
@Getter
@ResourceType(name = {"RogueNousSubStory.json"})
public class RogueNousSubStoryExcel extends GameResource {
private int StoryID;
private int Layer;
@Override
public int getId() {
return this.StoryID;
}
@Override
public void onLoad() {
GameData.getRogueNousSubStoryExcelMap().put(this.StoryID, this);
}
}

View File

@ -166,6 +166,7 @@ public class BattleService extends BaseGameService {
public void startBattle(Player player, int stageId) {
// Sanity check to make sure player isnt in a battle
if (player.isInBattle()) {
player.sendPacket(new PacketSceneEnterStageScRsp(player.getBattle()));
return;
}

View File

@ -43,6 +43,7 @@ import emu.lunarcore.game.player.lineup.PlayerLineup;
import emu.lunarcore.game.rogue.RogueInstance;
import emu.lunarcore.game.rogue.RogueManager;
import emu.lunarcore.game.rogue.RogueTalentData;
import emu.lunarcore.game.rogue.chess.ChessRogueManager;
import emu.lunarcore.game.scene.Scene;
import emu.lunarcore.game.scene.SceneBuff;
import emu.lunarcore.game.scene.entity.EntityProp;
@ -115,6 +116,7 @@ public class Player implements Tickable {
private transient final Mailbox mailbox;
private transient final ChallengeManager challengeManager;
private transient final RogueManager rogueManager;
private transient final ChessRogueManager chessRogueManager;
// Database persistent data
private LineupManager lineupManager;
@ -147,6 +149,7 @@ public class Player implements Tickable {
this.mailbox = new Mailbox(this);
this.challengeManager = new ChallengeManager(this);
this.rogueManager = new RogueManager(this);
this.chessRogueManager = new ChessRogueManager(this);
}
// Called when player is created

View File

@ -141,6 +141,8 @@ public class RogueEntityLoader extends SceneEntityLoader {
instance = scene.getPlayer().getRogueInstance();
} while (instance.setDialogueParams(npcId) == null);
instance.getEventManager().setNowPercentage(0);
instance.getEventManager().setBuffType(0);
npc.setRogueNpcId(npcId);
npc.setEventId(++instance.eventId);
scene.getPlayer().sendPacket(new PacketSyncRogueDialogueEventDataScNotify(npcId, instance.curDialogueParams.get(npcId),

View File

@ -3,14 +3,11 @@ package emu.lunarcore.game.rogue;
import emu.lunarcore.LunarCore;
import emu.lunarcore.data.GameData;
import emu.lunarcore.game.player.Player;
import emu.lunarcore.game.scene.entity.EntityNpc;
import emu.lunarcore.proto.FinishRogueDialogueGroupCsReqOuterClass;
import emu.lunarcore.server.packet.BasePacket;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.recv.HandlerFinishRogueDialogueGroupCsReq;
import emu.lunarcore.server.packet.send.PacketSyncRogueCommonPendingActionScNotify;
import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam;
import emu.lunarcore.util.Utils;
import emu.lunarcore.util.WeightedList;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@ -18,20 +15,22 @@ import java.util.List;
public class RogueEventManager {
private RogueInstance rogueInstance;
private Player player;
@Setter private int nowPercentage = 0;
@Setter private int buffType = 0;
public RogueEventManager(RogueInstance rogueInstance) {
this.rogueInstance = rogueInstance;
this.player = rogueInstance.getPlayer();
}
public int handleEvent(int eventId) {
public int handleEvent(int eventId, int npcId) {
var event = GameData.getRogueDialogueEventList().get(eventId);
if (event == null || event.getRogueEffectType() == null) return 0;
List<Integer> param = event.getRogueEffectParamList();
switch (event.getRogueEffectType()) {
case GetItem -> rogueInstance.addDialogueMoney(param.get(1));
case TriggerBattle -> {
//this.getPlayer().getServer().getBattleService().startBattle(player, param.get(0));
this.getPlayer().getServer().getBattleService().startBattle(player, param.get(0)); // handle in SceneEnterStageCsReq
}
case TriggerRogueMiracleSelect -> this.getRogueInstance().createMiracleSelect(1);
case TriggerRogueBuffSelect -> {
@ -61,19 +60,85 @@ public class RogueEventManager {
}
case TriggerDialogueEventList -> {
for (var id : param) {
this.handleEvent(id);
this.handleEvent(id, npcId);
this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance()
.setDialogueEventId(id)
.setIsValid(true));
}
}
case TriggerRandomEventList -> {
this.handleEvent(11604); // temp
var weightList = new WeightedList<Integer>();
var nextEventId = 0;
for (var id : param) {
if (nextEventId == 0) {
nextEventId = id;
continue;
}
weightList.add(id, nextEventId);
nextEventId = 0;
}
int randomEventId = weightList.next();
handleCost(eventId);
return 0;
this.handleEvent(randomEventId, npcId);
return randomEventId;
}
case GetAllRogueBuffInGroupAndGetItem -> {
var rogueBuff = GameData.getRogueBuffGroupExcelMap().get(param.get(0));
this.getRogueInstance().addBuff(rogueBuff.getRogueBuffList());
this.getRogueInstance().addDialogueMoney(param.get(2));
}
case RepeatableGamble -> {
var failEventId = param.get(0);
var initialPercent = param.get(1);
var increasePercent = param.get(2);
if (this.nowPercentage != 0)
this.nowPercentage = initialPercent;
else
this.nowPercentage += increasePercent;
var weightList = new WeightedList<Integer>();
for (int i = 4; i < param.size(); i += 2) {
weightList.add(param.get(i + 1), param.get(i));
}
int randomNum = Utils.randomRange(0, 100);
if (randomNum <= this.nowPercentage) {
handleCost(eventId);
this.handleEvent(failEventId, npcId);
this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance()
.setDialogueEventId(failEventId)
.setIsValid(true));
return 0;
} else {
handleCost(eventId);
int nextEventId = weightList.next();
this.handleEvent(nextEventId, npcId);
this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance()
.setDialogueEventId(nextEventId)
.setIsValid(true)
.setRatio(this.nowPercentage / 100f));
return 0;
}
}
case EnhanceRogueBuff -> {
var rogueBuff = GameData.getRogueBuffGroupExcelMap().get(param.get(0));
if (rogueBuff != null) {
var weightList = new WeightedList<RogueBuffData>();
for (var buff : rogueBuff.getRogueBuffList()) {
weightList.add(1.0f, buff);
}
// random param.get(1) times
while (true) {
var buff = weightList.next();
if (buff == null || buff.getExcel() == null) break;
if (!this.getRogueInstance().getBuffs().containsValue(buff)) continue;
if (this.getRogueInstance().getBuffs().get(buff.getId()).getLevel() >= 2) continue;
this.getRogueInstance().addBuff(new RogueBuffData(buff.getId(), buff.getLevel() + 1));
param.set(1, param.get(1) - 1);
if (param.get(1) <= 0) break;
}
}
}
case NONE -> {} // do nothing
default -> {
LunarCore.getLogger().info("RogueEventManager: unhandled event type: " + event.getRogueEffectType()); // DEBUG
}

View File

@ -416,7 +416,7 @@ public class RogueInstance {
data.setTimes(this.id - 2);
this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data));
try {
this.onSelectDialogue(bonus.getEventId());
this.onSelectDialogue(bonus.getEventId(), 0);
} catch (Exception ignored) {
}
return bonus;
@ -489,6 +489,7 @@ public class RogueInstance {
if (argMap.containsKey(v) && argMap.get(v).equals("RelateToBuff")) {
param.setArgId(this.getAeonId());
this.getEventManager().setBuffType(this.getAeonBuffType());
}
params.add(param);
@ -560,8 +561,8 @@ public class RogueInstance {
// Dialogue stuff
public int onSelectDialogue(int dialogueEventId) {
return this.eventManager.handleEvent(dialogueEventId);
public int onSelectDialogue(int dialogueEventId, int npcId) {
return this.eventManager.handleEvent(dialogueEventId, npcId);
}
// Battle

View File

@ -0,0 +1,27 @@
package emu.lunarcore.game.rogue.chess;
import emu.lunarcore.data.GameData;
import emu.lunarcore.game.player.BasePlayerManager;
import emu.lunarcore.game.player.Player;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import java.util.HashSet;
import java.util.Set;
public class ChessRogueManager extends BasePlayerManager {
public ChessRogueManager(Player player) {
super(player);
}
public Int2ObjectMap<Set<Integer>> getRogueDefaultDice() {
var map = new Int2ObjectOpenHashMap<Set<Integer>>();
for (var entry: GameData.getRogueNousDiceBranchExcelMap().values()) {
var set = new HashSet<Integer>();
set.add(entry.getDefaultUltraSurface());
set.addAll(entry.getDefaultCommonSurfaceList());
map.put(entry.getBranchId(), set);
}
return map;
}
}

View File

@ -0,0 +1,16 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
import emu.lunarcore.server.packet.PacketHandler;
import emu.lunarcore.server.packet.send.PacketChessRogueQueryScRsp;
@Opcodes(CmdId.ChessRogueQueryCsReq)
public class HandlerChessRogueQueryCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(new PacketChessRogueQueryScRsp(session.getPlayer()));
}
}

View File

@ -0,0 +1,15 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
import emu.lunarcore.server.packet.PacketHandler;
import emu.lunarcore.server.packet.send.PacketGetChessRogueNousStoryInfoScRsp;
@Opcodes(CmdId.GetChessRogueNousStoryInfoCsReq)
public class HandlerGetChessRogueNousStoryInfoCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(new PacketGetChessRogueNousStoryInfoScRsp());
}
}

View File

@ -21,7 +21,7 @@ public class HandlerSelectRogueDialogueEventCsReq extends PacketHandler {
int callback = 0;
if (session.getPlayer().getRogueInstance() != null) {
callback = session.getPlayer().getRogueInstance().onSelectDialogue(req.getDialogueEventId());
callback = session.getPlayer().getRogueInstance().onSelectDialogue(req.getDialogueEventId(), npc.getRogueNpcId());
}
session.send(new PacketSelectRogueDialogueEventScRsp(req.getDialogueEventId(), npc, callback));

View File

@ -0,0 +1,39 @@
package emu.lunarcore.server.packet.send;
import emu.lunarcore.data.GameData;
import emu.lunarcore.game.player.Player;
import emu.lunarcore.proto.ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo;
import emu.lunarcore.proto.ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo;
import emu.lunarcore.proto.ChessRogueNousQueryInfoOuterClass.ChessRogueNousQueryInfo;
import emu.lunarcore.proto.ChessRogueQueryOuterClass.ChessRogueQuery;
import emu.lunarcore.proto.ChessRogueQueryScRspOuterClass.ChessRogueQueryScRsp;
import emu.lunarcore.server.packet.BasePacket;
import emu.lunarcore.server.packet.CmdId;
public class PacketChessRogueQueryScRsp extends BasePacket {
public PacketChessRogueQueryScRsp(Player player) {
super(CmdId.ChessRogueQueryScRsp);
var data = ChessRogueQuery.newInstance();
for (var entry: GameData.getRogueNousMainStoryExcelMap().keySet()) {
data.addMainStoryId(entry);
}
player.getChessRogueManager().getRogueDefaultDice().forEach((k, v) -> {
var dice = ChessRogueNousDiceInfo.newInstance()
.setDiceBranchId(k);
var index = 0;
for (Integer d : v) {
dice.addDiceSurface(ChessRogueNousDiceSurfaceInfo.newInstance()
.setIndex(++index)
.setDiceId(d));
}
data.addDiceInfo(dice);
});
var proto = ChessRogueQueryScRsp.newInstance()
.setRogueNous(ChessRogueNousQueryInfo.newInstance()
.setQueryInfo(data));
this.setData(proto);
}
}

View File

@ -0,0 +1,29 @@
package emu.lunarcore.server.packet.send;
import emu.lunarcore.data.GameData;
import emu.lunarcore.proto.ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo;
import emu.lunarcore.proto.ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo;
import emu.lunarcore.proto.GetChessRogueNousStoryInfoScRspOuterClass.GetChessRogueNousStoryInfoScRsp;
import emu.lunarcore.server.packet.BasePacket;
import emu.lunarcore.server.packet.CmdId;
public class PacketGetChessRogueNousStoryInfoScRsp extends BasePacket {
public PacketGetChessRogueNousStoryInfoScRsp() {
super(CmdId.GetChessRogueNousStoryInfoScRsp);
var proto = GetChessRogueNousStoryInfoScRsp.newInstance();
for (var entry : GameData.getRogueNousMainStoryExcelMap().keySet()) {
proto.addMainStoryInfo(ChessRogueNousMainStoryInfo.newInstance()
.setStoryId(entry)
.setStatus(2));
}
for (var entry : GameData.getRogueNousSubStoryExcelMap().keySet()) {
proto.addSubStoryInfo(ChessRogueNousSubStoryInfo.newInstance()
.setSubStoryId(entry));
}
this.setData(proto);
}
}